Пример #1
0
 private static a40_WeaponSync.Struct BaseReadInfo(ActionModel ac, ReceivePacket p, bool OnlyBytes, bool genLog)
 {
     a40_WeaponSync.Struct @struct = new a40_WeaponSync.Struct()
     {
         _weaponInfo     = p.readUH(),
         _weaponSlotInfo = p.readC(),
         _charaModelId   = p.readC()
     };
     if (!OnlyBytes)
     {
         @struct.WeaponSecondMelee = (int)@struct._weaponSlotInfo >> 4;
         @struct.WeaponSlot        = (int)@struct._weaponSlotInfo & 15;
         @struct.WeaponId          = (int)@struct._weaponInfo >> 6 & 1023;
         @struct.WeaponClass       = (int)@struct._weaponInfo & 63;
     }
     if (!genLog)
     {
         ;
     }
     return(@struct);
 }
Пример #2
0
 public static void writeInfo(SendPacket s, a40_WeaponSync.Struct info)
 {
     s.writeH(info._weaponInfo);
     s.writeC(info._weaponSlotInfo);
     s.writeC(info._charaModelId);
 }
Пример #3
0
 public static void writeInfo(SendPacket s, ActionModel ac, ReceivePacket p, bool genLog)
 {
     a40_WeaponSync.Struct info = a40_WeaponSync.ReadInfo(ac, p, genLog, true);
     a40_WeaponSync.writeInfo(s, info);
 }