예제 #1
0
 public void Destroy(App game)
 {
     if (this.m_formation != null)
     {
         this.m_formation.ParentShipFormation = (ShipFormation)null;
         game.ReleaseObject((IGameObject)this.m_formation);
     }
     this.m_formation = (FormationDefinition)null;
 }
예제 #2
0
 public ShipFormation(App game)
 {
     this.m_facing           = -Vector3.UnitZ;
     this.m_destination      = Vector3.Zero;
     this.m_ships            = new List <Ship>();
     this.m_shipsOnBackLine  = new List <Ship>();
     this.m_formationPattern = new List <FormationPatternData>();
     this.m_destSet          = false;
     this.m_requiresReset    = false;
     this.m_isVFormation     = false;
     this.m_formation        = game.AddObject <FormationDefinition>();
     this.m_formation.ParentShipFormation = this;
     this.m_destroyed          = false;
     this.m_BackLineOffsetDist = 750f;
 }