예제 #1
0
		public UI CreateUI(SpriteBatch spriteBatch, PlayerEntity playerEntity) {
			UI res = new UI(this, spriteBatch, playerEntity);
			res.Template = this;
			return res;
		}
예제 #2
0
		public InterfaceInteraction(UI ui, SpriteBatch spriteBatch, PlayerEntity player) : base(player) {
			this.spriteBatch = spriteBatch;
			this.Ui = ui;
		}
예제 #3
0
		public void Add(UI ui) {
			if (uis.Any(u => ui.Template == u.Template)) return;

			ui.Load();
			this.uis.Add(ui);
		}