/// <summary> /// Decodes from the specified stream. /// </summary> /// <param name="Stream">The stream.</param> public void Decode(ByteStream Stream) { this.HighId = Stream.ReadInt(); this.LowId = Stream.ReadInt(); this.Name = Stream.ReadString(); this.Badge = Stream.DecodeData <AllianceBadgeData>(); this.Type = Stream.ReadVInt(); this.MembersCount = Stream.ReadVInt(); this.Score = Stream.ReadVInt(); this.RequiredScore = Stream.ReadVInt(); Stream.ReadVInt(); Stream.ReadVInt(); Stream.ReadVInt(); Stream.ReadVInt(); this.Donations = Stream.ReadVInt(); Stream.ReadVInt(); this.Locale = Stream.DecodeData <LocaleData>(); this.Region = Stream.DecodeData <RegionData>(); bool Event = Stream.ReadBoolean(); if (Event) { // TODO : Decode the clan event. } }
/// <summary> /// Decodes this instance. /// </summary> public override void Decode() { this.Description = this.Stream.ReadString(); this.Badge = this.Stream.DecodeData <AllianceBadgeData>(); this.HiringType = this.Stream.ReadVInt(); this.RequiredScore = this.Stream.ReadVInt(); this.Location = this.Stream.DecodeData <RegionData>(); }
/// <summary> /// Initializes the specified alliance. /// </summary> /// <param name="Clan">The alliance.</param> public void Initialize(AllianceHeaderEntry HeaderEntry) { base.Initialize(HeaderEntry.HighId, HeaderEntry.Name, HeaderEntry.Score, 1, 1); this.RegionData = HeaderEntry.Region; this.BadgeData = HeaderEntry.Badge; this.MembersCount = HeaderEntry.MembersCount; }
/// <summary> /// Decodes from the specified stream. /// </summary> /// <param name="Stream">The stream.</param> public void Decode(ByteStream Stream) { base.Decode(Stream); this.BadgeData = Stream.DecodeData <AllianceBadgeData>(); this.RegionData = Stream.DecodeData <RegionData>(); this.MembersCount = Stream.ReadVInt(); }
/// <summary> /// Creates the data for the specified row. /// </summary> /// <param name="Row">The row.</param> internal Data Create(Row Row) { Data Data; switch (this.Index) { case 0: { Data = new BuildingData(Row, this); break; } case 1: { Data = new LocaleData(Row, this); break; } case 2: { Data = new ResourceData(Row, this); break; } case 3: { Data = new CharacterData(Row, this); break; } case 6: { Data = new BuildingClassData(Row, this); break; } case 7: { Data = new ObstacleData(Row, this); break; } case 8: { Data = new EffectData(Row, this); break; } case 9: { Data = new ParticleEmitterData(Row, this); break; } case 10: { Data = new ExperienceLevelData(Row, this); break; } case 11: { Data = new TrapData(Row, this); break; } case 12: { Data = new AllianceBadgeData(Row, this); break; } case 13: { Data = new GlobalData(Row, this); break; } case 14: { Data = new TownhallLevelData(Row, this); break; } case 15: { Data = new PrototypeData(Row, this); break; } case 16: { Data = new NpcData(Row, this); break; } case 17: { Data = new DecoData(Row, this); break; } case 18: { Data = new ResourcePackData(Row, this); break; } case 20: { Data = new MissionData(Row, this); break; } case 21: { Data = new BillingPackageData(Row, this); break; } case 22: { Data = new AchievementData(Row, this); break; } case 25: { Data = new SpellData(Row, this); break; } case 26: { Data = new HintData(Row, this); break; } case 27: { Data = new LandingShipData(Row, this); break; } case 28: { Data = new ArtifactData(Row, this); break; } case 29: { Data = new ArtifactBonusData(Row, this); break; } case 30: { Data = new DeepseaParameterData(Row, this); break; } case 31: { Data = new ExplorationCostData(Row, this); break; } case 34: { Data = new ResourceShipData(Row, this); break; } case 35: { Data = new LootBoxData(Row, this); break; } case 36: { Data = new LiberatedIncomeData(Row, this); break; } case 37: { Data = new RegionData(Row, this); break; } case 38: { Data = new DefenseRewardData(Row, this); break; } case 39: { Data = new LocatorData(Row, this); break; } case 40: { Data = new EventData(Row, this); break; } case 41: { Data = new FootstepData(Row, this); break; } case 42: { Data = new PersistentEventRewardData(Row, this); break; } case 43: { Data = new CommunityLinkData(Row, this); break; } case 44: { Data = new ShieldData(Row, this); break; } case 45: { Data = new AbTestData(Row, this); break; } case 46: { Data = new LetterData(Row, this); break; } case 47: { Data = new RankData(Row, this); break; } case 48: { Data = new CountryData(Row, this); break; } case 51: { Data = new BoomboxData(Row, this); break; } case 52: { Data = new HeroData(Row, this); break; } case 53: { Data = new HeroAbilityData(Row, this); break; } case 54: { Data = new OfferData(Row, this); break; } case 55: { Data = new DeepLinkData(Row, this); break; } case 56: { Data = new SectorData(Row, this); break; } case 57: { Data = new SectorBonusData(Row, this); break; } default: { Data = new Data(Row, this); break; } } return(Data); }