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

Method diskStore

source/game/StarItemDrop.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107Json ItemDrop::diskStore() const {
108 auto itemDatabase = Root::singleton().itemDatabase();
109 return JsonObject{
110 {"item", itemDatabase->diskStore(m_item)},
111 {"position", jsonFromVec2F(m_movementController.position())},
112 {"mode", ModeNames.getRight(m_mode.get())},
113 {"eternal", m_eternal},
114 {"dropAge", m_dropAge.toJson()},
115 {"ageItemsTimer", m_ageItemsTimer.toJson()}
116 };
117}
118
119ByteArray ItemDrop::netStore(NetCompatibilityRules rules) const {
120 DataStreamBuffer ds;

Callers

nothing calls this directly

Calls 6

singletonClass · 0.85
jsonFromVec2FFunction · 0.85
itemDatabaseMethod · 0.80
positionMethod · 0.45
getMethod · 0.45
toJsonMethod · 0.45

Tested by

no test coverage detected