add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
24
gamedata/scripts/bind_faction.script
Normal file
24
gamedata/scripts/bind_faction.script
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
--'******************************************************
|
||||
--'* Áèíäåð îáúåêòà ãðóïïèðîâêè.
|
||||
--'******************************************************
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue