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

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