Something went wrong. Try again.
OpenMW is an open implementation of the Morrowind engine
Something went wrong. Try again.
653 B · 28 lines
C++
at master
1234567891011121314151617181920212223242526272829#ifndef COMPONENTS_LUA_SCRIPTTRACKER_H#define COMPONENTS_LUA_SCRIPTTRACKER_H
#include <memory>#include <queue>#include <utility>
#include "scriptscontainer.hpp"
namespace LuaUtil{ class ScriptTracker { using Frame = unsigned int; using TrackedScriptContainer = std::pair<ScriptsContainerWeakPtr, Frame>; std::queue<TrackedScriptContainer> mLoadedScripts; Frame mFrame = 0;
public: void unloadInactiveScripts(LuaView& lua);
void onLoad(ScriptsContainer& container);
std::size_t size() const { return mLoadedScripts.size(); } };}
#endif // COMPONENTS_LUA_SCRIPTTRACKER_H