Пример #1
0
 public void BecomeWreckage()
 {
     health             = 0;
     type               = type.WreckedType();
     properties         = new ComponentProperty[0];
     damageBeforeHealth = new string[0];
     //Change sprite
 }
        public ShipComponentType WreckedType()
        {
            ShipComponentType t = new ShipComponentType();

            t.shape            = shape;
            t.maxHealth        = 0;
            t.adjacencyBonuses = new ComponentAdjacencyBonus[0];
            t.properties       = new ComponentProperty[0];
            return(t);
        }