24 lines
No EOL
669 B
Text
24 lines
No EOL
669 B
Text
--'******************************************************
|
|
--'* Áèíäåð îáúåêòà ãðóïïèðîâêè.
|
|
--'******************************************************
|
|
function bind(obj)
|
|
obj:bind_object(faction_binder(obj))
|
|
end
|
|
|
|
class "faction_binder" (object_binder)
|
|
|
|
function faction_binder:__init(obj) super(obj)
|
|
end
|
|
|
|
function faction_binder:net_spawn(server_object)
|
|
if not object_binder.net_spawn(self, server_object) then
|
|
return false
|
|
end
|
|
--' ïîëó÷èòü ññûëêó íà íàñòîÿùèé ñåðâåðíûé îáúåêò
|
|
self.faction = alife():object(self.object:id())
|
|
return true
|
|
end
|
|
function faction_binder:update(delta)
|
|
object_binder.update(self, delta)
|
|
self.faction:update()
|
|
end |