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); } }
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); } } }
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 } }); } } }