using System; using System.Collections.Generic; using System.Text; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using DarkWynter.Engine.Globals; namespace DarkWynter.Engine.GameObjects { public class WallMap : GameObject { private Texture2D wallMap; public WallMap(Init.Load gameObjectLoader) : base(gameObjectLoader) { } public override bool Load(DarkWynter.Engine.ObjectLib.ObjectLibrary objectLibrary) { return base.Load(objectLibrary); //// Open texture from xml ////wallMap = Statics_Engine.SystemSettings.content.Load //// for (all pixels) //{ // // Read texture value // // if ( textureValue > 0.0f) // { // // Create a box // GameObject box = new GameObject(; // // Set posiiton from heightMap, starting from 0 on the y scale // // box.mass.SetPosition(pixelPosition.X, 0.0f, pixelPosition.Z); // // box.mass.Scale = terrainModWidth; // // box.mass.Scale.Y = textureValue; // // Add box to gameObjectList in Object Library // // objectLibrary.gameObjectList.Add(box); // } //} } public override DarkWynter.Stream.Draw Draw() { return base.Draw(); } } }