feat: add UnLua TS spec, TSTL compiler plugin, types, examples, and tests

This commit is contained in:
szy73711 committed 2026-11-28 22:26:22 +08:00
1 parent 68852d049c
commit c0ac6eaad6
19 files changed
+3273 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import * as Log from "../Framework/Log";
import LuaDemoActor from "./LuaDemoActor";
@unlua
export default class LuaSpecialDemoActor extends LuaDemoActor {
private BoostMultiplier!: number;
ReceiveBeginPlay(): void {
super.ReceiveBeginPlay();
this.BoostMultiplier = 2.0;
Log.Info("LuaSpecialDemoActor initialized with boost=%.1f", this.BoostMultiplier);
}
ReceiveTick(DeltaSeconds: number): void {
super.ReceiveTick(DeltaSeconds * this.BoostMultiplier);
}
}