Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EventBuilder.cs
Go to the documentation of this file.
2
4
5public sealed class EventBuilder
6{
7 private string m_name;
8
9 private int m_evToken;
10
12
14
16
17 internal EventBuilder(ModuleBuilder mod, string name, EventAttributes attr, TypeBuilder type, int evToken)
18 {
19 m_name = name;
20 m_module = mod;
21 m_attributes = attr;
22 m_evToken = evToken;
23 m_type = type;
24 }
25
27 {
28 if (mdBuilder == null)
29 {
30 throw new ArgumentNullException("mdBuilder");
31 }
33 ModuleBuilder module = m_module;
34 TypeBuilder.DefineMethodSemantics(new QCallModule(ref module), m_evToken, semantics, mdBuilder.MetadataToken);
35 }
36
37 public void SetAddOnMethod(MethodBuilder mdBuilder)
38 {
40 }
41
42 public void SetRemoveOnMethod(MethodBuilder mdBuilder)
43 {
45 }
46
47 public void SetRaiseMethod(MethodBuilder mdBuilder)
48 {
50 }
51
52 public void AddOtherMethod(MethodBuilder mdBuilder)
53 {
55 }
56
57 public void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
58 {
59 if (con == null)
60 {
61 throw new ArgumentNullException("con");
62 }
63 if (binaryAttribute == null)
64 {
65 throw new ArgumentNullException("binaryAttribute");
66 }
69 }
70
71 public void SetCustomAttribute(CustomAttributeBuilder customBuilder)
72 {
73 if (customBuilder == null)
74 {
75 throw new ArgumentNullException("customBuilder");
76 }
79 }
80}
void CreateCustomAttribute(ModuleBuilder mod, int tkOwner)
void SetCustomAttribute(ConstructorInfo con, byte[] binaryAttribute)
void SetCustomAttribute(CustomAttributeBuilder customBuilder)
void AddOtherMethod(MethodBuilder mdBuilder)
EventBuilder(ModuleBuilder mod, string name, EventAttributes attr, TypeBuilder type, int evToken)
void SetRaiseMethod(MethodBuilder mdBuilder)
void SetMethodSemantics(MethodBuilder mdBuilder, MethodSemanticsAttributes semantics)
void SetRemoveOnMethod(MethodBuilder mdBuilder)
void SetAddOnMethod(MethodBuilder mdBuilder)
int GetConstructorToken(ConstructorInfo con)
static void DefineCustomAttribute(QCallModule module, int tkAssociate, int tkConstructor, byte[] attr, int attrLength)
static void DefineMethodSemantics(QCallModule module, int tkAssociation, MethodSemanticsAttributes semantics, int tkMethod)