Open FacelessLord opened 5 years ago
Fixed TPS
Two packet types: World packet - sent each tick - synchronization Notification packets - sent beside world packets and do not change the world - sound, chat, visuals
Have username, password and maybe UUID
Token = (Salt + name + Salt) xor (Salt + password + Salt)
Packets:
var packet = new Packet(id: PacketType.Attack);
packet.Add(Value.PlayerName, "faceless");
packet.Get<string>("player"); //returns "faceless"
Data class that enables Add and Get methods like in packet