Message - 0F00/netwIO GitHub Wiki
Message :
The Network Messages are strucured with Json and the single args can easily add and read from the Message with a Type.
Create Message :
Message msg = Message.Create("PacketType");
msg.Add("Type", arg);
Read Message :
float val = msg.GetFloat("val");
string val = msg.GetString("val");
int val = msg.GetInt("val");
bool val = msg.GetBoolean("val");
Send Message :
Serverside:
player.Send(msg);
or Clientside :
client.Send(msg);