@@ -22,11 +22,6 @@ struct Stack<Vector>
22
22
MAKE_CLASS_INSTANCE_CTX (ctx, " Vector" , { { " vector_ptr" , value } }).pushLua ();
23
23
}
24
24
25
- static JSValue pushJS (EContext* ctx, Vector value)
26
- {
27
- return JS_DupValue (ctx->GetJSState (), MAKE_CLASS_INSTANCE_CTX (ctx, " Vector" , { { " vector_ptr" , value } }).pushJS ());
28
- }
29
-
30
25
static ClassData* pushRawDotnet (EContext* ctx, CallContext* context, Vector value)
31
26
{
32
27
return (ClassData*)MAKE_CLASS_INSTANCE_CTX (ctx, " Vector" , { { " vector_ptr" , value } }).getPointer ();
@@ -51,11 +46,6 @@ struct Stack<Vector>
51
46
return EValue (ctx, ref, false ).cast <ClassData*>()->GetData <Vector>(" vector_ptr" );
52
47
}
53
48
54
- static Vector getJS (EContext* ctx, JSValue value)
55
- {
56
- return EValue (ctx, value).cast <ClassData*>()->GetData <Vector>(" vector_ptr" );
57
- }
58
-
59
49
static Vector getRawDotnet (EContext* ctx, CallContext* context, void * value)
60
50
{
61
51
return EValue (ctx, value, 18 ).cast <ClassData*>()->GetData <Vector>(" vector_ptr" );
@@ -72,11 +62,6 @@ struct Stack<Vector>
72
62
return EValue (ctx, ref, false ).cast <ClassData*>()->HasData (" vector_ptr" );
73
63
}
74
64
75
- static bool isJSInstance (EContext* ctx, JSValue value)
76
- {
77
- return EValue (ctx, value).cast <ClassData*>()->HasData (" vector_ptr" );
78
- }
79
-
80
65
static bool isDotnetInstance (EContext* ctx, CallContext* context, int index)
81
66
{
82
67
return EValue (ctx, context->GetArgumentPtr (index), 18 ).cast <ClassData*>()->HasData (" vector_ptr" );
@@ -91,11 +76,6 @@ struct Stack<Vector2D>
91
76
MAKE_CLASS_INSTANCE_CTX (ctx, " Vector2D" , { { " Vector2D_ptr" , value } }).pushLua ();
92
77
}
93
78
94
- static JSValue pushJS (EContext* ctx, Vector2D value)
95
- {
96
- return JS_DupValue (ctx->GetJSState (), MAKE_CLASS_INSTANCE_CTX (ctx, " Vector2D" , { { " Vector2D_ptr" , value } }).pushJS ());
97
- }
98
-
99
79
static ClassData* pushRawDotnet (EContext* ctx, CallContext* context, Vector2D value)
100
80
{
101
81
return (ClassData*)MAKE_CLASS_INSTANCE_CTX (ctx, " Vector2D" , { { " Vector2D_ptr" , value } }).getPointer ();
@@ -120,11 +100,6 @@ struct Stack<Vector2D>
120
100
return EValue (ctx, ref, false ).cast <ClassData*>()->GetData <Vector2D>(" Vector2D_ptr" );
121
101
}
122
102
123
- static Vector2D getJS (EContext* ctx, JSValue value)
124
- {
125
- return EValue (ctx, value).cast <ClassData*>()->GetData <Vector2D>(" Vector2D_ptr" );
126
- }
127
-
128
103
static Vector2D getRawDotnet (EContext* ctx, CallContext* context, void * value)
129
104
{
130
105
return EValue (ctx, value, 18 ).cast <ClassData*>()->GetData <Vector2D>(" Vector2D_ptr" );
@@ -141,11 +116,6 @@ struct Stack<Vector2D>
141
116
return EValue (ctx, ref, false ).cast <ClassData*>()->HasData (" Vector2D_ptr" );
142
117
}
143
118
144
- static bool isJSInstance (EContext* ctx, JSValue value)
145
- {
146
- return EValue (ctx, value).cast <ClassData*>()->HasData (" Vector2D_ptr" );
147
- }
148
-
149
119
static bool isDotnetInstance (EContext* ctx, CallContext* context, int index)
150
120
{
151
121
return EValue (ctx, context->GetArgumentPtr (index), 18 ).cast <ClassData*>()->HasData (" Vector2D_ptr" );
@@ -160,11 +130,6 @@ struct Stack<Vector4D>
160
130
MAKE_CLASS_INSTANCE_CTX (ctx, " Vector4D" , { { " Vector4D_ptr" , value } }).pushLua ();
161
131
}
162
132
163
- static JSValue pushJS (EContext* ctx, Vector4D value)
164
- {
165
- return JS_DupValue (ctx->GetJSState (), MAKE_CLASS_INSTANCE_CTX (ctx, " Vector4D" , { { " Vector4D_ptr" , value } }).pushJS ());
166
- }
167
-
168
133
static ClassData* pushRawDotnet (EContext* ctx, CallContext* context, Vector4D value)
169
134
{
170
135
return (ClassData*)MAKE_CLASS_INSTANCE_CTX (ctx, " Vector4D" , { { " Vector4D_ptr" , value } }).getPointer ();
@@ -189,11 +154,6 @@ struct Stack<Vector4D>
189
154
return EValue (ctx, ref, false ).cast <ClassData*>()->GetData <Vector4D>(" Vector4D_ptr" );
190
155
}
191
156
192
- static Vector4D getJS (EContext* ctx, JSValue value)
193
- {
194
- return EValue (ctx, value).cast <ClassData*>()->GetData <Vector4D>(" Vector4D_ptr" );
195
- }
196
-
197
157
static Vector4D getRawDotnet (EContext* ctx, CallContext* context, void * value)
198
158
{
199
159
return EValue (ctx, value, 18 ).cast <ClassData*>()->GetData <Vector4D>(" Vector4D_ptr" );
@@ -210,11 +170,6 @@ struct Stack<Vector4D>
210
170
return EValue (ctx, ref, false ).cast <ClassData*>()->HasData (" Vector4D_ptr" );
211
171
}
212
172
213
- static bool isJSInstance (EContext* ctx, JSValue value)
214
- {
215
- return EValue (ctx, value).cast <ClassData*>()->HasData (" Vector4D_ptr" );
216
- }
217
-
218
173
static bool isDotnetInstance (EContext* ctx, CallContext* context, int index)
219
174
{
220
175
return EValue (ctx, context->GetArgumentPtr (index), 18 ).cast <ClassData*>()->HasData (" Vector4D_ptr" );
@@ -229,11 +184,6 @@ struct Stack<Color>
229
184
MAKE_CLASS_INSTANCE_CTX (ctx, " Color" , { { " Color_ptr" , value } }).pushLua ();
230
185
}
231
186
232
- static JSValue pushJS (EContext* ctx, Color value)
233
- {
234
- return JS_DupValue (ctx->GetJSState (), MAKE_CLASS_INSTANCE_CTX (ctx, " Color" , { { " Color_ptr" , value } }).pushJS ());
235
- }
236
-
237
187
static ClassData* pushRawDotnet (EContext* ctx, CallContext* context, Color value)
238
188
{
239
189
return (ClassData*)MAKE_CLASS_INSTANCE_CTX (ctx, " Color" , { { " Color_ptr" , value } }).getPointer ();
@@ -258,11 +208,6 @@ struct Stack<Color>
258
208
return EValue (ctx, ref, false ).cast <ClassData*>()->GetData <Color>(" Color_ptr" );
259
209
}
260
210
261
- static Color getJS (EContext* ctx, JSValue value)
262
- {
263
- return EValue (ctx, value).cast <ClassData*>()->GetData <Color>(" Color_ptr" );
264
- }
265
-
266
211
static Color getRawDotnet (EContext* ctx, CallContext* context, void * value)
267
212
{
268
213
return EValue (ctx, value, 18 ).cast <ClassData*>()->GetData <Color>(" Color_ptr" );
@@ -279,11 +224,6 @@ struct Stack<Color>
279
224
return EValue (ctx, ref, false ).cast <ClassData*>()->HasData (" Color_ptr" );
280
225
}
281
226
282
- static bool isJSInstance (EContext* ctx, JSValue value)
283
- {
284
- return EValue (ctx, value).cast <ClassData*>()->HasData (" Color_ptr" );
285
- }
286
-
287
227
static bool isDotnetInstance (EContext* ctx, CallContext* context, int index)
288
228
{
289
229
return EValue (ctx, context->GetArgumentPtr (index), 18 ).cast <ClassData*>()->HasData (" Color_ptr" );
@@ -298,11 +238,6 @@ struct Stack<QAngle>
298
238
MAKE_CLASS_INSTANCE_CTX (ctx, " QAngle" , { { " QAngle_ptr" , value } }).pushLua ();
299
239
}
300
240
301
- static JSValue pushJS (EContext* ctx, QAngle value)
302
- {
303
- return JS_DupValue (ctx->GetJSState (), MAKE_CLASS_INSTANCE_CTX (ctx, " QAngle" , { { " QAngle_ptr" , value } }).pushJS ());
304
- }
305
-
306
241
static ClassData* pushRawDotnet (EContext* ctx, CallContext* context, QAngle value)
307
242
{
308
243
return (ClassData*)MAKE_CLASS_INSTANCE_CTX (ctx, " QAngle" , { { " QAngle_ptr" , value } }).getPointer ();
@@ -327,11 +262,6 @@ struct Stack<QAngle>
327
262
return EValue (ctx, ref, false ).cast <ClassData*>()->GetData <QAngle>(" QAngle_ptr" );
328
263
}
329
264
330
- static QAngle getJS (EContext* ctx, JSValue value)
331
- {
332
- return EValue (ctx, value).cast <ClassData*>()->GetData <QAngle>(" QAngle_ptr" );
333
- }
334
-
335
265
static QAngle getRawDotnet (EContext* ctx, CallContext* context, void * value)
336
266
{
337
267
return EValue (ctx, value, 18 ).cast <ClassData*>()->GetData <QAngle>(" QAngle_ptr" );
@@ -348,17 +278,13 @@ struct Stack<QAngle>
348
278
return EValue (ctx, ref, false ).cast <ClassData*>()->HasData (" QAngle_ptr" );
349
279
}
350
280
351
- static bool isJSInstance (EContext* ctx, JSValue value)
352
- {
353
- return EValue (ctx, value).cast <ClassData*>()->HasData (" QAngle_ptr" );
354
- }
355
-
356
281
static bool isDotnetInstance (EContext* ctx, CallContext* context, int index)
357
282
{
358
283
return EValue (ctx, context->GetArgumentPtr (index), 18 ).cast <ClassData*>()->HasData (" QAngle_ptr" );
359
284
}
360
285
};
361
286
287
+
362
288
#include " iserver.h"
363
289
364
290
class GameSessionConfiguration_t
0 commit comments