protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(VfxID); encoder.EncodeString(Resource); encoder.EncodeString(Pivot); encoder.Encode4(OffsetX); encoder.Encode4(OffsetY); encoder.Encode4(OffsetZ); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(ItemCode); encoder.EncodeString(Name); encoder.EncodeString(Descriptions); encoder.EncodeString(Icon); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode1(BlockID); encoder.Encode1((byte)(IsApplyLifeRate ? 1 : 0)); encoder.Encode4(ChanceSpawnTutorial); encoder.Encode4(ChanceSpawnAdventure); encoder.Encode4(ChanceSpawnRaid); encoder.Encode4(ChanceSpawnArena); encoder.EncodeString(Resource); encoder.Encode4(ChargeStartVfxID); encoder.Encode4(ChargeStartSfxID); encoder.Encode4(TransformVfxID); encoder.Encode4(DestroyVfxID); encoder.Encode4(Destroy1SfxID); encoder.Encode4(Destroy2SfxID); encoder.Encode4(Destroy3SfxID); encoder.Encode4(ChargedDestroyVfxID); encoder.Encode4(ChargedDestroySfxID); encoder.Encode1((byte)BlockCommands.Count); foreach (var pr in BlockCommands) { encoder.Encode1(pr.Key); encoder.Encode1(pr.Value.Priority); encoder.EncodeString(pr.Value.ActionPattern); encoder.Encode4(pr.Value.ExtraEffectValue); encoder.Encode4(pr.Value.CriticalStatusEffectCode); encoder.EncodeString(pr.Value.Motion); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode1(m_reelID); encoder.Encode4(m_betAmplify); encoder.Encode4(m_chanceSpin); encoder.EncodeString(m_resource); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(LifeRate); encoder.Encode4(ScreenPosRate); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode1((byte)Mode); encoder.Encode4(DefaultLDR); encoder.Encode4(IncreaseLDR); encoder.Encode1((byte)CurrencyType); encoder.Encode4(CurrencyValue); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { ret = base.OnSerialize(encoder, stream); if (ret) { encoder.Encode4(HeroItemCode); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(GoodsCode); encoder.Encode1(GoodsTypeCode); encoder.EncodeString(GoodsName); encoder.EncodeString(Descriptions); encoder.Encode1((byte)CurrencyType); encoder.Encode4(Price); encoder.EncodeString(ContentsID1); encoder.EncodeString(ContentsID2); encoder.EncodeString(ContentsID3); encoder.EncodeString(ContentsID4); encoder.EncodeString(ContentsID5); encoder.Encode2(SortNum); encoder.Encode2((ushort)m_itemGoods.Count); foreach (var kvp in m_itemGoods) { if (!kvp.Value.Serialize(stream)) throw new Exception(); } encoder.Encode2((ushort)m_goodsLimitMission.Count); foreach (var kvp in m_goodsLimitMission) { if (!kvp.Value.Serialize(stream)) throw new Exception(); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(StatusEffectCode); encoder.Encode1((byte)(IsBuff ? 1 : 0)); encoder.Encode1(ExpireType); encoder.Encode4(ExpireTime); encoder.Encode1((byte)(IsScript ? 1 : 0)); encoder.EncodeString(StatMod); encoder.Encode4(EffectValue); encoder.Encode4(SpawnVfxID); encoder.Encode4(SpawnSfxID); encoder.EncodeString(Icon); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { ret = base.OnSerialize(encoder, stream); if (ret) { encoder.Encode1((byte)Type); encoder.Encode1((byte)Grade); encoder.Encode1(BaseLevel); encoder.Encode1((byte)(IsHostile ? 1 : 0)); encoder.Encode1((byte)(IsRange ? 1 : 0)); encoder.Encode4(AttactRange); encoder.Encode4(ProjectileFoCode); encoder.Encode1((byte)SkillValues.Count); foreach (var pr in SkillValues) { encoder.Encode4(pr.Key); encoder.EncodeString(pr.Value.ActionPattern); encoder.Encode4(pr.Value.EffectValue); } encoder.Encode1((byte)Stats.Count); foreach (var pr in Stats) { encoder.Encode4(pr.Key); encoder.Encode4(pr.Value); } } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { ret = base.OnSerialize(encoder, stream); if (ret) { encoder.Encode4(Speed); encoder.Encode4(SpeedY); encoder.Encode4(Gravity); encoder.Encode4(LifeTime); encoder.Encode1((byte)(IsReflex ? 1 : 0)); encoder.Encode4(ExplosionVfxID); encoder.Encode4(ImpactSfxID); encoder.Encode4(SpeedReductionMin); encoder.Encode4(SpeedReductionMax); encoder.Encode4(FallingGravity); encoder.Encode4(ExtraTime); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(SfxID); encoder.EncodeString(Resource); encoder.Encode1((byte)(IsLoop ? 1 : 0)); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { ret = base.OnSerialize(encoder, stream); if (ret) { encoder.Encode1((byte)OverlapEvent); encoder.Encode4(RewardExp); encoder.Encode4(RewardGold); encoder.Encode4(ChanceConsumableDrop); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(FieldObjectCode); encoder.EncodeString(Name); encoder.EncodeString(Resource); encoder.Encode4(DrawScale); encoder.Encode4(CollisionWidth); encoder.Encode4(CollisionHeight); encoder.Encode4(SpawnVfxID); encoder.Encode4(SpawnSfxID); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(SkillCode); encoder.EncodeString(SkillName); encoder.Encode1((byte)(IsActive ? 1 : 0)); encoder.Encode4(ManaConsume); encoder.Encode4(CastTime); encoder.Encode4(CoolTime); encoder.Encode4(GlobalCoolTime); encoder.Encode1(m_priority); encoder.EncodeString(m_motion); encoder.EncodeString(m_icon); encoder.Encode1((byte)m_heroLevelSkillValues.Count); foreach (var pr in m_heroLevelSkillValues) { encoder.Encode1(pr.Key); encoder.EncodeString(pr.Value.Descriptions); encoder.EncodeString(pr.Value.ActionPattern); encoder.Encode4(pr.Value.EffectValue); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(MissionCode); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(StageCode); encoder.Encode1(StageGroupID); encoder.EncodeString(StageName); encoder.Encode1((byte)GameMode); encoder.Encode1(DifficultyType); encoder.Encode1(Tier); encoder.Encode4(LimitExp); encoder.Encode4(LimitGold); encoder.Encode4(Star1Point); encoder.Encode4(Star2Point); encoder.Encode4(Star3Point); encoder.Encode4(ClearPoint); encoder.Encode4(TimePoint); encoder.Encode4(MinClearTime); encoder.Encode4(TotalDist); encoder.Encode4(ChanceShortDist); encoder.Encode4(ChanceMediumDist); encoder.Encode4(ChanceLongDist); encoder.Encode4(MinShortDist); encoder.Encode4(MaxShortDist); encoder.Encode4(MinMediumDist); encoder.Encode4(MaxMediumDist); encoder.Encode4(MinLongDist); encoder.Encode4(MaxLongDist); encoder.Encode4(LastFoCode); encoder.EncodeString(Resource); encoder.EncodeString(Bgm); encoder.Encode1((byte)m_stageObjectTypeChances.Count); foreach (var pr in m_stageObjectTypeChances) { encoder.Encode1((byte)pr.Key); encoder.Encode4(pr.Value); } encoder.Encode1((byte)m_stageObjectChances.Count); foreach (var pr in m_stageObjectChances) { encoder.Encode4(pr.Key); encoder.Encode4(pr.Value); } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { ret = base.OnSerialize(encoder, stream); if (ret) { encoder.Encode1((byte)EquipmentType); encoder.Encode1((byte)EquipmentRarityId); encoder.Encode4(HeroItemCode); encoder.Encode4(BattlePower); encoder.Encode4(PriceSelling); encoder.Encode4(ItemChanceAmplifier); encoder.EncodeString(AtlasResource); encoder.EncodeString(TextureName); encoder.Encode1((byte)m_stats.Count); foreach (var pr in m_stats) { encoder.Encode4(pr.Key); encoder.Encode4(pr.Value); } } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode1((byte)ConsumableType); encoder.Encode4(ChanceTutorial); encoder.Encode4(ChanceAdventure); encoder.Encode4(ChanceRaid); encoder.Encode4(ChanceArena); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { ret = base.OnSerialize(encoder, stream); if (ret) { encoder.Encode1((byte)Grade); encoder.Encode4(DefaultArmorItemCode); encoder.Encode4(DefaultWeaponItemCode); encoder.Encode4(GoodsCodeForGold); encoder.Encode4(GoodsCodeForGem); encoder.Encode4(HeroFieldObjectCode); encoder.Encode1((byte)m_heroLevelDetails.Count); foreach (var pr in m_heroLevelDetails) { encoder.Encode1(pr.Key); encoder.Encode4(pr.Value.BattlePower); encoder.Encode4(pr.Value.ExpNeeded); encoder.Encode4(pr.Value.RewardItemCode); encoder.Encode1((byte)pr.Value.Stats.Count); foreach (var pr2 in pr.Value.Stats) { encoder.Encode4(pr2.Key); encoder.Encode4(pr2.Value); } } encoder.Encode1((byte)m_heroSkills.Count); foreach (var pr in m_heroSkills) { encoder.Encode4(pr.Key); encoder.Encode1(pr.Value.ActivatingLevel); encoder.Encode1((byte)(pr.Value.IsPuzzleActive ? 1 : 0)); encoder.Encode1((byte)(pr.Value.IsChallengerUse ? 1 : 0)); encoder.Encode1((byte)(pr.Value.IsVisible ? 1 : 0)); } } } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(ConsumableID); encoder.Encode1((byte)ConsumableType); encoder.EncodeString(ConsumableName); encoder.Encode1(Tier); encoder.Encode1((byte)(IsDropTutorial ? 1 : 0)); encoder.Encode1((byte)(IsDropAdventure ? 1 : 0)); encoder.Encode1((byte)(IsDropRaid ? 1 : 0)); encoder.Encode1((byte)(IsDropArena ? 1 : 0)); encoder.Encode1((byte)(IsPuzzleActive ? 1 : 0)); encoder.Encode4(CastTime); encoder.Encode4(GlobalCoolTime); encoder.Encode1(Priority); encoder.EncodeString(ActionPattern); encoder.Encode4(EffectValue); encoder.Encode4(ProjectileFoCode); encoder.Encode4(UseSfxID); encoder.EncodeString(Icon); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.Encode4(MissionCode); encoder.Encode1(MissionTypeCode); encoder.EncodeString(Descriptions); encoder.Encode4((uint)Condition); } catch (Exception) { ret = false; } return ret; }
protected override bool OnSerialize(SimpleStream.SerializableEncoder encoder, SimpleStream stream) { bool ret = true; try { encoder.EncodeString(m_serverIp); encoder.Encode4((uint)m_serverPort); encoder.EncodeString(m_lastConnectedServerIp); encoder.Encode4((uint)m_lastConnectedServerPort); ret = m_config.Serialize(stream); if (ret) ret = m_stageManager.Serialize(stream); if (ret ) ret = m_itemManager.Serialize(stream); } catch (Exception) { ret = false; } return ret; }