예제 #1
0
            public void MoveWaypointsUp(int[] waypointIndexes)
            {
                if (m_syncing)
                {
                    return;
                }

                var msg = new MoveWaypointsUpMsg();
                msg.EntityId = m_remoteControl.EntityId;

                msg.WaypointIndexes = waypointIndexes;

                Sync.Layer.SendMessageToServerAndSelf(ref msg);
                m_syncing = true;
            }
예제 #2
0
 private static void OnMoveWaypointsUp(MySyncRemoteControl sync, ref MoveWaypointsUpMsg msg, MyNetworkClient sender)
 {
     sync.m_remoteControl.OnMoveWaypointsUp(msg.WaypointIndexes);
     sync.m_syncing = false;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId);
     }
 }
예제 #3
0
 private static void OnMoveWaypointsUp(MySyncRemoteControl sync, ref MoveWaypointsUpMsg msg, MyNetworkClient sender)
 {
     sync.m_remoteControl.OnMoveWaypointsUp(msg.WaypointIndexes);
     sync.m_syncing = false;
 }