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
Vendored
+16
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user