Пример #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="id">ウェアID</param>
 /// <param name="name">ウェア名</param>
 /// <param name="wareGroup">ウェア種別</param>
 /// <param name="transportType">カーゴ種別</param>
 /// <param name="description">説明文</param>
 /// <param name="volume">コンテナサイズ</param>
 /// <param name="minPrice">最低価格</param>
 /// <param name="avgPrice">平均価格</param>
 /// <param name="maxPrice">最高価格</param>
 /// <param name="owners">所有派閥</param>
 /// <param name="productions">生産方式</param>
 /// <param name="resources">生産に必要なウェア情報</param>
 /// <param name="tags">タグ一覧</param>
 /// <param name="wareEffects">ウェア生産時の追加効果情報</param>
 public Ware(
     string id,
     string name,
     IWareGroup wareGroup,
     ITransportType transportType,
     string description,
     long volume,
     long minPrice,
     long avgPrice,
     long maxPrice,
     IReadOnlyList <IFaction> owners,
     IReadOnlyDictionary <string, IWareProduction> productions,
     IReadOnlyDictionary <string, IReadOnlyList <IWareResource> > resources,
     HashSet <string> tags,
     IWareEffects wareEffects
     )
 {
     ID            = id;
     Name          = name;
     WareGroup     = wareGroup;
     TransportType = transportType;
     Description   = description;
     Volume        = volume;
     MinPrice      = minPrice;
     AvgPrice      = avgPrice;
     MaxPrice      = maxPrice;
     Owners        = owners;
     Productions   = productions;
     Resources     = resources;
     Tags          = tags;
     WareEffects   = wareEffects;
 }
Пример #2
0
 /// <summary>
 /// 比較
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(ITransportType other) => TransportTypeID == other.TransportTypeID;
Пример #3
0
 public Passengers(ITransportType vehicle, int _number) : base(vehicle)
 {
     numberOfPassengers = _number;
 }
Пример #4
0
 public Transportation(ITransportType vehicle)
 {
     transportype = vehicle;
 }
Пример #5
0
 public Trucking(ITransportType vehicle, double _weight) : base(vehicle)
 {
     weight = _weight;
 }