private void OnChooseFaction(ref MyEventChooseFaction msg)
        {
            var response = new MyEventChooseFactionResponse();
            response.AssignedFaction = ChooseFaction(msg.PreferredFaction);

            Log("On choose faction for: " + msg.SenderConnection.GetPlayerName() + ", chosen faction: " + MyFactionConstants.GetFactionProperties(response.AssignedFaction).Name);

            Peers.NetworkClient.Send(ref response, msg.SenderConnection, NetDeliveryMethod.ReliableOrdered, 0);
        }
        public void RequestFaction(MyMwcObjectBuilder_FactionEnum preferredFaction)
        {
            Log("Choose faction");

            var msg = new MyEventChooseFaction();
            msg.PreferredFaction = preferredFaction;
            Peers.SendHost(ref msg);
        }