Ejemplo n.º 1
0
        public SkiStuntLevel( string levelFolder )
        {
            vertices = new List<LevelVertex>();
                polygons = new List<LevelPolygon>();
                objects  = new List<LevelObject>();

                playerStart = new LevelObject( LevelObject.ObjectType.PlayerStart,    0, -10 );
                endzoneA    = new LevelObject( LevelObject.ObjectType.EndzoneHandle, 10,  10 );
                endzoneB    = new LevelObject( LevelObject.ObjectType.EndzoneHandle, 20,  20 );

                this.LevelFolder = levelFolder;

                EndzoneRequirements = EndzoneRequirementType.Unconcious;
                LevelTitle = "New Level";

                StartWithJetpack = false;
                GoalText = "";
                HintText = "";

                textureList = new TextureList( levelFolder );
        }
Ejemplo n.º 2
0
 public void StopListeningToTextureList( TextureList textureList )
 {
     textureList.TextureDelete -= textureList_textureDelete;
 }
Ejemplo n.º 3
0
 public void ListenToTextureList( TextureList textureList )
 {
     textureList.TextureDelete += textureList_textureDelete;
         // TODO:
         // Check to make sure the textureIndex is not out of range here.  If you delete a polygon, then delete all the textures
         // then undo your delete, there will be problems here.
 }