Entity: create dummy-class
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
local modInfo = Mod.getInfo('smc__core__entity')
|
||||||
|
local require = modInfo.require
|
||||||
|
|
||||||
|
return require('Entity')
|
||||||
16
mods/CORE/Entity/src/Entity.lua
Normal file
16
mods/CORE/Entity/src/Entity.lua
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
local getInstance = Class.getInstance
|
||||||
|
|
||||||
|
---@class Entity
|
||||||
|
local Entity = {}
|
||||||
|
|
||||||
|
---@param def Entity.EntityDefinition
|
||||||
|
---@return Entity
|
||||||
|
function Entity:new(def)
|
||||||
|
local instance = getInstance(self, {
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
return instance
|
||||||
|
end
|
||||||
|
|
||||||
|
return Entity
|
||||||
4
mods/CORE/Entity/src/Entity/EntityDefinition.lua
Normal file
4
mods/CORE/Entity/src/Entity/EntityDefinition.lua
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---@class Entity.EntityDefinition
|
||||||
|
local EntityDefinition = {}
|
||||||
|
|
||||||
|
return EntityDefinition
|
||||||
Reference in New Issue
Block a user