Can now mark json/components with std::optional and then they can be null/false to disable them.

This commit is contained in:
Zed A. Shaw 2025-03-04 23:06:46 -05:00
parent 243b4c2663
commit 281a7f687a
4 changed files with 50 additions and 20 deletions

View file

@ -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},