Skip to content

Commit 1fee41f

Browse files
committed
update(entrypoint): Remove javascript entries
1 parent 8413611 commit 1fee41f

File tree

1 file changed

+1
-75
lines changed

1 file changed

+1
-75
lines changed

src/entrypoint.h

Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ struct Stack<Vector>
2222
MAKE_CLASS_INSTANCE_CTX(ctx, "Vector", { { "vector_ptr", value } }).pushLua();
2323
}
2424

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-
3025
static ClassData* pushRawDotnet(EContext* ctx, CallContext* context, Vector value)
3126
{
3227
return (ClassData*)MAKE_CLASS_INSTANCE_CTX(ctx, "Vector", { { "vector_ptr", value } }).getPointer();
@@ -51,11 +46,6 @@ struct Stack<Vector>
5146
return EValue(ctx, ref, false).cast<ClassData*>()->GetData<Vector>("vector_ptr");
5247
}
5348

54-
static Vector getJS(EContext* ctx, JSValue value)
55-
{
56-
return EValue(ctx, value).cast<ClassData*>()->GetData<Vector>("vector_ptr");
57-
}
58-
5949
static Vector getRawDotnet(EContext* ctx, CallContext* context, void* value)
6050
{
6151
return EValue(ctx, value, 18).cast<ClassData*>()->GetData<Vector>("vector_ptr");
@@ -72,11 +62,6 @@ struct Stack<Vector>
7262
return EValue(ctx, ref, false).cast<ClassData*>()->HasData("vector_ptr");
7363
}
7464

75-
static bool isJSInstance(EContext* ctx, JSValue value)
76-
{
77-
return EValue(ctx, value).cast<ClassData*>()->HasData("vector_ptr");
78-
}
79-
8065
static bool isDotnetInstance(EContext* ctx, CallContext* context, int index)
8166
{
8267
return EValue(ctx, context->GetArgumentPtr(index), 18).cast<ClassData*>()->HasData("vector_ptr");
@@ -91,11 +76,6 @@ struct Stack<Vector2D>
9176
MAKE_CLASS_INSTANCE_CTX(ctx, "Vector2D", { { "Vector2D_ptr", value } }).pushLua();
9277
}
9378

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-
9979
static ClassData* pushRawDotnet(EContext* ctx, CallContext* context, Vector2D value)
10080
{
10181
return (ClassData*)MAKE_CLASS_INSTANCE_CTX(ctx, "Vector2D", { { "Vector2D_ptr", value } }).getPointer();
@@ -120,11 +100,6 @@ struct Stack<Vector2D>
120100
return EValue(ctx, ref, false).cast<ClassData*>()->GetData<Vector2D>("Vector2D_ptr");
121101
}
122102

123-
static Vector2D getJS(EContext* ctx, JSValue value)
124-
{
125-
return EValue(ctx, value).cast<ClassData*>()->GetData<Vector2D>("Vector2D_ptr");
126-
}
127-
128103
static Vector2D getRawDotnet(EContext* ctx, CallContext* context, void* value)
129104
{
130105
return EValue(ctx, value, 18).cast<ClassData*>()->GetData<Vector2D>("Vector2D_ptr");
@@ -141,11 +116,6 @@ struct Stack<Vector2D>
141116
return EValue(ctx, ref, false).cast<ClassData*>()->HasData("Vector2D_ptr");
142117
}
143118

144-
static bool isJSInstance(EContext* ctx, JSValue value)
145-
{
146-
return EValue(ctx, value).cast<ClassData*>()->HasData("Vector2D_ptr");
147-
}
148-
149119
static bool isDotnetInstance(EContext* ctx, CallContext* context, int index)
150120
{
151121
return EValue(ctx, context->GetArgumentPtr(index), 18).cast<ClassData*>()->HasData("Vector2D_ptr");
@@ -160,11 +130,6 @@ struct Stack<Vector4D>
160130
MAKE_CLASS_INSTANCE_CTX(ctx, "Vector4D", { { "Vector4D_ptr", value } }).pushLua();
161131
}
162132

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-
168133
static ClassData* pushRawDotnet(EContext* ctx, CallContext* context, Vector4D value)
169134
{
170135
return (ClassData*)MAKE_CLASS_INSTANCE_CTX(ctx, "Vector4D", { { "Vector4D_ptr", value } }).getPointer();
@@ -189,11 +154,6 @@ struct Stack<Vector4D>
189154
return EValue(ctx, ref, false).cast<ClassData*>()->GetData<Vector4D>("Vector4D_ptr");
190155
}
191156

192-
static Vector4D getJS(EContext* ctx, JSValue value)
193-
{
194-
return EValue(ctx, value).cast<ClassData*>()->GetData<Vector4D>("Vector4D_ptr");
195-
}
196-
197157
static Vector4D getRawDotnet(EContext* ctx, CallContext* context, void* value)
198158
{
199159
return EValue(ctx, value, 18).cast<ClassData*>()->GetData<Vector4D>("Vector4D_ptr");
@@ -210,11 +170,6 @@ struct Stack<Vector4D>
210170
return EValue(ctx, ref, false).cast<ClassData*>()->HasData("Vector4D_ptr");
211171
}
212172

213-
static bool isJSInstance(EContext* ctx, JSValue value)
214-
{
215-
return EValue(ctx, value).cast<ClassData*>()->HasData("Vector4D_ptr");
216-
}
217-
218173
static bool isDotnetInstance(EContext* ctx, CallContext* context, int index)
219174
{
220175
return EValue(ctx, context->GetArgumentPtr(index), 18).cast<ClassData*>()->HasData("Vector4D_ptr");
@@ -229,11 +184,6 @@ struct Stack<Color>
229184
MAKE_CLASS_INSTANCE_CTX(ctx, "Color", { { "Color_ptr", value } }).pushLua();
230185
}
231186

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-
237187
static ClassData* pushRawDotnet(EContext* ctx, CallContext* context, Color value)
238188
{
239189
return (ClassData*)MAKE_CLASS_INSTANCE_CTX(ctx, "Color", { { "Color_ptr", value } }).getPointer();
@@ -258,11 +208,6 @@ struct Stack<Color>
258208
return EValue(ctx, ref, false).cast<ClassData*>()->GetData<Color>("Color_ptr");
259209
}
260210

261-
static Color getJS(EContext* ctx, JSValue value)
262-
{
263-
return EValue(ctx, value).cast<ClassData*>()->GetData<Color>("Color_ptr");
264-
}
265-
266211
static Color getRawDotnet(EContext* ctx, CallContext* context, void* value)
267212
{
268213
return EValue(ctx, value, 18).cast<ClassData*>()->GetData<Color>("Color_ptr");
@@ -279,11 +224,6 @@ struct Stack<Color>
279224
return EValue(ctx, ref, false).cast<ClassData*>()->HasData("Color_ptr");
280225
}
281226

282-
static bool isJSInstance(EContext* ctx, JSValue value)
283-
{
284-
return EValue(ctx, value).cast<ClassData*>()->HasData("Color_ptr");
285-
}
286-
287227
static bool isDotnetInstance(EContext* ctx, CallContext* context, int index)
288228
{
289229
return EValue(ctx, context->GetArgumentPtr(index), 18).cast<ClassData*>()->HasData("Color_ptr");
@@ -298,11 +238,6 @@ struct Stack<QAngle>
298238
MAKE_CLASS_INSTANCE_CTX(ctx, "QAngle", { { "QAngle_ptr", value } }).pushLua();
299239
}
300240

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-
306241
static ClassData* pushRawDotnet(EContext* ctx, CallContext* context, QAngle value)
307242
{
308243
return (ClassData*)MAKE_CLASS_INSTANCE_CTX(ctx, "QAngle", { { "QAngle_ptr", value } }).getPointer();
@@ -327,11 +262,6 @@ struct Stack<QAngle>
327262
return EValue(ctx, ref, false).cast<ClassData*>()->GetData<QAngle>("QAngle_ptr");
328263
}
329264

330-
static QAngle getJS(EContext* ctx, JSValue value)
331-
{
332-
return EValue(ctx, value).cast<ClassData*>()->GetData<QAngle>("QAngle_ptr");
333-
}
334-
335265
static QAngle getRawDotnet(EContext* ctx, CallContext* context, void* value)
336266
{
337267
return EValue(ctx, value, 18).cast<ClassData*>()->GetData<QAngle>("QAngle_ptr");
@@ -348,17 +278,13 @@ struct Stack<QAngle>
348278
return EValue(ctx, ref, false).cast<ClassData*>()->HasData("QAngle_ptr");
349279
}
350280

351-
static bool isJSInstance(EContext* ctx, JSValue value)
352-
{
353-
return EValue(ctx, value).cast<ClassData*>()->HasData("QAngle_ptr");
354-
}
355-
356281
static bool isDotnetInstance(EContext* ctx, CallContext* context, int index)
357282
{
358283
return EValue(ctx, context->GetArgumentPtr(index), 18).cast<ClassData*>()->HasData("QAngle_ptr");
359284
}
360285
};
361286

287+
362288
#include "iserver.h"
363289

364290
class GameSessionConfiguration_t

0 commit comments

Comments
 (0)