-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathFrameProvider.java
More file actions
42 lines (30 loc) · 1.38 KB
/
FrameProvider.java
File metadata and controls
42 lines (30 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package de.peeeq.wurstio.jassinterpreter.providers;
import de.peeeq.wurstscript.intermediatelang.ILconstInt;
import de.peeeq.wurstscript.intermediatelang.ILconstReal;
import de.peeeq.wurstscript.intermediatelang.ILconstString;
import de.peeeq.wurstscript.intermediatelang.IlConstHandle;
import de.peeeq.wurstscript.intermediatelang.interpreter.AbstractInterpreter;
/**
* Some functions for frames, so that StdLib tests work.
*/
public class FrameProvider extends Provider {
public FrameProvider(AbstractInterpreter interpreter) {
super(interpreter);
}
public IlConstHandle BlzGetOriginFrame(IlConstHandle frameType, ILconstInt index) {
return new IlConstHandle("framehandle", new FrameHandle());
}
public IlConstHandle BlzCreateFrameByType(ILconstString typeName, ILconstString name, IlConstHandle owner, ILconstString inherits, ILconstInt createContext) {
return new IlConstHandle("framehandle", new FrameHandle());
}
public void BlzFrameSetSize(IlConstHandle frame, ILconstReal width, ILconstReal height) {
}
static class FrameHandle {
}
public IlConstHandle ConvertOriginFrameType(ILconstInt i) {
return new IlConstHandle("frameType", i.getVal());
}
public IlConstHandle BlzGetFrameByName(ILconstString name, ILconstInt createContext) {
return new IlConstHandle("framehandle", new FrameHandle());
}
}