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