public void MoveWaypointsDown(int[] waypointIndexes)
            {
                if (m_syncing)
                {
                    return;
                }

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

                msg.WaypointIndexes = waypointIndexes;

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