MCPcopy Create free account
hub / github.com/OpenMW/openmw / cache

Method cache

apps/openmw/mwlua/stats.cpp:390–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388 }
389
390 void cache(const Context& context, std::string_view prop, const sol::object& value) const
391 {
392 SelfObject* obj = mObject.asSelfObject();
393 obj->cacheStat(*context.mLuaManager, SelfObject::CachedStat{ &SkillStat::setValue, mId, prop }, value);
394 }
395
396 static void setValue(Index index, std::string_view prop, const MWWorld::Ptr& ptr, const sol::object& value)
397 {

Callers

nothing calls this directly

Calls 2

asSelfObjectMethod · 0.80
cacheStatMethod · 0.80

Tested by

no test coverage detected