Exemplo n.º 1
0
 internal static void Write(int version, BinaryWriter bw, PLAYER_WANTED PLAYER_WANTED)
 {
     bw.Write(PLAYER_WANTED.m_ulPlayerNum);
     bw.Write(PLAYER_WANTED.m_ulDropItemId);
     bw.Write(PLAYER_WANTED.m_ulDropItemCount);
     bw.Write(PLAYER_WANTED.m_bDropCmnItem);
     bw.Write(PLAYER_WANTED.m_fDropProb);
     Kill_Player_Requirements.Write(version, bw, PLAYER_WANTED.m_Requirements);
 }
Exemplo n.º 2
0
 internal static void Read(int version, BinaryReader br, PLAYER_WANTED PLAYER_WANTED)
 {
     PLAYER_WANTED.m_ulPlayerNum     = br.ReadInt32();
     PLAYER_WANTED.m_ulDropItemId    = br.ReadInt32();
     PLAYER_WANTED.m_ulDropItemCount = br.ReadInt32();
     PLAYER_WANTED.m_bDropCmnItem    = br.ReadBoolean();
     PLAYER_WANTED.m_fDropProb       = br.ReadSingle();
     Kill_Player_Requirements.Read(version, br, PLAYER_WANTED.m_Requirements);
 }
Exemplo n.º 3
0
 internal static void Write(int version, BinaryWriter bw, Kill_Player_Requirements Kill_Player_Requirements)
 {
     bw.Write(Kill_Player_Requirements.m_ulOccupations);
     bw.Write(Kill_Player_Requirements.m_iMinLevel);
     bw.Write(Kill_Player_Requirements.m_iMaxLevel);
     bw.Write(Kill_Player_Requirements.m_iGender);
     bw.Write(Kill_Player_Requirements.m_iForce);
     if (version >= 130)
     {
         bw.Write(Kill_Player_Requirements.ModelCheck);
         for (byte i = 0; i < 3; i++)
         {
             bw.Write(Kill_Player_Requirements.ModelType[i]);
         }
     }
 }
Exemplo n.º 4
0
 internal static void Read(int version, BinaryReader br, Kill_Player_Requirements Kill_Player_Requirements)
 {
     Kill_Player_Requirements.m_ulOccupations = br.ReadInt32();
     Kill_Player_Requirements.m_iMinLevel     = br.ReadInt32();
     Kill_Player_Requirements.m_iMaxLevel     = br.ReadInt32();
     Kill_Player_Requirements.m_iGender       = br.ReadInt32();
     Kill_Player_Requirements.m_iForce        = br.ReadInt32();
     if (version >= 130)
     {
         Kill_Player_Requirements.ModelCheck = br.ReadBoolean();
         for (int i = 0; i < 3; i++)
         {
             Kill_Player_Requirements.ModelType[i] = br.ReadByte();
         }
     }
 }