Esempio n. 1
0
 internal LuaVMWrapper(IMainThreadExecutor executor, IGlobalMemory memory)
 {
     m_executor = executor;
     m_memory   = memory;
     m_executor.RegisterFunctions(c_functions);
     m_luaTop = m_executor[c_getTop, -1]();
 }
 internal FunctionsAccessor(IMainThreadExecutor executor, IGlobalMemory memory, ILuaScriptExecutor scriptExecutor)
 {
     m_executor    = executor;
     m_memory      = memory;
     m_luaExecutor = scriptExecutor;
     m_buffer      = m_memory.AllocateAutoScalingShared(c_dataBufferSize);
 }
Esempio n. 3
0
        internal ObjectManager(IGlobalMemory memory, IGameFunctions functions, IAggregatedFunctions aggregatedFunctions)
        {
            m_functions           = functions;
            m_aggregatedFunctions = aggregatedFunctions;
            m_memory = memory;

            var pObjManager = m_memory.Read <int>(c_staticClientConnection) + c_objManagerOffset;
            var objManager  = m_memory.Read <int>(pObjManager);

            m_objListStart = m_memory.Read <int>(objManager + c_firstObjOffset);
            m_pPlayerGuid  = objManager + c_playerGuidOffset;
        }
Esempio n. 4
0
 internal ObjectsEnumerator(IGlobalMemory memory, int first)
 {
     m_first  = first;
     m_memory = memory;
 }
Esempio n. 5
0
 internal ObjectsEnumerable(IGlobalMemory memory, int first)
 {
     m_enumerator = new ObjectsEnumerator(memory, first);
 }
Esempio n. 6
0
 internal SpellBook(IGlobalMemory memory)
 {
     m_memory = memory;
 }