예제 #1
0
 public UnitDefinition()
 {
     m_name = string.Empty;
     m_artBundle = null;
     //m_coreSprite = null;
     //m_coreAnimation = null;
     //m_bodySprite = null;
     //m_bodySprites = null;
     m_modules = new BaseUnitModule[0];
     Movement = 0;
     MaxHealth = 0;
     ActionModules = new ActionModule[0];
     TotalCost = 0;
 }
예제 #2
0
 public UnitDefinition( UnitArtBundle artBundle, params BaseUnitModule[] modules )
     : this()
 {
     m_artBundle = artBundle;
     m_modules = modules.Clone() as BaseUnitModule[];
 }