MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / diskStore

Method diskStore

source/game/StarMonster.cpp:94–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94Json 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
113ByteArray Monster::netStore(NetCompatibilityRules rules) {
114 return Root::singleton().monsterDatabase()->writeMonsterVariant(m_monsterVariant, rules);

Callers

nothing calls this directly

Calls 7

jsonFromMaybeFunction · 0.85
singletonClass · 0.85
monsterDatabaseMethod · 0.80
getScriptStorageMethod · 0.80
storeStateMethod · 0.45
toJsonMethod · 0.45

Tested by

no test coverage detected