Advertisement
expired6978

Untitled

Oct 13th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. class GetVMConditionalVariableValueFunc : public IForEachScriptObjectFunctor
  2. {
  3. public:
  4.     GetVMConditionalVariableValueFunc(VMClassRegistry * registry, UInt64 handle, StringCache::Ref var) : IForEachScriptObjectFunctor()
  5.     {
  6.         m_registry = registry;
  7.         m_handle = handle;
  8.         m_varName = var;
  9.         m_result = NULL;
  10.         m_found = 0;
  11.     }
  12.     virtual ~GetVMConditionalVariableValueFunc() { CALL_MEMBER_FN(this, Destroy)(); }
  13.  
  14.     virtual bool    Visit(void * arg, void * arg2) { return CALL_MEMBER_FN(this, Internal_Visit)(arg, arg2); }
  15.  
  16. private:
  17.     VMClassRegistry     * m_registry;
  18.     UInt64              m_handle;
  19.     StringCache::Ref    m_varName;
  20.     VMValue             * m_result;
  21.     UInt8               m_found;
  22.     UInt8               unk[3];
  23.  
  24.     MEMBER_FN_PREFIX(GetVMConditionalVariableValueFunc);
  25.     DEFINE_MEMBER_FN(Internal_Visit, bool, 0x00503450, void * arg1, void * arg2);
  26.     DEFINE_MEMBER_FN(Destroy, void, 0x00502610);
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement