-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
34 lines (26 loc) · 699 Bytes
/
Copy pathmain.lua
File metadata and controls
34 lines (26 loc) · 699 Bytes
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
31
32
33
34
require("luaCommon.__init__")
require("ECASystem.__init__")
require_ex("skill")
Father = DefineClass("Father")
function Father:ctor(name)
self.name = name
self.position = {100, 100, 100}
end
Child = DefineClass("Child", Father)
function Child:ctor(name)
Father.ctor(self, name)
end
Puppet = DefineClass("Puppet")
function Puppet:ctor(name)
self.name = name
self.position = {20, 20, 20}
end
local skillData = require("skill_data")
local father = Father.new("XiaoTou")
local child = Child.new("DaTou")
local ant = Puppet.new("ant")
child.puppet = ant
local skill = Skill.new(child)
skill:initECASystem(skillData[101])
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
skill:start()