コード例 #1
0
ファイル: MyGasTank.cs プロジェクト: warex0/SpaceEngineers
            public void ChangeFillRatioAmount(float newFilledRatio)
            {
                var msg = new FilledRatioMsg();

                msg.EntityId    = m_tank.EntityId;
                msg.FilledRatio = newFilledRatio;

                Sync.Layer.SendMessageToAll(ref msg);
            }
コード例 #2
0
ファイル: MyGasTank.cs プロジェクト: warex0/SpaceEngineers
 private static void OnFilledRatioChanged(MySyncOxygenTank syncObject, ref FilledRatioMsg message, World.MyNetworkClient sender)
 {
     syncObject.m_tank.ChangeFilledRatio(message.FilledRatio);
 }
コード例 #3
0
 private static void OnFilledRatioChanged(MySyncOxygenTank syncObject, ref FilledRatioMsg message, World.MyNetworkClient sender)
 {
     syncObject.m_tank.ChangeFilledRatio(message.FilledRatio);
 }
コード例 #4
0
            public void ChangeFillRatioAmount(float newFilledRatio)
            {
                var msg = new FilledRatioMsg();
                msg.EntityId = m_tank.EntityId;
                msg.FilledRatio = newFilledRatio;

                Sync.Layer.SendMessageToAll(msg);
            }