Esempio n. 1
0
            public void ChangeDirection(Base6Directions.Direction direction)
            {
                if (m_syncing)
                {
                    return;
                }

                var msg = new ChangeDirectionMsg();
                msg.EntityId = m_remoteControl.EntityId;
                msg.NewDirection = direction;

                Sync.Layer.SendMessageToAllAndSelf(ref msg);
            }
Esempio n. 2
0
 private static void OnChangeDirection(MySyncRemoteControl sync, ref ChangeDirectionMsg msg, MyNetworkClient sender)
 {
     sync.m_remoteControl.OnChangeDirection(msg.NewDirection);
 }
Esempio n. 3
0
 private static void OnChangeDirection(MySyncRemoteControl sync, ref ChangeDirectionMsg msg, MyNetworkClient sender)
 {
     sync.m_remoteControl.OnChangeDirection(msg.NewDirection);
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId);
     }
 }