public bool Validator(PlayerInfoRequestData data) { if (data.empty_a != 0 && data.empty_b != 0) { return(false); } Logger.Success("we got 0x00C"); return(true); }
public bool Handler(Player player, byte[] bytes) { if (bytes.Length < MinSize || bytes.Length > MaxSize) { return(false); } PlayerInfoRequestData PlayerInfoRequestData = Utility.Deserialize <PlayerInfoRequestData>(bytes); if (Validator(PlayerInfoRequestData)) { // TODO: Handle the packet by sending player info chunks (0x1C, 0xB4, 0x1B) return(true); } return(false); }