public bool Validator(ClientUpdateData data) { // TODO: possibly add some kinda hax prevention for invalid positions or targeting... Logger.Success("we got 0x015"); return(true); }
public bool Handler(Player player, byte[] bytes) { if (bytes.Length < MinSize || bytes.Length > MaxSize) { return(false); } ClientUpdateData ClientUpdateData = Utility.Deserialize <ClientUpdateData>(bytes); if (Validator(ClientUpdateData)) { // TODO: Handle the packet by moving the player and setting their updatemask for other client updates return(true); } return(false); }