コード例 #1
0
 private void SendPropertyUpdate(bool sendOnlyOwner = true)
 {
     if (m_Mmo != null)
     {
         var buffHash = GetInfo();
         SetBuffsProperty(buffHash);
         m_Mmo.SendPropertyUpdate(new Hashtable {
             { (byte)PS.Bonuses, buffHash }
         }, sendOnlyOwner);
     }
 }
コード例 #2
0
ファイル: PlayerShipMovable.cs プロジェクト: OlegGelezcov/neb
        private void SendSpeedProperty(float total)
        {
            props.SetProperty((byte)PS.CurrentLinearSpeed, total);

            if (Time.curtime() > m_LastSpeedSendTime + 1)
            {
                m_LastSpeedSendTime = Time.curtime();
                if (m_Mmo != null)
                {
                    m_Mmo.SendPropertyUpdate(new Hashtable {
                        { (byte)PS.CurrentLinearSpeed, total }
                    }, true);
                }
            }
        }
コード例 #3
0
        private void SendUpdateCurrentEnergy()
        {
            float energy = currentEnergy;

            SetCurrentEnergyProperty(energy);
            if (!Mathf.Approximately(m_EnergyFromLastSend, energy))
            {
                m_EnergyFromLastSend = energy;
                if (m_Mmo != null)
                {
                    m_Mmo.SendPropertyUpdate(new System.Collections.Hashtable {
                        { (byte)PS.CurrentEnergy, energy }
                    });
                }
            }
        }