MLLE namespace JJ2+
Support for levels made with extended level editing tools
Functions
- jjLAYER@ GetLayer(const string&in name) JJ2+ C++
- Returns the layer of the given name, or null if the level has no such layer
- uint8 _GetWeaponAmmoCrate(uint slot) JJ2+
- Returns the event of the ammo crate of a script weapon
- int16 _GetWeaponHookArgument() JJ2+
- Returns the argument of the hook shared by the script weapons, -1 for none
- bool _GetWeaponParams(uint slot, jjSTREAM@ data) JJ2+
- Writes the parameters of a script weapon into a stream
- void ReapplyPalette() JJ2+
- Applies MLLE::Palette as the current palette
- bool Setup() JJ2+
- Finishes setting up a level made in an extended level editor
- void _SetWeaponSprite(uint slot, bool powerup, uint firstFrame, uint frameCount) JJ2+
- Sets the animation frames a script weapon shows on the screen
- void SpawnOffgrids() JJ2+
- Spawns the objects placed off the tile grid
- void SpawnOffgridsLocal() JJ2+
- Spawns the objects placed off the tile grid, for local players only
Variables
Function documentation
uint8 MLLE:: _GetWeaponAmmoCrate(uint slot) JJ2+
Returns the event of the ammo crate of a script weapon
Used internally by the custom weapons support. slot is from 1 to 9. Returns 0 if the slot doesn't hold a script weapon.
int16 MLLE:: _GetWeaponHookArgument() JJ2+
Returns the argument of the hook shared by the script weapons, -1 for none
Used internally by the custom weapons support.
bool MLLE:: _GetWeaponParams(uint slot,
jjSTREAM@ data) JJ2+
Writes the parameters of a script weapon into a stream
Used internally by the custom weapons support. slot is from 1 to 9. Returns false if the slot doesn't hold a script weapon.
void MLLE:: ReapplyPalette() JJ2+
Applies MLLE::Palette as the current palette
Also copies the colors into jjPalette. Call it after every change, including changes made to jjPalette itself. Index 0 is always transparent.
void MLLE:: _SetWeaponSprite(uint slot,
bool powerup,
uint firstFrame,
uint frameCount) JJ2+
Sets the animation frames a script weapon shows on the screen
Used internally by the custom weapons support. slot is from 1 to 9, powerup selects the powered-up version, and the frames are indices into jjAnimFrames.
void MLLE:: SpawnOffgrids() JJ2+
Spawns the objects placed off the tile grid
Has no effect, these objects are already placed when the level is converted.
void MLLE:: SpawnOffgridsLocal() JJ2+
Spawns the objects placed off the tile grid, for local players only
Has no effect, these objects are already placed when the level is converted.
Variable documentation
jjPAL MLLE:: Palette JJ2+
Palette the level was made with
A script may change it and apply it again by MLLE::ReapplyPalette().