/// <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); }
/// <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); }