From 6d8683c933c55fa117b465c4e35b08c28143ef1c Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 31 Jul 2018 14:05:14 +0800 Subject: *update --- component/component.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 component/component.lua (limited to 'component') diff --git a/component/component.lua b/component/component.lua new file mode 100644 index 0000000..5337370 --- /dev/null +++ b/component/component.lua @@ -0,0 +1,20 @@ +local Component = { + object = nil +} + +Component.new = function(obj) + local component = {} + setmetatable(component, Component) + component.__index = Component + component:_init(obj) +end + +Component._init = function(self, obj) + self.object = obj +end + +Component.update = function(dt) + +end + +return Component \ No newline at end of file -- cgit v1.1-26-g67d0