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; }
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); } }
private static void OnMoveWaypointsUp(MySyncRemoteControl sync, ref MoveWaypointsUpMsg msg, MyNetworkClient sender) { sync.m_remoteControl.OnMoveWaypointsUp(msg.WaypointIndexes); sync.m_syncing = false; }