-
Notifications
You must be signed in to change notification settings - Fork 1
/
def.yaml
128 lines (112 loc) · 3 KB
/
def.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
general:
common_entity_attributes:
- name: number
type: int
mandatory_components:
- Mandatory
messages:
Heal:
- name: amount
type: int
Damage:
- name: amount
type : int
Die:
Foo1:
- name: value
type: float
Foo2:
Foo3:
components:
Mandatory:
Health:
messages:
- Heal
- Damage
parameters:
maxHealth: int
startHealth: int
Loot:
messages:
- Die
Dependency:
parameters:
# Keep in alphabetic order
defaultSet: int # should be 0
dependentForcesUserSet: int # should be set by user
dependentOverwrites: int # should be 1
dependentSet: int # should be 1
entityForcesUserSet: int # should be set by user
entityOverwrites: int # should be 2
entityOverwritesTwice: int # should be 2
entitySet: int # should be 2
userSet: int # should be set by user
defaults:
defaultSet: 0
dependentForcesUserSet: 0
dependentOverwrites: 0
entityOverwrites: 0
entityOverwritesTwice: 0
entityForcesUserSet: 0
AnotherDependency:
Depender:
requires:
Dependency:
dependentSet: 1
dependentForcesUserSet: null
dependentOverwrites: 1
entityOverwritesTwice: 1
entityForcesUserSet: 1
AnotherDependency:
DependerOnDepender:
requires:
Depender:
TypeTest1:
parameters:
aConstant: int
aString: const char*
anInt: int
aBool: bool
defaults:
aConstant: __LINE__
aString: '"I am a string"'
anInt: 23
aBool: true
TypeTest2:
requires:
TypeTest1:
aConstant: __LINE__
aString: '"I am a string literal"'
anInt: 23
aBool: true
entities:
MessageTest:
components:
Health:
maxHealth: 100
startHealth: 75
Loot:
DependencyTest:
components:
Depender:
Dependency:
entitySet: 2
entityOverwrites: 2
entityOverwritesTwice: 2
entityForcesUserSet: null
TypeTest1:
components:
TypeTest1:
TypeTest2:
components:
TypeTest2:
TypeTest3:
components:
TypeTest1:
aConstant: __LINE__
someCode: '&*yaml::conflicting::symbols[0]'
aString: '"I am a string literal"'
aChar: "'a'"
anInt: 23
aBool: true
# vi:ts=4:et:ai