public override void Deserialize(ICustomDataReader reader) { this.MapId = reader.ReadDouble(); int NpcsIdsWithQuestLen = reader.ReadShort(); NpcsIdsWithQuest = new int[NpcsIdsWithQuestLen]; for (int i = 0; i < NpcsIdsWithQuestLen; i++) { this.NpcsIdsWithQuest[i] = reader.ReadInt(); } int QuestFlagsLen = reader.ReadShort(); QuestFlags = new GameRolePlayNpcQuestFlag[QuestFlagsLen]; for (int i = 0; i < QuestFlagsLen; i++) { this.QuestFlags[i] = new GameRolePlayNpcQuestFlag(); this.QuestFlags[i].Deserialize(reader); } int NpcsIdsWithoutQuestLen = reader.ReadShort(); NpcsIdsWithoutQuest = new int[NpcsIdsWithoutQuestLen]; for (int i = 0; i < NpcsIdsWithoutQuestLen; i++) { this.NpcsIdsWithoutQuest[i] = reader.ReadInt(); } }
public override void Deserialize(ICustomDataReader reader) { base.Deserialize(reader); this.QuestFlag = new GameRolePlayNpcQuestFlag(); this.QuestFlag.Deserialize(reader); }
public GameRolePlayNpcWithQuestInformations InitGameRolePlayNpcWithQuestInformations(GameRolePlayNpcQuestFlag QuestFlag) { this.QuestFlag = QuestFlag; return(this); }