コード例 #1
0
ファイル: Inventory.cs プロジェクト: AnonK2/planet
        public float ComputeWeight()
        {
            var weight = DbEntry.GetCombinedPropFloat("weight", m_Properties);

            if (weight == 0.0f)
            {
                weight = 0.1f;
            }
            return(m_Count * weight);
        }