Can now mark json/components with std::optional and then they can be null/false to disable them.
This commit is contained in:
parent
243b4c2663
commit
281a7f687a
4 changed files with 50 additions and 20 deletions
|
@ -3,7 +3,7 @@
|
|||
"components": [
|
||||
{"_type": "BossFight",
|
||||
"background": "boss_fight_background",
|
||||
"stage": "none",
|
||||
"stage": false,
|
||||
"weapon_sound": "Sword_Hit_2"
|
||||
},
|
||||
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
|
||||
|
@ -16,7 +16,7 @@
|
|||
"components": [
|
||||
{"_type": "BossFight",
|
||||
"background": "devils_fingers_background",
|
||||
"stage": "none",
|
||||
"stage": false,
|
||||
"weapon_sound": "Sword_Hit_2"
|
||||
},
|
||||
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue