public void SendChangeRadioAntennaDisplayName(bool showShipName) { var msg = new ChangeRadioAntennaDisplayNameMsg(); msg.EntityId = m_broadcaster.Parent.EntityId; msg.ShowShipName = showShipName; Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Request); }
static void ChangeRadioAntennaDisplayName(ref ChangeRadioAntennaDisplayNameMsg msg, MyNetworkClient sender) { MyEntity entity; if (MyEntities.TryGetEntityById(msg.EntityId, out entity)) { (entity as MyRadioAntenna).ShowShipName = msg.ShowShipName; } }
static void ChangeRadioAntennaDisplayName(ref ChangeRadioAntennaDisplayNameMsg msg, MyNetworkClient sender) { MyEntity entity; if (MyEntities.TryGetEntityById(msg.EntityId, out entity)) { (entity as MyRadioAntenna).ShowShipName = msg.ShowShipName; if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } } }
static void ChangeRadioAntennaDisplayName(ref ChangeRadioAntennaDisplayNameMsg msg, MyNetworkClient sender) { MyEntity entity; if (MyEntities.TryGetEntityById(msg.EntityId, out entity)) (entity as MyRadioAntenna).ShowShipName = msg.ShowShipName; }
public void SendChangeRadioAntennaDisplayName(bool showShipName) { var msg = new ChangeRadioAntennaDisplayNameMsg(); msg.EntityId = m_broadcaster.Parent.EntityId; msg.ShowShipName = showShipName; Sync.Layer.SendMessageToAllAndSelf(ref msg, MyTransportMessageEnum.Request); }
static void ChangeRadioAntennaDisplayName(ref ChangeRadioAntennaDisplayNameMsg msg, MyNetworkClient sender) { MyEntity entity; if (MyEntities.TryGetEntityById(msg.EntityId, out entity)) { (entity as MyRadioAntenna).ShowShipName = msg.ShowShipName; if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } } }