Пример #1
0
    static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        fogs.proto.msg.BadgeCG o = (fogs.proto.msg.BadgeCG)arg0;
        LuaScriptMgr.Push(L, o);
        return(1);
    }
Пример #2
0
    static int GetBadgeCategory(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        Goods obj = (Goods)LuaScriptMgr.GetNetObjectSelf(L, 1, "Goods");

        fogs.proto.msg.BadgeCG o = obj.GetBadgeCategory();
        LuaScriptMgr.Push(L, o);
        return(1);
    }