Exemple #1
0
 internal static void Write(int version, BinaryWriter bw, MONSTERS_SUMMONED m_Monsters)
 {
     bw.Write(m_Monsters.m_ulMonsterTemplId);
     bw.Write(m_Monsters.m_ulMonsterNum);
     bw.Write(m_Monsters.m_fSummonProb);
     bw.Write(m_Monsters.m_lPeriod);
 }
Exemple #2
0
 internal static void Write(int version, BinaryWriter bw, AWARD_MONSTERS_SUMMONED m_SummonedMonsters)
 {
     bw.Write(m_SummonedMonsters.m_bRandChoose);
     bw.Write(m_SummonedMonsters.m_ulSummonRadius);
     bw.Write(m_SummonedMonsters.m_bDeathDisappear);
     for (int index2 = 0; index2 < m_SummonedMonsters.m_Monsters.Length; index2++)
     {
         MONSTERS_SUMMONED.Write(version, bw, m_SummonedMonsters.m_Monsters[index2]);
     }
 }
Exemple #3
0
        internal static AWARD_MONSTERS_SUMMONED Read(int version, BinaryReader br, int value)
        {
            AWARD_MONSTERS_SUMMONED m_SummonedMonsters = new AWARD_MONSTERS_SUMMONED();

            m_SummonedMonsters.m_bRandChoose     = br.ReadBoolean();
            m_SummonedMonsters.m_ulSummonRadius  = br.ReadInt32();
            m_SummonedMonsters.m_bDeathDisappear = br.ReadBoolean();
            m_SummonedMonsters.m_Monsters        = new MONSTERS_SUMMONED[value];
            for (int index2 = 0; index2 < m_SummonedMonsters.m_Monsters.Length; index2++)
            {
                m_SummonedMonsters.m_Monsters[index2] = MONSTERS_SUMMONED.Read(version, br);
            }
            return(m_SummonedMonsters);
        }