예제 #1
0
        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);
        }
예제 #2
0
 public void Open(int id, string type, int length, string route, int prizePool, string extra)
 {
     races[id] = RaceFactory.Create(type, length, route, prizePool, extra);
 }
예제 #3
0
    public void Open(int id, string type, int length, string route, int prizePool)
    {
        var race = RaceFactory.Create(type, length, route, prizePool);

        races[id] = race;
    }