Example #1
0
    static int GetComposite(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        GoodsConfig obj  = (GoodsConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "GoodsConfig");
        uint        arg0 = (uint)LuaScriptMgr.GetNumber(L, 2);

        fogs.proto.config.GoodsCompositeConfig o = obj.GetComposite(arg0);
        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
Example #2
0
    static int _Createfogs_proto_config_GoodsCompositeConfig(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            fogs.proto.config.GoodsCompositeConfig obj = new fogs.proto.config.GoodsCompositeConfig();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: fogs.proto.config.GoodsCompositeConfig.New");
        }

        return(0);
    }
Example #3
0
    static int get_src_num(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.config.GoodsCompositeConfig obj = (fogs.proto.config.GoodsCompositeConfig)o;

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

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

        LuaScriptMgr.Push(L, obj.src_num);
        return(1);
    }
Example #4
0
    static int set_costing(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        fogs.proto.config.GoodsCompositeConfig obj = (fogs.proto.config.GoodsCompositeConfig)o;

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

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

        obj.costing = (uint)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }