Ejemplo n.º 1
0
 public static void writeInfo(SendPacket s, ReceivePacket p, bool genLog)
 {
     code2_WeaponSync.Struct @struct = code2_WeaponSync.ReadInfo(p, genLog);
     s.writeC(@struct._weaponFlag);
     s.writeH(@struct._posX);
     s.writeH(@struct._posY);
     s.writeH(@struct._posZ);
     s.writeH(@struct._unk4);
     s.writeH(@struct._unk5);
     s.writeH(@struct._unk6);
     s.writeH(@struct._unk7);
 }
Ejemplo n.º 2
0
 public static code2_WeaponSync.Struct ReadInfo(ReceivePacket p, bool genLog)
 {
     code2_WeaponSync.Struct @struct = new code2_WeaponSync.Struct()
     {
         _weaponFlag = p.readC(),
         _posX       = p.readUH(),
         _posY       = p.readUH(),
         _posZ       = p.readUH(),
         _unk4       = p.readUH(),
         _unk5       = p.readUH(),
         _unk6       = p.readUH(),
         _unk7       = p.readUH()
     };
     if (genLog)
     {
         Logger.warning("[code2_WeaponSync] " + BitConverter.ToString(p.getBuffer()), false);
         Logger.warning("[code2_WeaponSync] Flag: " + (object)@struct._weaponFlag + "; u4: " + (object)@struct._unk4 + "; u5: " + (object)@struct._unk5 + "; u6: " + (object)@struct._unk6 + "; u7: " + (object)@struct._unk7, false);
     }
     return(@struct);
 }