初始化提交
This commit is contained in:
		
							
								
								
									
										38
									
								
								Content/Lua/@types/BusyEnum.d.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								Content/Lua/@types/BusyEnum.d.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,38 @@ | ||||
| ---@enum EBusyRoleState | ||||
| local EBusyRoleState = { | ||||
|     BonfireIdle = 0, | ||||
|     Searching = 1, | ||||
|     Picking = 2, | ||||
| 	PickFinished = 3, | ||||
|     BackBonfire = 4 | ||||
| } | ||||
|  | ||||
| ---@enum ERoleMoveDirection | ||||
| local ERoleMoveDirection = { | ||||
| 	Move_Right = 0, | ||||
| 	Move_Left = 1, | ||||
| 	Move_All_Cnt = 2 | ||||
| }; | ||||
|  | ||||
| ---@enum EBusyItemEffectType | ||||
| local EBusyItemEffectType = { | ||||
| 	Health = 0, | ||||
| 	Hunger = 1, | ||||
| 	Speed = 2, | ||||
| }; | ||||
|  | ||||
| ---@enum EBusyAnimationPhase | ||||
| local EBusyAnimationPhase = { | ||||
| 	PrepareCast = 0, | ||||
| 	Casting = 1, | ||||
| 	PostCast = 2, | ||||
| }; | ||||
|  | ||||
| ---@enum EWidgetLayoutType | ||||
| local EWidgetLayoutType = { | ||||
| 	MainLayer = 0, | ||||
| 	PopupLayer = 1, | ||||
| 	FloatLayer = 2, | ||||
| 	TopLayer = 3, | ||||
| 	LayerTypeMax = 4 | ||||
| }; | ||||
							
								
								
									
										24
									
								
								Content/Lua/@types/UE.d.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								Content/Lua/@types/UE.d.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,24 @@ | ||||
| -- 这个返回值固定返回的是string,我希望当我使用import("ERoleState")时,它返回的是ERoleState的注解,或者是ERoleState.lua这个文件返回值的注解 | ||||
| -- ---自定义导入函数,功能类似require但支持额外特性 | ||||
| -- ---@generic T | ||||
| -- ---@param modulePath T 模块路径或预加载的模块 | ||||
| -- ---@param hotReload? boolean 是否启用热重载 | ||||
| -- ---@return T 返回加载的模块 | ||||
| -- function import(modulePath, hotReload) end | ||||
|  | ||||
|  | ||||
| ---自定义模块导入函数,支持类型感知的模块加载 | ||||
| ---@generic T : string  -- 限定modulePath为字符串类型 | ||||
| ---@param modulePath `T` 模块路径(如"ERoleState") | ||||
| ---@param hotReload? boolean 是否启用热重载 | ||||
| ---@return T 返回对应模块的类型 | ||||
| ---@error 当模块加载失败时抛出错误 | ||||
| function import(modulePath, hotReload) end | ||||
|  | ||||
|  | ||||
| function Class(a, b, c) end | ||||
|  | ||||
| ---@class slua | ||||
| slua = { | ||||
|     createDelegate = function(func) end | ||||
| } | ||||
							
								
								
									
										8
									
								
								Content/Lua/@types/UEEnum.d.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								Content/Lua/@types/UEEnum.d.lua
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,8 @@ | ||||
| ---@enum ESlateVisibility | ||||
| local ESlateVisibility = { | ||||
| 	Visible = 0, | ||||
| 	Collapsed = 1, | ||||
| 	Hidden = 2, | ||||
| 	HitTestInvisible = 3, | ||||
| 	SelfHitTestInvisible = 4 | ||||
| } | ||||
		Reference in New Issue
	
	Block a user