public void ChangeFillRatioAmount(float newFilledRatio) { var msg = new FilledRatioMsg(); msg.EntityId = m_tank.EntityId; msg.FilledRatio = newFilledRatio; Sync.Layer.SendMessageToAll(ref msg); }
private static void OnFilledRatioChanged(MySyncOxygenTank syncObject, ref FilledRatioMsg message, World.MyNetworkClient sender) { syncObject.m_tank.ChangeFilledRatio(message.FilledRatio); }
public void ChangeFillRatioAmount(float newFilledRatio) { var msg = new FilledRatioMsg(); msg.EntityId = m_tank.EntityId; msg.FilledRatio = newFilledRatio; Sync.Layer.SendMessageToAll(msg); }