Skip to content

Commit

Permalink
refactor: remove NativeAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Aug 4, 2024
1 parent 8665615 commit 39feca7
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/legacy/main/BindAPIs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ void BindAPIs(ScriptEngine* engine) {
engine->registerNativeClass(OriginTypeStaticBuilder);
engine->registerNativeClass(DamageCauseEnumBuilder);

// engine->registerNativeClass(PermissionClassBuilder);

engine->registerNativeClass(I18nClassBuilder);

//////////////// 实例类 ////////////////
Expand Down Expand Up @@ -111,15 +109,14 @@ void BindAPIs(ScriptEngine* engine) {
engine->registerNativeClass<HttpRequestClass>(HttpRequestClassBuilder);
engine->registerNativeClass<HttpResponseClass>(HttpResponseClassBuilder);
engine->registerNativeClass<BinaryStreamClass>(BinaryStreamClassBuilder);
// engine->registerNativeClass<RoleClass>(RoleClassBuilder);
engine->registerNativeClass<ParticleSpawner>(ParticleSpawnerBuilder);

//////////////// NativeFFI ////////////////
engine->registerNativeClass(NativeTypeEnumBuilder);
engine->registerNativeClass<NativePointer>(NativePointerBuilder);
engine->registerNativeClass<ScriptNativeFunction>(NativeCallBuilder);
engine->registerNativeClass<NativeStdString>(NativeStdStringBuilder);
engine->registerNativeClass<DynamicHookData>(NativeHookBuilder);
// engine->registerNativeClass(NativeTypeEnumBuilder);
// engine->registerNativeClass<NativePointer>(NativePointerBuilder);
// engine->registerNativeClass<ScriptNativeFunction>(NativeCallBuilder);
// engine->registerNativeClass<NativeStdString>(NativeStdStringBuilder);
// engine->registerNativeClass<DynamicHookData>(NativeHookBuilder);
// engine->registerNativeClass<NativePatch>(NativePatchBuilder);
engine->registerNativeClass<GlobalNativePointer>(GlobalNativePointerBuilder);
// engine->registerNativeClass<GlobalNativePointer>(GlobalNativePointerBuilder);
}

0 comments on commit 39feca7

Please sign in to comment.