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

+16
View File
@@ -0,0 +1,16 @@
/**
* UnrealLuaDemo 项目自定义 C++ Actor 类型声明示例
*/
declare namespace UE {
class ALuaDemoActor extends AActor {
SpinSpeed: number;
BobFrequency: number;
BobAmplitude: number;
AddCubeLocalRotation(DeltaRotation: FRotator): void;
SetCubeVerticalOffset(ZOffset: number): void;
SetCubeColor(Color: FLinearColor): void;
SetStatusText(Text: string): void;
static StaticClass(this: void): UClass;
}
}