aboutsummaryrefslogtreecommitdiff
path: root/src/lua/common/je_lua_proxy.cpp
blob: dc6df30cff7332cb2cfb17224647680904097ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "je_lua.h"
#include "je_lua_proxy.h"

namespace JinEngine
{
    namespace Lua
    {

        void Proxy::bind(SharedBase* s)
        {
            if (s == nullptr)
                return;
            shared = s;
            shared->retain();
        }

        void Proxy::release()
        {
            if (shared != nullptr)
            {
                shared->release();
                shared = nullptr;
            }
        }

        const char* Proxy::getObjectType()
        {
            return shared->type;
        }

    }
}