LuaPlus extenssion
This commit is contained in:
16
data/scripts/actors/actor_base.lua
Normal file
16
data/scripts/actors/actor_base.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
-- базовый класс актора
|
||||
actor_base = inherit_table(game_object)
|
||||
|
||||
-- инициализация FSM
|
||||
|
||||
function actor_base:on_init()
|
||||
game_object.on_init(self)
|
||||
end
|
||||
|
||||
function actor_base:on_shutdown()
|
||||
game_object.on_shutdown(self)
|
||||
end
|
||||
|
||||
function actor_base:on_update(dt)
|
||||
game_object.on_update(self, dt)
|
||||
end
|
||||
Reference in New Issue
Block a user