public BattleStationBuildingUiInitializationCommand(int param1 = 0, int param2 = 0, string param3 = "", AsteroidProgressCommand param4 = null, AvailableModulesCommand param5 = null, int param6 = 0, int param7 = 0, int param8 = 0)
 {
     this.mapAssetId        = param1;
     this.battleStationId   = param2;
     this.battleStationName = param3;
     if (param4 == null)
     {
         this.progress = new AsteroidProgressCommand();
     }
     else
     {
         this.progress = param4;
     }
     if (param5 == null)
     {
         this.availableModules = new AvailableModulesCommand();
     }
     else
     {
         this.availableModules = param5;
     }
     this.buildTimeInMinutesMin       = param6;
     this.buildTimeInMinutesMax       = param7;
     this.buildTimeInMinutesIncrement = param8;
 }
Exemple #2
0
 public BattleStationManagementUiInitializationCommand(int param1 = 0, int param2 = 0, string param3 = "", string param4 = "", FactionModule param5 = null, BattleStationStatusCommand param6 = null, AvailableModulesCommand param7 = null, int param8 = 0, int param9 = 0, int param10 = 0, bool param11 = false)
 {
     this.mapAssetId        = param1;
     this.battleStationId   = param2;
     this.battleStationName = param3;
     this.clanName          = param4;
     if (param5 == null)
     {
         this.faction = new FactionModule();
     }
     else
     {
         this.faction = param5;
     }
     if (param6 == null)
     {
         this.state = new BattleStationStatusCommand();
     }
     else
     {
         this.state = param6;
     }
     if (param7 == null)
     {
         this.availableModules = new AvailableModulesCommand();
     }
     else
     {
         this.availableModules = param7;
     }
     this.deflectorShieldMinutesMin       = param8;
     this.deflectorShieldMinutesMax       = param9;
     this.deflectorShieldMinutesIncrement = param10;
     this.deflectorDeactivationPossible   = param11;
 }
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     this.buildTimeInMinutesMin = param1.ReadInt();
     this.buildTimeInMinutesMin = param1.Shift(this.buildTimeInMinutesMin, 19);
     this.battleStationId       = param1.ReadInt();
     this.battleStationId       = param1.Shift(this.battleStationId, 8);
     this.buildTimeInMinutesMax = param1.ReadInt();
     this.buildTimeInMinutesMax = param1.Shift(this.buildTimeInMinutesMax, 17);
     this.availableModules      = lookup.Lookup(param1) as AvailableModulesCommand;
     this.availableModules.Read(param1, lookup);
     this.battleStationName           = param1.ReadUTF();
     this.mapAssetId                  = param1.ReadInt();
     this.mapAssetId                  = param1.Shift(this.mapAssetId, 23);
     this.buildTimeInMinutesIncrement = param1.ReadInt();
     this.buildTimeInMinutesIncrement = param1.Shift(this.buildTimeInMinutesIncrement, 22);
     this.progress = lookup.Lookup(param1) as AsteroidProgressCommand;
     this.progress.Read(param1, lookup);
     param1.ReadShort();
 }
Exemple #4
0
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     this.deflectorShieldMinutesMax       = param1.ReadInt();
     this.deflectorShieldMinutesMax       = param1.Shift(this.deflectorShieldMinutesMax, 5);
     this.deflectorShieldMinutesIncrement = param1.ReadInt();
     this.deflectorShieldMinutesIncrement = param1.Shift(this.deflectorShieldMinutesIncrement, 2);
     this.deflectorShieldMinutesMin       = param1.ReadInt();
     this.deflectorShieldMinutesMin       = param1.Shift(this.deflectorShieldMinutesMin, 9);
     this.battleStationId  = param1.ReadInt();
     this.battleStationId  = param1.Shift(this.battleStationId, 21);
     this.availableModules = lookup.Lookup(param1) as AvailableModulesCommand;
     this.availableModules.Read(param1, lookup);
     this.battleStationName = param1.ReadUTF();
     this.state             = lookup.Lookup(param1) as BattleStationStatusCommand;
     this.state.Read(param1, lookup);
     this.faction = lookup.Lookup(param1) as FactionModule;
     this.faction.Read(param1, lookup);
     this.deflectorDeactivationPossible = param1.ReadBoolean();
     this.clanName   = param1.ReadUTF();
     this.mapAssetId = param1.ReadInt();
     this.mapAssetId = param1.Shift(this.mapAssetId, 16);
 }