14
14
15
15
namespace SourceSharp . Core . Bridges
16
16
{
17
- public unsafe partial class IGameEvent : IDisposable
17
+ public unsafe partial class SSGameEvent : IDisposable
18
18
{
19
19
[ StructLayout ( LayoutKind . Sequential , Size = 8 ) ]
20
20
public partial struct __Internal
21
21
{
22
22
internal __IntPtr m_pEvent ;
23
23
24
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "??0IGameEvent @@QEAA@AEBV0@@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
24
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "??0SSGameEvent @@QEAA@AEBV0@@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
25
25
internal static extern __IntPtr cctor ( __IntPtr __instance , __IntPtr _0 ) ;
26
26
27
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetInt@IGameEvent @@QEAA_NPEBDH@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
27
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetInt@SSGameEvent @@QEAA_NPEBDH@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
28
28
[ return : MarshalAs ( UnmanagedType . I1 ) ]
29
29
internal static extern bool SetInt ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey , int value ) ;
30
30
31
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetInt@IGameEvent @@QEAAHPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
31
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetInt@SSGameEvent @@QEAAHPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
32
32
internal static extern int GetInt ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey ) ;
33
33
34
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetBool@IGameEvent @@QEAA_NPEBD_N@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
34
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetBool@SSGameEvent @@QEAA_NPEBD_N@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
35
35
[ return : MarshalAs ( UnmanagedType . I1 ) ]
36
36
internal static extern bool SetBool ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey , bool value ) ;
37
37
38
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetBool@IGameEvent @@QEAA_NPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
38
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetBool@SSGameEvent @@QEAA_NPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
39
39
[ return : MarshalAs ( UnmanagedType . I1 ) ]
40
40
internal static extern bool GetBool ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey ) ;
41
41
42
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetFloat@IGameEvent @@QEAA_NPEBDM@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
42
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetFloat@SSGameEvent @@QEAA_NPEBDM@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
43
43
[ return : MarshalAs ( UnmanagedType . I1 ) ]
44
44
internal static extern bool SetFloat ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey , float value ) ;
45
45
46
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetFloat@IGameEvent @@QEAAMPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
46
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetFloat@SSGameEvent @@QEAAMPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
47
47
internal static extern float GetFloat ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey ) ;
48
48
49
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetString@IGameEvent @@QEAA_NPEBD0@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
49
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetString@SSGameEvent @@QEAA_NPEBD0@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
50
50
[ return : MarshalAs ( UnmanagedType . I1 ) ]
51
51
internal static extern bool SetString ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string value ) ;
52
52
53
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetString@IGameEvent @@QEAAPEBDPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
53
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetString@SSGameEvent @@QEAAPEBDPEBD@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
54
54
internal static extern __IntPtr GetString ( __IntPtr __instance , [ MarshalAs ( UnmanagedType . CustomMarshaler , MarshalTypeRef = typeof ( CppSharp . Runtime . UTF8Marshaller ) ) ] string pKey ) ;
55
55
56
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetBroadcast@IGameEvent @@QEAA_N_N@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
56
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?SetBroadcast@SSGameEvent @@QEAA_N_N@Z" , CallingConvention = __CallingConvention . Cdecl ) ]
57
57
[ return : MarshalAs ( UnmanagedType . I1 ) ]
58
58
internal static extern bool SetBroadcast ( __IntPtr __instance , bool value ) ;
59
59
60
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?Cancel@IGameEvent @@QEAAXXZ" , CallingConvention = __CallingConvention . Cdecl ) ]
60
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?Cancel@SSGameEvent @@QEAAXXZ" , CallingConvention = __CallingConvention . Cdecl ) ]
61
61
internal static extern void Cancel ( __IntPtr __instance ) ;
62
62
63
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetName@IGameEvent @@QEAAPEBDXZ" , CallingConvention = __CallingConvention . Cdecl ) ]
63
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetName@SSGameEvent @@QEAAPEBDXZ" , CallingConvention = __CallingConvention . Cdecl ) ]
64
64
internal static extern __IntPtr GetName ( __IntPtr __instance ) ;
65
65
66
- [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetBroadcast@IGameEvent @@QEAA_NXZ" , CallingConvention = __CallingConvention . Cdecl ) ]
66
+ [ SuppressUnmanagedCodeSecurity , DllImport ( "sourcesharp" , EntryPoint = "?GetBroadcast@SSGameEvent @@QEAA_NXZ" , CallingConvention = __CallingConvention . Cdecl ) ]
67
67
[ return : MarshalAs ( UnmanagedType . I1 ) ]
68
68
internal static extern bool GetBroadcast ( __IntPtr __instance ) ;
69
69
}
70
70
71
71
public __IntPtr __Instance { get ; protected set ; }
72
72
73
- internal static readonly new global ::System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global ::SourceSharp . Core . Bridges . IGameEvent > NativeToManagedMap =
74
- new global ::System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global ::SourceSharp . Core . Bridges . IGameEvent > ( ) ;
73
+ internal static readonly new global ::System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global ::SourceSharp . Core . Bridges . SSGameEvent > NativeToManagedMap =
74
+ new global ::System . Collections . Concurrent . ConcurrentDictionary < IntPtr , global ::SourceSharp . Core . Bridges . SSGameEvent > ( ) ;
75
75
76
- internal static void __RecordNativeToManagedMapping ( IntPtr native , global ::SourceSharp . Core . Bridges . IGameEvent managed )
76
+ internal static void __RecordNativeToManagedMapping ( IntPtr native , global ::SourceSharp . Core . Bridges . SSGameEvent managed )
77
77
{
78
78
NativeToManagedMap [ native ] = managed ;
79
79
}
80
80
81
- internal static bool __TryGetNativeToManagedMapping ( IntPtr native , out global ::SourceSharp . Core . Bridges . IGameEvent managed )
81
+ internal static bool __TryGetNativeToManagedMapping ( IntPtr native , out global ::SourceSharp . Core . Bridges . SSGameEvent managed )
82
82
{
83
83
84
84
return NativeToManagedMap . TryGetValue ( native , out managed ) ;
85
85
}
86
86
87
87
protected bool __ownsNativeInstance ;
88
88
89
- internal static IGameEvent __CreateInstance ( __IntPtr native , bool skipVTables = false )
89
+ internal static SSGameEvent __CreateInstance ( __IntPtr native , bool skipVTables = false )
90
90
{
91
91
if ( native == __IntPtr . Zero )
92
92
return null ;
93
- return new IGameEvent ( native . ToPointer ( ) , skipVTables ) ;
93
+ return new SSGameEvent ( native . ToPointer ( ) , skipVTables ) ;
94
94
}
95
95
96
- internal static IGameEvent __GetOrCreateInstance ( __IntPtr native , bool saveInstance = false , bool skipVTables = false )
96
+ internal static SSGameEvent __GetOrCreateInstance ( __IntPtr native , bool saveInstance = false , bool skipVTables = false )
97
97
{
98
98
if ( native == __IntPtr . Zero )
99
99
return null ;
100
100
if ( __TryGetNativeToManagedMapping ( native , out var managed ) )
101
- return ( IGameEvent ) managed ;
101
+ return ( SSGameEvent ) managed ;
102
102
var result = __CreateInstance ( native , skipVTables ) ;
103
103
if ( saveInstance )
104
104
__RecordNativeToManagedMapping ( native , result ) ;
105
105
return result ;
106
106
}
107
107
108
- internal static IGameEvent __CreateInstance ( __Internal native , bool skipVTables = false )
108
+ internal static SSGameEvent __CreateInstance ( __Internal native , bool skipVTables = false )
109
109
{
110
- return new IGameEvent ( native , skipVTables ) ;
110
+ return new SSGameEvent ( native , skipVTables ) ;
111
111
}
112
112
113
113
private static void * __CopyValue ( __Internal native )
@@ -117,33 +117,33 @@ internal static IGameEvent __CreateInstance(__Internal native, bool skipVTables
117
117
return ret . ToPointer ( ) ;
118
118
}
119
119
120
- private IGameEvent ( __Internal native , bool skipVTables = false )
120
+ private SSGameEvent ( __Internal native , bool skipVTables = false )
121
121
: this ( __CopyValue ( native ) , skipVTables )
122
122
{
123
123
__ownsNativeInstance = true ;
124
124
__RecordNativeToManagedMapping ( __Instance , this ) ;
125
125
}
126
126
127
- protected IGameEvent ( void * native , bool skipVTables = false )
127
+ protected SSGameEvent ( void * native , bool skipVTables = false )
128
128
{
129
129
if ( native == null )
130
130
return ;
131
131
__Instance = new __IntPtr ( native ) ;
132
132
}
133
133
134
- public IGameEvent ( )
134
+ public SSGameEvent ( )
135
135
{
136
- __Instance = Marshal . AllocHGlobal ( sizeof ( global ::SourceSharp . Core . Bridges . IGameEvent . __Internal ) ) ;
136
+ __Instance = Marshal . AllocHGlobal ( sizeof ( global ::SourceSharp . Core . Bridges . SSGameEvent . __Internal ) ) ;
137
137
__ownsNativeInstance = true ;
138
138
__RecordNativeToManagedMapping ( __Instance , this ) ;
139
139
}
140
140
141
- public IGameEvent ( global ::SourceSharp . Core . Bridges . IGameEvent _0 )
141
+ public SSGameEvent ( global ::SourceSharp . Core . Bridges . SSGameEvent _0 )
142
142
{
143
- __Instance = Marshal . AllocHGlobal ( sizeof ( global ::SourceSharp . Core . Bridges . IGameEvent . __Internal ) ) ;
143
+ __Instance = Marshal . AllocHGlobal ( sizeof ( global ::SourceSharp . Core . Bridges . SSGameEvent . __Internal ) ) ;
144
144
__ownsNativeInstance = true ;
145
145
__RecordNativeToManagedMapping ( __Instance , this ) ;
146
- * ( ( global ::SourceSharp . Core . Bridges . IGameEvent . __Internal * ) __Instance ) = * ( ( global ::SourceSharp . Core . Bridges . IGameEvent . __Internal * ) _0 . __Instance ) ;
146
+ * ( ( global ::SourceSharp . Core . Bridges . SSGameEvent . __Internal * ) __Instance ) = * ( ( global ::SourceSharp . Core . Bridges . SSGameEvent . __Internal * ) _0 . __Instance ) ;
147
147
}
148
148
149
149
public void Dispose ( )
@@ -265,10 +265,10 @@ public static bool RegGameEventHook(string pName)
265
265
return ___ret ;
266
266
}
267
267
268
- public static global ::SourceSharp . Core . Bridges . IGameEvent CreateGameEvent ( string pName , bool bBroadcast )
268
+ public static global ::SourceSharp . Core . Bridges . SSGameEvent CreateGameEvent ( string pName , bool bBroadcast )
269
269
{
270
270
var ___ret = __Internal . CreateGameEvent ( pName , bBroadcast ) ;
271
- var __result0 = global ::SourceSharp . Core . Bridges . IGameEvent . __GetOrCreateInstance ( ___ret , false ) ;
271
+ var __result0 = global ::SourceSharp . Core . Bridges . SSGameEvent . __GetOrCreateInstance ( ___ret , false ) ;
272
272
return __result0 ;
273
273
}
274
274
}
0 commit comments