public ConsumptionTrait(
     GoodsEntity goods,
     float weight
     )
 {
     GoodsName = goods.SystemName;
     Weight    = weight;
 }
Esempio n. 2
0
        public void Register(GoodsEntity goods)
        {
            if (_closedGoodsList.ContainsKey(goods.SystemName))
            {
                throw new InvalidOperationException("同名のGoodsが登録されました");
            }

            _closedGoodsList.Add(goods.SystemName, goods);
        }
Esempio n. 3
0
 public Cargo(GoodsEntity goods, float amount)
 {
     Goods  = goods;
     Amount = new Tank(amount);
 }