| 92 | } |
| 93 | |
| 94 | Json Monster::diskStore() const { |
| 95 | return JsonObject{ |
| 96 | {"monsterLevel", jsonFromMaybe(m_monsterLevel)}, |
| 97 | {"movementState", m_movementController->storeState()}, |
| 98 | {"statusController", m_statusController->diskStore()}, |
| 99 | {"damageOnTouch", m_damageOnTouch}, |
| 100 | {"aggressive", aggressive()}, |
| 101 | {"deathParticleBurst", m_deathParticleBurst}, |
| 102 | {"deathSound", m_deathSound}, |
| 103 | {"activeSkillName", m_activeSkillName}, |
| 104 | {"dropPool", m_dropPool}, |
| 105 | {"effectEmitter", m_effectEmitter.toJson()}, |
| 106 | {"monsterVariant", Root::singleton().monsterDatabase()->writeMonsterVariantToJson(m_monsterVariant)}, |
| 107 | {"scriptStorage", m_scriptComponent.getScriptStorage()}, |
| 108 | {"uniqueId", jsonFromMaybe(uniqueId())}, |
| 109 | {"team", getTeam().toJson()} |
| 110 | }; |
| 111 | } |
| 112 | |
| 113 | ByteArray Monster::netStore(NetCompatibilityRules rules) { |
| 114 | return Root::singleton().monsterDatabase()->writeMonsterVariant(m_monsterVariant, rules); |
nothing calls this directly
no test coverage detected