C# Класс MrGravity.Import_Code.Importer

Imports an XML file into the game
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetObjects ( PhysicsEnvironment &environment ) : List

Goes through all the entities and finds all of the ones that are Static, or physics(Dynamic maybe in the future) Creates and returns them using the data found in the xml file

GetPlayerEnd ( ) : PlayerEnd

Creates and returns a PlayerEnd using the info that is in the xml file

GetPlayerStart ( Level level ) : void

Gets the players start position

GetRails ( ) : List
GetTriggers ( ) : List

Gets all the triggers in the level

GetWalls ( Level level ) : List

UNUSED FOR NOW. MAY IN THE FUTURE, GATHER ALL THE INFO UP AND MAKE BIGGER BOUNDING BOXES FOR ENTIRE WALLS

ImportLevel ( Level level ) : Level

Goes through the xml file and translates the information

Importer ( Microsoft.Xna.Framework.Content.ContentManager content ) : System

Constructor for an importer object

Приватные методы

Метод Описание
CreateSortedIndicies ( List walls, List indicies, bool cols ) : void

Creates the sorted indicies.

Описание методов

GetObjects() публичный Метод

Goes through all the entities and finds all of the ones that are Static, or physics(Dynamic maybe in the future) Creates and returns them using the data found in the xml file
public GetObjects ( PhysicsEnvironment &environment ) : List
environment PhysicsEnvironment Environment that these items exist in
Результат List

GetPlayerEnd() публичный Метод

Creates and returns a PlayerEnd using the info that is in the xml file
public GetPlayerEnd ( ) : PlayerEnd
Результат MrGravity.Game_Objects.Static_Objects.PlayerEnd

GetPlayerStart() публичный Метод

Gets the players start position
public GetPlayerStart ( Level level ) : void
level Level
Результат void

GetRails() публичный Метод

public GetRails ( ) : List
Результат List

GetTriggers() публичный Метод

Gets all the triggers in the level
public GetTriggers ( ) : List
Результат List

GetWalls() публичный Метод

UNUSED FOR NOW. MAY IN THE FUTURE, GATHER ALL THE INFO UP AND MAKE BIGGER BOUNDING BOXES FOR ENTIRE WALLS
public GetWalls ( Level level ) : List
level Level
Результат List

ImportLevel() публичный Метод

Goes through the xml file and translates the information
public ImportLevel ( Level level ) : Level
level Level
Результат Level

Importer() публичный Метод

Constructor for an importer object
public Importer ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager Content Manager
Результат System