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

Method getScriptStorage

source/game/scripting/StarLuaComponents.hpp:222–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template <typename Base>
222JsonObject LuaStorableComponent<Base>::getScriptStorage() const {
223 if (Base::initialized())
224 return Base::context()->template getPath<JsonObject>("storage");
225 else
226 return m_storage;
227}
228
229template <typename Base>
230void LuaStorableComponent<Base>::setScriptStorage(JsonObject storage) {

Callers 12

diskStoreMethod · 0.80
diskStoreMethod · 0.80
diskStoreMethod · 0.80
diskStoreMethod · 0.80
diskStoreMethod · 0.80
diskStoreMethod · 0.80
diskStoreMethod · 0.80
destroyMethod · 0.80
writeStoredDataMethod · 0.80
diskStoreMethod · 0.80
diskStoreMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected