feat: add UnLua TS spec, TSTL compiler plugin, types, examples, and tests
This commit is contained in:
1 parent
68852d049c
commit
c0ac6eaad6
19 files changed
+3273
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user