初始化提交

This commit is contained in:
2025-07-09 01:08:35 +08:00
parent d3296791cf
commit 62e0f56c60
618 changed files with 173543 additions and 0 deletions

View 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
};

View 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
}

View File

@ -0,0 +1,8 @@
---@enum ESlateVisibility
local ESlateVisibility = {
Visible = 0,
Collapsed = 1,
Hidden = 2,
HitTestInvisible = 3,
SelfHitTestInvisible = 4
}