| 172 | |
| 173 | |
| 174 | void cDropSpenserEntity::SaveToJson(Json::Value & a_Value) |
| 175 | { |
| 176 | a_Value["x"] = m_PosX; |
| 177 | a_Value["y"] = m_PosY; |
| 178 | a_Value["z"] = m_PosZ; |
| 179 | |
| 180 | Json::Value AllSlots; |
| 181 | int NumSlots = m_Contents.GetNumSlots(); |
| 182 | for (int i = 0; i < NumSlots; i++) |
| 183 | { |
| 184 | Json::Value Slot; |
| 185 | m_Contents.GetSlot(i).GetJson(Slot); |
| 186 | AllSlots.append(Slot); |
| 187 | } |
| 188 | a_Value["Slots"] = AllSlots; |
| 189 | } |
| 190 | |
| 191 | |
| 192 |
nothing calls this directly
no test coverage detected