forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntity.lua
More file actions
27 lines (21 loc) · 700 Bytes
/
Entity.lua
File metadata and controls
27 lines (21 loc) · 700 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
#****************************************************************************
#** File : /lua/sim/Entity.lua
#** Summary : The Entity lua module
#**
#** Copyright © 2008 Gas Powered Games, Inc. All rights reserved.
#****************************************************************************
Entity = Class(moho.entity_methods) {
__init = function(self,spec)
_c_CreateEntity(self,spec)
end,
__post_init = function(self,spec)
self:OnCreate(spec)
end,
OnCreate = function(self,spec)
self.Spec = spec
self.EntityId = self:GetEntityId()
self.Army = self:GetArmy()
end,
OnDestroy = function(self)
end,
}