public void Read(IDataInput param1, ICommandLookup lookup)
 {
     param1.ReadShort();
     this.assetType = lookup.Lookup(param1) as AssetTypeModule;
     this.assetType.Read(param1, lookup);
     this.uid = param1.ReadInt();
     this.uid = param1.Shift(this.uid, 3);
 }
 public AssetRemoveCommand(AssetTypeModule param1 = null, int param2 = 0)
 {
     if (param1 == null)
     {
         this.assetType = new AssetTypeModule();
     }
     else
     {
         this.assetType = param1;
     }
     this.uid = param2;
 }
 public AssetInfoCommand(int param1 = 0, AssetTypeModule param2 = null, int param3 = 0, int param4 = 0, int param5 = 0, int param6 = 0, bool param7 = false, int param8 = 0, int param9 = 0)
 {
     this.assetId = param1;
     if (param2 == null)
     {
         this.type = new AssetTypeModule();
     }
     else
     {
         this.type = param2;
     }
     this.designId        = param3;
     this.expansionStage  = param4;
     this.hitpoints       = param5;
     this.maxHitpoints    = param6;
     this.shielded        = param7;
     this.shieldEnergy    = param8;
     this.maxShieldEnergy = param9;
 }
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     param1.ReadShort();
     this.shieldEnergy    = param1.ReadInt();
     this.shieldEnergy    = param1.Shift(this.shieldEnergy, 16);
     this.shielded        = param1.ReadBoolean();
     this.hitpoints       = param1.ReadInt();
     this.hitpoints       = param1.Shift(this.hitpoints, 7);
     this.maxHitpoints    = param1.ReadInt();
     this.maxHitpoints    = param1.Shift(this.maxHitpoints, 15);
     this.assetId         = param1.ReadInt();
     this.assetId         = param1.Shift(this.assetId, 8);
     this.maxShieldEnergy = param1.ReadInt();
     this.maxShieldEnergy = param1.Shift(this.maxShieldEnergy, 5);
     this.type            = lookup.Lookup(param1) as AssetTypeModule;
     this.type.Read(param1, lookup);
     this.designId       = param1.ReadInt();
     this.designId       = param1.Shift(this.designId, 22);
     this.expansionStage = param1.ReadInt();
     this.expansionStage = param1.Shift(this.expansionStage, 15);
 }
예제 #5
0
 public AssetCreateCommand(AssetTypeModule param1 = null, string param2 = "", int param3 = 0, string param4 = "", int param5 = 0, int param6 = 0, int param7 = 0, int param8 = 0, int param9 = 0, int param10 = 0, bool param11 = false, bool param12 = false, bool param13 = false, bool param14 = false, ClanRelationModule param15 = null, List <VisualModifierCommand> param16 = null)
 {
     if (param1 == null)
     {
         this.type = new AssetTypeModule();
     }
     else
     {
         this.type = param1;
     }
     this.userName            = param2;
     this.factionId           = param3;
     this.clanTag             = param4;
     this.assetId             = param5;
     this.designId            = param6;
     this.expansionStage      = param7;
     this.posX                = param8;
     this.posY                = param9;
     this.clanId              = param10;
     this.invisible           = param11;
     this.visibleOnWarnRadar  = param12;
     this.detectedByWarnRadar = param13;
     this.showBubble          = param14;
     if (param15 == null)
     {
         this.clanRelation = new ClanRelationModule();
     }
     else
     {
         this.clanRelation = param15;
     }
     if (param16 == null)
     {
         this.modifier = new List <VisualModifierCommand>();
     }
     else
     {
         this.modifier = param16;
     }
 }
예제 #6
0
 public void Read(IDataInput param1, ICommandLookup lookup)
 {
     this.expansionStage = param1.ReadInt();
     this.expansionStage = param1.Shift(this.expansionStage, 18);
     this.clanTag        = param1.ReadUTF();
     param1.ReadShort();
     this.type = lookup.Lookup(param1) as AssetTypeModule;
     this.type.Read(param1, lookup);
     this.factionId    = param1.ReadInt();
     this.factionId    = param1.Shift(this.factionId, 14);
     this.posY         = param1.ReadInt();
     this.posY         = param1.Shift(this.posY, 17);
     this.clanRelation = lookup.Lookup(param1) as ClanRelationModule;
     this.clanRelation.Read(param1, lookup);
     this.detectedByWarnRadar = param1.ReadBoolean();
     this.modifier.Clear();
     for (int i = param1.ReadInt(); i > 0; i--)
     {
         var tmp_0 = lookup.Lookup(param1) as VisualModifierCommand;
         tmp_0.Read(param1, lookup);
         this.modifier.Add(tmp_0);
     }
     this.assetId   = param1.ReadInt();
     this.assetId   = param1.Shift(this.assetId, 11);
     this.invisible = param1.ReadBoolean();
     param1.ReadShort();
     this.showBubble         = param1.ReadBoolean();
     this.clanId             = param1.ReadInt();
     this.clanId             = param1.Shift(this.clanId, 26);
     this.userName           = param1.ReadUTF();
     this.designId           = param1.ReadInt();
     this.designId           = param1.Shift(this.designId, 18);
     this.posX               = param1.ReadInt();
     this.posX               = param1.Shift(this.posX, 9);
     this.visibleOnWarnRadar = param1.ReadBoolean();
 }