public void TownInitialize() { races = new List <RaceEntity>(); races.Add(RaceFactory.Create("Race_01", RaceType.HUMAN)); goods = new List <GoodsEntity>(); goods.Add(GoodsFactory.Create(GoodsType.FLOUR, "小麦")); var building = new SimpleProducer("農場", new ProduceAbility(goods.First(), 10), 5); townEntity = TownFactory.Create(0, "town_01", TownType.INLAND, races.First()); townEntity.Build(0, building); }
public void Open(int id, string type, int length, string route, int prizePool, string extra) { races[id] = RaceFactory.Create(type, length, route, prizePool, extra); }
public void Open(int id, string type, int length, string route, int prizePool) { var race = RaceFactory.Create(type, length, route, prizePool); races[id] = race; }