internal void SetControlThrusters(bool v) { var msg = new ControlThrustersMsg(); msg.EntityId = m_shipController.EntityId; msg.ControlThrusters = v; Sync.Layer.SendMessageToAllAndSelf(ref msg); }
private static void OnSetControlThrusters(MySyncShipController sync, ref ControlThrustersMsg msg, MyNetworkClient sender) { sync.m_shipController.ControlThrusters = msg.ControlThrusters; if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } }
private static void OnSetControlThrusters(MySyncShipController sync, ref ControlThrustersMsg msg, MyNetworkClient sender) { sync.m_shipController.ControlThrusters = msg.ControlThrusters; }
internal void SetControlThrusters(bool v) { var msg = new ControlThrustersMsg(); msg.EntityId = m_shipController.EntityId; msg.ControlThrusters = v; Sync.Layer.SendMessageToAllAndSelf(ref msg); }
private static void OnSetControlThrusters(MySyncShipController sync, ref ControlThrustersMsg msg, MyNetworkClient sender) { sync.m_shipController.ControlThrusters = msg.ControlThrusters; if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } }
private static void OnSetControlThrusters(MySyncShipController sync, ref ControlThrustersMsg msg, MyNetworkClient sender) { sync.m_shipController.ControlThrusters = msg.ControlThrusters; }