C# Class HaloMap.Map.Map

The map.
Exibir arquivo Open project: troymac1ure/Entity Class Usage Examples

Public Properties

Property Type Description
BR System.IO.BinaryReader
BSP BSPContainer
BW System.IO.BinaryWriter
BitmapLibary BitmapLibraryLayout
DisplayType Meta.ItemType
FS System.IO.FileStream
FileNames FileNamesInfo
Functions MiscFunctions
HaloVersion HaloVersionEnum
IndexHeader IndexHeaderInfo
MapHeader MapHeaderInfo
MetaInfo ObjectIndexInfo
PrimaryMagic int
SecondaryMagic int
SelectedMeta HaloMap.Meta.Meta
Strings StringsInfo
Unicode UnicodeTableReader
filePath string
isOpen bool
openMapType MapTypes
ugh HaloMap.H2MetaContainers.ugh_

Public Methods

Method Description
BufferReadWrite ( BinaryReader &BR, BinaryWriter &BW, int size ) : void

The buffer read write.

CloseMap ( ) : void

The close map.

GetMetaFromTagIndex ( int tag, Map map, bool manualScan, bool parse ) : Meta

The get meta from tag index.

LoadFromFile ( string fileName ) : Map

Loads a .map file and returns it as a map object

OpenMap ( MapTypes type ) : void

Opens the

OpenMap ( MapTypes type, bool readOnly ) : void

Opens a Halo/Halo 2 based map for reading / writing (not readonly).

Refresh ( Map map ) : Map

Reloads the map.

This needs to use a return value, because the loaded map changes were not being saved. They would be lost when the function returned and we ?cannot pass Map as a ref?.

Sign ( ) : void

The sign.

Private Methods

Method Description
LoadMap ( ) : void

reads info from the current open map file and stores in it this map object

Map ( string fileName ) : System

Initializes a new instance of the Map class. An internal constructor so this class must be made via static map.FromFile...

Method Details

BufferReadWrite() public method

The buffer read write.
public BufferReadWrite ( BinaryReader &BR, BinaryWriter &BW, int size ) : void
BR System.IO.BinaryReader The br.
BW System.IO.BinaryWriter The bw.
size int The size.
return void

CloseMap() public method

The close map.
public CloseMap ( ) : void
return void

GetMetaFromTagIndex() public static method

The get meta from tag index.
public static GetMetaFromTagIndex ( int tag, Map map, bool manualScan, bool parse ) : Meta
tag int The tag.
map Map The map.
manualScan bool The manual scan.
parse bool The parse.
return HaloMap.Meta.Meta

LoadFromFile() public static method

Loads a .map file and returns it as a map object
public static LoadFromFile ( string fileName ) : Map
fileName string The file Name.
return Map

OpenMap() public method

Opens the
public OpenMap ( MapTypes type ) : void
type MapTypes The type.
return void

OpenMap() public method

Opens a Halo/Halo 2 based map for reading / writing (not readonly).
public OpenMap ( MapTypes type, bool readOnly ) : void
type MapTypes MapTypes.(Internal, MainMenu, MPShared, SPShared, Bitmaps)
readOnly bool opens map file as read-only (does NOT apply to internal map file)
return void

Refresh() public static method

Reloads the map.
This needs to use a return value, because the loaded map changes were not being saved. They would be lost when the function returned and we ?cannot pass Map as a ref?.
public static Refresh ( Map map ) : Map
map Map The map.
return Map

Sign() public method

The sign.
public Sign ( ) : void
return void

Property Details

BR public_oe property

The br.
public BinaryReader,System.IO BR
return System.IO.BinaryReader

BSP public_oe property

The bsp.
public BSPContainer,HaloMap.Map BSP
return BSPContainer

BW public_oe property

The bw.
public BinaryWriter,System.IO BW
return System.IO.BinaryWriter

BitmapLibary public_oe property

The bitmap libary.
public BitmapLibraryLayout,HaloMap.Map BitmapLibary
return BitmapLibraryLayout

DisplayType public_oe property

The display type.
public Meta.ItemType DisplayType
return Meta.ItemType

FS public_oe property

The fs.
public FileStream,System.IO FS
return System.IO.FileStream

FileNames public_oe property

The file names.
public FileNamesInfo,HaloMap.Map FileNames
return FileNamesInfo

Functions public_oe property

The functions.
public MiscFunctions,HaloMap.Map Functions
return MiscFunctions

HaloVersion public_oe property

The halo version.
public HaloVersionEnum HaloVersion
return HaloVersionEnum

IndexHeader public_oe property

The index header.
public IndexHeaderInfo,HaloMap.Map IndexHeader
return IndexHeaderInfo

MapHeader public_oe property

The map header.
public MapHeaderInfo,HaloMap.Map MapHeader
return MapHeaderInfo

MetaInfo public_oe property

The meta info.
public ObjectIndexInfo,HaloMap.Map MetaInfo
return ObjectIndexInfo

PrimaryMagic public_oe property

The primary magic.
public int PrimaryMagic
return int

SecondaryMagic public_oe property

The secondary magic.
public int SecondaryMagic
return int

SelectedMeta public_oe property

The selected meta.
public Meta,HaloMap.Meta SelectedMeta
return HaloMap.Meta.Meta

Strings public_oe property

The strings.
public StringsInfo,HaloMap.Map Strings
return StringsInfo

Unicode public_oe property

The unicode.
public UnicodeTableReader,HaloMap.Map Unicode
return UnicodeTableReader

filePath public_oe property

The file path.
public string filePath
return string

isOpen public_oe property

The is open.
public bool isOpen
return bool

openMapType public_oe property

The open map type.
public MapTypes openMapType
return MapTypes

ugh public_oe property

The ugh.
public ugh_,HaloMap.H2MetaContainers ugh
return HaloMap.H2MetaContainers.ugh_