mirror of
https://github.com/enduro2d/enduro2d.git
synced 2025-12-15 00:11:55 +07:00
23 lines
415 B
Lua
23 lines
415 B
Lua
---@class behaviour
|
|
local behaviour = {
|
|
---@type boolean
|
|
enabled = true,
|
|
|
|
---@type boolean
|
|
disabled = false,
|
|
|
|
---@type table
|
|
meta = {}
|
|
}
|
|
|
|
---@overload fun(self: behaviour)
|
|
---@param self behaviour
|
|
function behaviour.enable(self) end
|
|
|
|
---@overload fun(self: behaviour)
|
|
---@param self behaviour
|
|
function behaviour.disable(self) end
|
|
|
|
---@type behaviour
|
|
_G.behaviour = _G.behaviour or behaviour
|