summaryrefslogtreecommitdiff
path: root/Source/modules/asura-framework/scripts/component.lua
blob: b560bd3c16dc31b933d1dd10fbf1a79f9ed468cc (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
28
29
30
AsuraEngine.Component = AsuraEngine.Class("Component")

local Component = AsuraEngine.Component

-- Component要显示在inspector的变量
Component.entity = AsuraEngine.Type.Entity

function Component.Extend(cname)
	self.base(cname)
	assert(Component.components[cname] == nil)
	
end 

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

function Component:OnEvent(e)

end

function Component:OnUpdate(ms)

end

function Component:OnDraw() 

end

return Component