-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStruct Template.j
More file actions
96 lines (60 loc) · 2.09 KB
/
Copy pathStruct Template.j
File metadata and controls
96 lines (60 loc) · 2.09 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
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
This file is deprecated since we should optimize declaration positions (using JassHelper option [forcemethodevaluate])
library A<Struct/Library><Module Identifier: Core/Objects/Systems><Sub Module Identifier><Identifier>
// text macro calls
// keywords
globals
// public constant globals
// public globals
// private constant globals
// private globals
endglobals
// type definitions
// function interfaces of interface
// interfaces
interface AInterfaceIdentifier
// same as in struct definition
endinterface
// function interfaces of struct, should be in struct declaration -> vJass bug
//structs
struct AStructIdentifier
// public static constant members
// private static constant members
// private static dynamic members
// private static construction members
// private static construction text members with the text prefix
// private static members
// private dynamic members
// private construction members
// private members
// module implementations
// text macro calls
// dynamic member methods
// construction member methods
// member methods
// convenience methods
// public methods
// private methods
// create
// You have to call the constructor with all construction members
// Dynamic members can be changed later (after construction) by using the set methods
// If all members are dynamic, the constructor can take them instead of construction members
// additional create methods
// private methods called from onDestroy
// onDestroy
// private methods called from onInit
// onInit (usually private)
// private methods called from init
// public init method (init all static construction members)
// Use this instead of onInit if nothing should be initialized if the system is not be used
// private methods called from cleanUp
// public cleanUp method (uninit all static members)
// public static set and get methods
// public static methods
// private static methods
endstruct
// functions
// public functions
// private functions
// library initializer (usually private)
// hooks
endlibrary