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); }
private static void OnChangeDirection(MySyncRemoteControl sync, ref ChangeDirectionMsg msg, MyNetworkClient sender) { sync.m_remoteControl.OnChangeDirection(msg.NewDirection); }
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); } }