示例#1
0
 /// <summary>
 /// 初始化所有建筑物
 /// </summary>
 protected override void Init()
 {
     this.BuildsList.Clear();
     Classroom classroom = new Classroom(1000,"教学楼","好好学习,天天向上");
     Eatery eatery = new Eatery(1001,"食堂","人是铁,饭是钢,一顿不吃饿得慌");
     this.BuildsList.Add(classroom.Id,classroom);
     this.BuildsList.Add(eatery.Id,eatery);
 }
示例#2
0
        /// <summary>
        /// 初始化所有建筑物
        /// </summary>
        protected override void Init()
        {
            this.BuildsList.Clear();
            Classroom classroom = new Classroom(1000, "教学楼", "好好学习,天天向上");
            Eatery    eatery    = new Eatery(1001, "食堂", "人是铁,饭是钢,一顿不吃饿得慌");

            this.BuildsList.Add(classroom.Id, classroom);
            this.BuildsList.Add(eatery.Id, eatery);
        }