Files
PlanetFleet/Assets/Scripts/Core/player.lua
T

47 lines
584 B
Lua

Player = {
refineds = 0,
wealth = 0,
research = 0,
faction = -1,
difficulty = -1,
team = -1,
units = {}
}
function Player:new(pl)
player = pl or {}
self.__index = self
setmetatable(player, self)
return player
end
function Player:foo1()
print('foo 1')
return true
end
function Player:foo2()
print('foo 2')
return true
end
function Player:foo3()
print('foo 3')
return true
end
function Player:foo4()
print('foo 4')
return true
end
function Player:update()
executeBtNode(self.behaviour)
end
Player.behaviour = {
type = BTNodeType.SEQUENCE,
children = {
}
}