ScriptWeaponTemplate struct
#include <Jazz2/Editor/Shell/WeaponScripts.h>
Description of a weapon of a script, its library and its parameters.
Read from Editor/Weapons/ of the content and of the user content, see FindScriptWeaponTemplates().
Public variables
- String Name
- Name.
- String Library
- File name of the library.
- String Constructor
- Script code that creates the weapon.
- String Image
- Absolute path of its image, empty for none.
- SmallVector<String, 0> Hooks
- Callbacks of the level script that have to pass on to the hook of the weapons, as
onMain. - SmallVector<ScriptWeaponParam, 0> Params
- Parameters.
- ScriptWeaponTemplateSource Source
- Where it comes from.
- String SourcePath
- File it comes from.
- bool Complete
- Whether all parameters are known, a guess may know only the first of them.