コード例 #1
0
    static int GetAttrName(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(AttrNameConfig), typeof(uint)))
        {
            AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
            uint           arg0 = (uint)LuaDLL.lua_tonumber(L, 2);
            string         o    = obj.GetAttrName(arg0);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else if (count == 2 && LuaScriptMgr.CheckTypes(L, 1, typeof(AttrNameConfig), typeof(string)))
        {
            AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
            string         arg0 = LuaScriptMgr.GetString(L, 2);
            string         o    = obj.GetAttrName(arg0);
            LuaScriptMgr.Push(L, o);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: AttrNameConfig.GetAttrName");
        }

        return(0);
    }
コード例 #2
0
    static int ReadConfig(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        AttrNameConfig obj = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");

        obj.ReadConfig();
        return(0);
    }
コード例 #3
0
    static int isHide(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
        uint           arg0 = (uint)LuaScriptMgr.GetNumber(L, 2);
        bool           o    = obj.isHide(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #4
0
    static int GetTypeBySymbol(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
        string         arg0 = LuaScriptMgr.GetLuaString(L, 2);
        AttributeType  o    = obj.GetTypeBySymbol(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #5
0
    static int GetAttrData(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
        string         arg0 = LuaScriptMgr.GetLuaString(L, 2);
        AttrNameData   o    = obj.GetAttrData(arg0);

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
コード例 #6
0
    static int GetAttrSymbol(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
        uint           arg0 = (uint)LuaScriptMgr.GetNumber(L, 2);
        string         o    = obj.GetAttrSymbol(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #7
0
    static int IsRecommend(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        AttrNameConfig obj  = (AttrNameConfig)LuaScriptMgr.GetNetObjectSelf(L, 1, "AttrNameConfig");
        uint           arg0 = (uint)LuaScriptMgr.GetNumber(L, 2);
        uint           arg1 = (uint)LuaScriptMgr.GetNumber(L, 3);
        bool           o    = obj.IsRecommend(arg0, arg1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
コード例 #8
0
    static int _CreateAttrNameConfig(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

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

        return(0);
    }
コード例 #9
0
    static int get_AttrNameDatas(IntPtr L)
    {
        object         o   = LuaScriptMgr.GetLuaObject(L, 1);
        AttrNameConfig obj = (AttrNameConfig)o;

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

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

        LuaScriptMgr.PushObject(L, obj.AttrNameDatas);
        return(1);
    }
コード例 #10
0
    static int set_AttrName(IntPtr L)
    {
        object         o   = LuaScriptMgr.GetLuaObject(L, 1);
        AttrNameConfig obj = (AttrNameConfig)o;

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

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

        obj.AttrName = (Dictionary <string, string>)LuaScriptMgr.GetNetObject(L, 3, typeof(Dictionary <string, string>));
        return(0);
    }
コード例 #11
0
    static int set_isReadFinish(IntPtr L)
    {
        object         o   = LuaScriptMgr.GetLuaObject(L, 1);
        AttrNameConfig obj = (AttrNameConfig)o;

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

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

        obj.isReadFinish = LuaScriptMgr.GetBoolean(L, 3);
        return(0);
    }
コード例 #12
0
ファイル: GameSystem.cs プロジェクト: Avatarchik/LockStepDemo
    public void LoadConfig()
    {
        AnnouncementConfigData = new AnnouncementConfig();
        BadgeAttrConfigData    = new BadgeAttrConfig();
        ConstStringConfigData  = new ConstStringConfig();
        CommonConfig           = new CommonConfig();

        AttrNameConfigData        = new AttrNameConfig();
        RoleBaseConfigData2       = new BaseDataConfig2();
        AttrDataConfigData        = new AttrDataConfig();
        TeamLevelConfigData       = new TeamLevelConfig();
        RoleLevelConfigData       = new RoleLevelConfig();
        NPCConfigData             = new NPCDataConfig();
        SkillConfig               = new SkillConfig();
        GoodsConfigData           = new GoodsConfig();
        StoreGoodsConfigData      = new StoreGoodsConfig();
        BaseDataBuyConfigData     = new BaseDataBuyConfig();
        TaskConfigData            = new TaskDataConfig();
        AwardPackConfigData       = new AwardPackDataConfig();
        PractiseConfig            = new PractiseConfig();
        PracticePveConfig         = new PracticePveConfig();
        PractiseStepConfig        = new PractiseStepConfig();
        GameModeConfig            = new GameModeConfig();
        TrainingConfig            = new TrainingConfig();
        TattooConfig              = new TattooConfig();
        EquipmentConfigData       = new EquipmentConfig();
        TourConfig                = new TourConfig();
        GuideConfig               = new GuideConfig();
        FunctionConditionConfig   = new FunctionConditionConfig();
        RoleShapeConfig           = new RoleShapeConfig();
        FashionConfig             = new FashionConfig();
        FashionShopConfig         = new FashionShopConfig();
        VipPrivilegeConfig        = new VipPrivilegeConfig();
        pushConfig                = new PushConfig();
        presentHpConfigData       = new PresentHpConfig();
        LotteryConfig             = new LotteryConfig();
        starAttrConfig            = new StarAttrConfig();
        qualityAttrCorConfig      = new QualityAttrCorConfig();
        skillUpConfig             = new SkillUpConfig();
        RankConfig                = new RankConfig();
        signConfig                = new SignConfig();
        NewComerSignConfig        = new NewComerSignConfig();
        FightingCapacityConfig    = new FightingCapacityConfig();
        BodyInfoListConfig        = new BodyInfoListConfig();
        BadgeSlotsConfig          = new BadgeSlotConfig();
        GoodsComposeNewConfigData = new GoodsComposeNewConfig();

        SceneConfig = new SceneConfig();

        ReboundAttrConfigData    = new ReboundAttrConfig();
        CareerConfigData         = new CareerConfig();
        PotientialEffectConfig   = new PotientialEffectConfig();
        PVPPointConfig           = new PVPPointConfig();
        WinningStreakAwardConfig = new WinningStreakAwardConfig();
        ArticleStrengthConfig    = new ArticleStrengthConfig();
        PhRegainConfig           = new PhRegainConfig();
        MatchAchievementConfig   = new MatchAchievementConfig();
        SpecialActionConfig      = new SpecialActionConfig();
        StealConfig           = new StealConfig();
        CurveRateConfig       = new CurveRateConfig();
        DunkRateConfig        = new DunkRateConfig();
        AIConfig              = new AIConfig();
        AttrReduceConfig      = new AttrReduceConfig();
        qualifyingConfig      = new QualifyingConfig();
        qualifyingNewConfig   = new QualifyingNewConfig();
        qualifyingNewerConfig = new QualifyingNewerConfig();
        bullFightConfig       = new BullFightConfig();
        HedgingConfig         = new HedgingConfig();
        roleGiftConfig        = new RoleGiftConfig();
        DebugConfig           = new DebugConfig();
        shootGameConfig       = new ShootGameConfig();
        MapConfig             = new MapConfig();
        activityConfig        = new ActivityConfig();
        trialConfig           = new TrialConfig();
        gameMatchConfig       = new GameMatchConfig();
        shootSolutionManager  = new ShootSolutionManager();
        talentConfig          = new TalentConfig();
        ladderConfig          = new LadderConfig();
        matchSoundConfig      = new MatchSoundConfig();
        matchMsgConfig        = new MatchMsgConfig();
        MatchPointsConfig     = new MatchPointsConfig();
        AnimationSampleManager.Instance.LoadXml();
    }