示例#1
0
		public virtual void RegisterObject(AbstractGameObject GameObject, bool Drawable)
		{
			RegisterUpdatableObject(GameObject);

			if (Drawable)
			{
				RegisterDrawableObject(GameObject);
			}
		}
示例#2
0
		public override void RegisterObject(AbstractGameObject GameObject, bool Drawable)
		{
			base.RegisterObject(GameObject, Drawable);

			if (GameObject.GetType().IsSubclassOf(typeof(Unit)))
			{
				units.Add(GameObject as Unit);
			}
			else if (GameObject.GetType().IsSubclassOf(typeof(Building)))
			{
				buildings.Add(GameObject as Building);
			}
		}
示例#3
0
		public virtual void RegisterDrawableObject(AbstractGameObject GameObject)
		{
			drawableObjects.Add(GameObject);
		}
示例#4
0
		public virtual void RegisterUpdatableObject(AbstractGameObject GameObject)
		{
			updatableObjects.Add(GameObject);
		}