Jazz2::Editor::CustomWeaponTemplate struct

Template of a custom weapon, read from a .json file in Editor/Weapons/.

An item with "Kind": "Custom" of the same files as the templates of the weapons of scripts (see ReadWeaponTemplates()). Its images and sounds are files next to it, embedded in the level when the template is applied to one of its weapons, see ApplyCustomWeaponTemplate().

Public variables

String Name
Name.
String Image
Absolute path of its image shown in the editor, empty for none.
String SourcePath
File it comes from.
WeaponType BasedOn
Weapon of the game it's made from.
std::shared_ptr<const Json::Value> Description
The item of the file as it is.