public void SendToPlayer(PacketBase packet, ulong steamId) { var bytes = MyAPIGateway.Utilities.SerializeToBinary(packet); MyAPIGateway.Multiplayer.SendMessageTo(PacketId, bytes, steamId); }
public void SendToServer(PacketBase packet) { var bytes = MyAPIGateway.Utilities.SerializeToBinary(packet); MyAPIGateway.Multiplayer.SendMessageToServer(PacketId, bytes); }