C# Class idTech4.Text.idMapFile

Reads or writes the contents of .map files into a standard internal format, which can then be moved into private formats for collision detection, map processing, or editor use. No validation (duplicate planes, null area brushes, etc) is performed. There are no limits to the number of any of the elements in maps. The order of entities, brushes, and sides is maintained.
Inheritance: IDisposable
Datei anzeigen Open project: iainmckay/idtech4.net Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetEntity ( int index ) : idMapEntity

Gets the entity at the specified index.

Parse ( string fileName, bool ignoreRegion = false, bool osPath = false ) : bool

Normally this will use a .reg file instead of a .map file if it exists, which is what the game and dmap want, but the editor will want to always load a .map file.

RemoveEntities ( string className ) : void
RemovePrimitiveData ( ) : void
idMapFile ( ) : System

Private Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetEntity() public method

Gets the entity at the specified index.
public GetEntity ( int index ) : idMapEntity
index int
return idMapEntity

Parse() public method

Normally this will use a .reg file instead of a .map file if it exists, which is what the game and dmap want, but the editor will want to always load a .map file.
public Parse ( string fileName, bool ignoreRegion = false, bool osPath = false ) : bool
fileName string Does not require an extension.
ignoreRegion bool
osPath bool
return bool

RemoveEntities() public method

public RemoveEntities ( string className ) : void
className string
return void

RemovePrimitiveData() public method

public RemovePrimitiveData ( ) : void
return void

idMapFile() public method

public idMapFile ( ) : System
return System