예제 #1
0
        public override void setWorks(Nation nation)
        {
            this.territory.works = new List <Works>();
            Works newWorks = new Works();

            newWorks.onCreating += nation.addNewInhabitant;
            this.territory.works.Add(newWorks);
        }
예제 #2
0
파일: Worker.cs 프로젝트: nara70/Csharp
        public override void buildWorks(Nation nation)
        {
            this.getWood(nation.territory, 10);
            Works newWorks = new Works();

            newWorks.onCreating += nation.addNewInhabitant;
            nation.territory.works.Add(newWorks);
        }