-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEscapyLoaderTemplate.struct
More file actions
55 lines (48 loc) · 1.17 KB
/
Copy pathEscapyLoaderTemplate.struct
File metadata and controls
55 lines (48 loc) · 1.17 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
43
44
45
46
47
48
49
50
51
52
53
54
55
// Escapy class loader template
// Created by @HenryCo in 2k16
// https://github.com/henryco
// hd2files@{google.mail}
#import struct
#sugar integer "java.lang.Integer"
// optional space for variables
var {
Example1 {
type: float
val: 1
}
Example2 {
type: integer
val.java.instanced("inClassVariable")
}
Example3 {
type: "com.henryCo.ExampleClass";
val.java.global("com.other.SomeClass", "containedField");
}
Example4 {
type: []int
value [0, 1, 2, 3, 4, 10]
}
Example5 {
type "java.lang.String[]"
val ["0", "1", "999"];
}
Example6([boolean[], [true, false]]);
Example7([int[], [0,1, java(instanced("sda")), java(global("df","as"))]])
Example8(["[Ljava.lang.Integer", java[instanced["externalArrayName"]]])
Example9(["[F", java(global[extPath, extPrimitiveArrayName])])
}
// this structure is default resource space in Escapy engine.
EscapyGdx {
*pointer1 = var::Example1
*pointer2: var::Example2
*pointer3 var::Example3
EscapyObj(&pointer1);
EscapyObj --> function {
setExampleValues([int, 5], &pointer2);
}
EscapyObj --> function setOtherExample(&pointer3)
EscapyObj --> field {
exampleField: 100
}
EscapyObj.package: "com.game.henryco.etc"
}