feat: upgrade to ts2lua-unreal v0.3.0 and refactor Game classes to pure C++ callback + TS composition hot-reload

This commit is contained in:
szy73711 committed 2026-11-30 02:42:51 +08:00
1 parent 4ad4a8f36f
commit 783dccf53d
64 files changed
+2368 -714

No files matched your search

+7 -8
View File
@@ -1,12 +1,11 @@
/** @noSelfInFile */
import * as Log from "../Framework/Log";
@unlua
export default class LuaCharacter extends UE.ALuaCharacter {
ReceiveBeginPlay(): void {
Log.Info("LuaCharacter:ReceiveBeginPlay()");
}
export function OnBeginPlay(_character: UE.ALuaCharacter): void {
Log.Info("LuaCharacter.OnBeginPlay()");
}
ReceiveEndPlay(EndPlayReason: number): void {
Log.Info("LuaCharacter:ReceiveEndPlay(reason=%s)", tostring(EndPlayReason));
}
export function OnEndPlay(_character: UE.ALuaCharacter, endPlayReason: number): void {
Log.Info("LuaCharacter.OnEndPlay(reason=%s)", tostring(endPlayReason));
}