Ejemplo n.º 1
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;
        }
Ejemplo n.º 2
0
 public Item ContainerAsItem(Common container)
 {
     return(m_memory.Read <Item>(container.Fields));
 }