chore: upgrade ts2lua-unreal to v0.3.1 with lowercase lib/module.lua & lib/class.lua and commit framework refactor
This commit is contained in:
1 parent
783dccf53d
commit
3572f2da43
206 files changed
+14442
-13186
No files matched your search
Vendored
+2
-7
@@ -11,12 +11,7 @@ interface LuaPackageTable {
|
||||
loaded: Record<string, unknown>;
|
||||
}
|
||||
|
||||
declare var GameFramework: Record<string, unknown> | undefined;
|
||||
declare var __UE_TEST_GAME_INSTANCE: UE.ULuaGameInstance | undefined;
|
||||
declare var __UE_TEST_WORLD: UE.UWorld | undefined;
|
||||
declare var __UE_TEST_TICK: ((this: void, deltaSeconds: number) => void) | undefined;
|
||||
|
||||
declare namespace UE {
|
||||
interface ALuaDemoActor {
|
||||
GetCubeColor(): FLinearColor;
|
||||
}
|
||||
}
|
||||
declare var __UE_TEST_GC: ((this: void) => void) | undefined;
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// Auto-generated by UnLua TypeScript Generator (Generate IntelliSense & TS).
|
||||
// Do not edit manually. Excludes runtime types owned by unlua.d.ts.
|
||||
|
||||
declare namespace UE {
|
||||
class WBP_MiniSettings_C extends UUserWidget {
|
||||
TxtToggleLabel: UTextBlock;
|
||||
TxtStatus: UTextBlock;
|
||||
ImgIcon: UImage;
|
||||
BtnToggle: UButton;
|
||||
BtnClose: UButton;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
}
|
||||
+90
-27
@@ -4,45 +4,49 @@
|
||||
declare namespace UE {
|
||||
class ALuaCharacter extends ACharacter {
|
||||
LuaModuleName: string;
|
||||
GetModuleName(): string;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ALuaDemoActor extends AActor {
|
||||
SceneRoot: USceneComponent;
|
||||
CubeMesh: UStaticMeshComponent;
|
||||
StatusText: UTextRenderComponent;
|
||||
SpinSpeed: number;
|
||||
BobAmplitude: number;
|
||||
BobFrequency: number;
|
||||
LuaModuleName: string;
|
||||
CubeDynamicMaterial: UMaterialInstanceDynamic;
|
||||
SetStatusText(InText: string): void;
|
||||
SetCubeVerticalOffset(ZOffset: number): void;
|
||||
SetCubeColor(NewColor: FLinearColor): void;
|
||||
GetStatusTextString(): string;
|
||||
GetInitialLocation(): FVector;
|
||||
GetCubeLocalRotation(): FRotator;
|
||||
AddCubeLocalRotation(DeltaRotation: FRotator): void;
|
||||
GetModuleName(): string;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ALuaGameModeBase extends AGameModeBase {
|
||||
LuaModuleName: string;
|
||||
GetModuleName(): string;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ALuaPlayerController extends APlayerController {
|
||||
LuaModuleName: string;
|
||||
OnDemoPingPressed(): void;
|
||||
OnDemoHotReloadPressed(): void;
|
||||
DemoVerifyInteraction(): void;
|
||||
GetModuleName(): string;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
enum ELuaStorageStatus {
|
||||
Ok = 0,
|
||||
NotFound = 1,
|
||||
Corrupted = 2,
|
||||
WriteFailed = 3,
|
||||
InvalidArgument = 4,
|
||||
ELuaStorageStatus_MAX = 5,
|
||||
}
|
||||
namespace ELuaStorageStatus {
|
||||
function GetMaxValue(this: void): number;
|
||||
function GetNameStringByValue(this: void, value: number): string;
|
||||
function GetDisplayNameTextByValue(this: void, value: number): string;
|
||||
}
|
||||
|
||||
interface FLuaStorageReadResult {
|
||||
Status: ELuaStorageStatus;
|
||||
PayloadUtf8: string;
|
||||
ContainerVersion: number;
|
||||
bRecoveredFromBackup: boolean;
|
||||
ErrorMessage: string;
|
||||
}
|
||||
function FLuaStorageReadResult(this: void): FLuaStorageReadResult;
|
||||
|
||||
interface FMountedPatchContainerInfo {
|
||||
ContainerPath: string;
|
||||
MountPoint: string;
|
||||
Priority: number;
|
||||
}
|
||||
function FMountedPatchContainerInfo(this: void): FMountedPatchContainerInfo;
|
||||
|
||||
class ULuaBlueprintLibrary extends UBlueprintFunctionLibrary {
|
||||
static TriggerLuaHotReload(this: void): void;
|
||||
static ReloadLuaModule(this: void, ModuleName: string): boolean;
|
||||
@@ -60,9 +64,13 @@ declare namespace UE {
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaButtonClickProxy extends UObject {
|
||||
HandleClicked(): void;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaGameInstance extends UGameInstance {
|
||||
LuaModuleName: string;
|
||||
GetModuleName(): string;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
@@ -77,6 +85,39 @@ declare namespace UE {
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaResourceSubsystem extends UGameInstanceSubsystem {
|
||||
UnmountPatchContainer(ContainerPath: string): boolean;
|
||||
ResolveAssetPath(KeyOrPath: string): string;
|
||||
RequestLoadObjectAsync(KeyOrPath: string, WorldGen: number): number;
|
||||
RequestLoadClassAsync(KeyOrPath: string, WorldGen: number): number;
|
||||
ReleaseAsset(ResolvedSoftPath: string): void;
|
||||
RegisterBaseAssetKey(LogicalKey: string, SoftPath: string): void;
|
||||
PurgeCachedAsset(KeyOrPath: string): boolean;
|
||||
MountPatchContainer(ContainerPath: string, Priority: number | undefined, MountPoint: string): boolean;
|
||||
LoadObjectSync(KeyOrPath: string): UObject;
|
||||
LoadClassSync(KeyOrPath: string): TSubclassOf<UObject>;
|
||||
static IsPackagedResourceMode(this: void): boolean;
|
||||
GetResourceStats(OutInFlightCount?: number, OutRetainedAssetCount?: number, OutTotalRefCount?: number): LuaMultiReturn<[number, number, number]>;
|
||||
GetMountedPatchContainers(): TArray<FMountedPatchContainerInfo>;
|
||||
static GetHotUpdatePakDir(this: void): string;
|
||||
static GetFromGameInstance(this: void, GameInstance: UGameInstance | undefined): ULuaResourceSubsystem;
|
||||
GetAssetRefCount(KeyOrPath: string): number;
|
||||
DoesAssetExist(KeyOrPath: string): boolean;
|
||||
ClearPatchManifest(): void;
|
||||
CancelRequestsForWorld(WorldGen: number): number;
|
||||
CancelRequest(RequestId: number): boolean;
|
||||
ApplyPatchManifest(ManifestJson: string): boolean;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaSaveGame extends USaveGame {
|
||||
ContainerVersion: number;
|
||||
ScopeName: string;
|
||||
PayloadCRC32: number;
|
||||
PayloadBytes: TArray<number>;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaScriptSettings extends UDeveloperSettings {
|
||||
ExternalScriptRelativePath: string;
|
||||
LuaBundleAssetPath: FSoftObjectPath;
|
||||
@@ -87,4 +128,26 @@ declare namespace UE {
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaStorageLibrary extends UBlueprintFunctionLibrary {
|
||||
static WriteCorruptRawSlotForTest(this: void, SlotName: string, RawGarbage: string, UserIndex?: number): boolean;
|
||||
static SaveSlotUtf8(this: void, SlotName: string, PayloadUtf8: string, UserIndex?: number): ELuaStorageStatus;
|
||||
static LoadSlotUtf8(this: void, SlotName: string, UserIndex?: number): FLuaStorageReadResult;
|
||||
static GetSaveGamesDir(this: void): string;
|
||||
static DoesSlotExist(this: void, SlotName: string, UserIndex?: number): boolean;
|
||||
static DoesCorruptBackupExist(this: void, SlotName: string, UserIndex?: number): boolean;
|
||||
static DeleteSlot(this: void, SlotName: string, UserIndex?: number, bDeleteBackups?: boolean): boolean;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
class ULuaUIEventSubsystem extends UGameInstanceSubsystem {
|
||||
ActiveButtonProxies: TMap<number, ULuaButtonClickProxy>;
|
||||
UnbindButtonClicked(BindingId: number): boolean;
|
||||
static SimulateButtonClick(this: void, Button: UButton | undefined): boolean;
|
||||
static GetFromGameInstance(this: void, GameInstance: UGameInstance | undefined): ULuaUIEventSubsystem;
|
||||
GetActiveBindingCount(): number;
|
||||
static FindChildWidgetByName(this: void, RootWidget: UUserWidget | undefined, WidgetName: string): UWidget;
|
||||
BindButtonClicked(Button: UButton | undefined): number;
|
||||
static StaticClass(this: void): UClass;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user