Engine.hx acts as the hub class for accessing data. It contains "cores" that can be utilized for wad data manipulation. Cores can be overriden by the developers to modify behavior. Some of these cores are mandatory to change in order to use.
See also:
Static variables
staticLOADMAP:String ‑> Bool
Function to call when loading a map. Can be overriden to change behavior.
staticlog:(Array<String>, PosInfos) ‑> Void = logDefault
Placeholder for future engine logging
Parameters:
null | _msg |
---|
Static methods
Constructor
Methods
addWadBytes(_wadBytes:Bytes, _wadName:String):Void
Adds and parses wad into memory.
Parameters:
_wadBytes | Wad as bytes |
---|---|
_wadName | Name of wad |
loadMap(_mapMarker:String):Bool
Default function to load a map that's set to Engine.LOADMAP()
Parameters:
_mapMarker | String denoting map marker directory |
---|
setcore_IO(?_IO:IOCore):Void
Setter to override IOCore behavior. Changes CVar flag when overriden. Optional.
Parameters:
_cheats | Providing 'null' will reset to default core |
---|
setcore_game(?_game:GameCore):Void
Setter to override GameCore behavior. Changes CVar flag when overriden. Optional.
Parameters:
_cheats | Providing 'null' will reset to default core |
---|
setcore_profile(?_profile:ProfileCore):Void
Setter to override ProfileCore behavior. Changes CVar flag when overriden. Optional.
Parameters:
_cheats | Providing 'null' will reset to default core |
---|
setcore_render(?_render:RenderCore):Void
Setter to override RenderCore behavior. Changes CVar flag when overriden. Mandatory to draw a scene.
Parameters:
_cheats | Providing 'null' will reset to default core |
---|
setcore_textures(?_textures:TextureCore):Void
Setter to override TextureCore behavior. Changes CVar flag when overriden. Optional.
Parameters:
_cheats | Providing 'null' will reset to default core |
---|