summaryrefslogtreecommitdiff
path: root/Source/Asura.Framework/component.lua
blob: 2954743ac47c58ab66cb2324d8cecd5f34f48d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
AsuraEngine.Component = AsuraEngine.Class("Component")

local Component = AsuraEngine.Component

--Component.entity = AsuraEngine.Type.GameObject

--派生新的组件
function Component.Sub(cname)
  assert(Component.components[cname] == nil)
  
end 

function Component:Ctor(go)
  self.entity = go
end

function Component:OnEvent(e)

end

function Component:OnUpdate(ms)

end

function Component:OnDraw() 

end