Exemple #1
0
    static int _CreateCC_Runtime_PB_ProtoRoleBaseInfo(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            CC.Runtime.PB.ProtoRoleBaseInfo obj = new CC.Runtime.PB.ProtoRoleBaseInfo();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: CC.Runtime.PB.ProtoRoleBaseInfo.New");
        }

        return(0);
    }
Exemple #2
0
    static int get_roleIdSpecified(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.Runtime.PB.ProtoRoleBaseInfo obj = (CC.Runtime.PB.ProtoRoleBaseInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name roleIdSpecified");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index roleIdSpecified on a nil value");
            }
        }

        LuaScriptMgr.Push(L, obj.roleIdSpecified);
        return(1);
    }
Exemple #3
0
    static int set_prizeSpecified(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.Runtime.PB.ProtoRoleBaseInfo obj = (CC.Runtime.PB.ProtoRoleBaseInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name prizeSpecified");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index prizeSpecified on a nil value");
            }
        }

        obj.prizeSpecified = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
Exemple #4
0
    static int set_level_exp(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        CC.Runtime.PB.ProtoRoleBaseInfo obj = (CC.Runtime.PB.ProtoRoleBaseInfo)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name level_exp");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index level_exp on a nil value");
            }
        }

        obj.level_exp = (int)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }