/// <summary> /// Set up the game room. /// </summary> public override void Initialize() { int startX = this.roomConfig.GetIntValue("CameraStartX", 0); int startY = this.roomConfig.GetIntValue("CameraStartY", 0); GameWidth = this.roomConfig.GetIntValue("RoomWidth", Constants.WINDOW_WIDTH); GameHeight = this.roomConfig.GetIntValue("RoomHeight", Constants.WINDOW_HEIGHT); // set up the singleton camera Camera.Setup(startX, startY, GameWidth, GameHeight); // Initialize Building stuff campusCatalog = new CampusCatalog(); // Initialize the Building manager CampusManager.Instance.Initialize(GameWidth, GameHeight); // Initialize GUI folder = new SideFolder(campusCatalog); hud = new HUD(); status = new StatusBar(); }
/// <summary> /// Construct yo /// </summary> internal BuildTab(SideFolder parent) : base(parent.Depth) { this.parent = parent; this.Clickable = true; this.Type = ElementType.GUI; }