| 105 | } |
| 106 | |
| 107 | Json 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 | |
| 119 | ByteArray ItemDrop::netStore(NetCompatibilityRules rules) const { |
| 120 | DataStreamBuffer ds; |
nothing calls this directly
no test coverage detected