static int getBuildSkillType(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        Games.Module.Wars.SkillWarConf obj = (Games.Module.Wars.SkillWarConf)LuaScriptMgr.GetNetObjectSelf(L, 1, "Games.Module.Wars.SkillWarConf");
        int o = obj.getBuildSkillType();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Пример #2
0
        void SetSkillType()
        {
            switch ((eSKillWarEffectType)skillWarConfig.getBuildSkillType())
            {
            case eSKillWarEffectType.eEffectLevelUp:
                skillType = SkillType.Build_Uplevel;
                break;

            case eSKillWarEffectType.eEffectReplace:
                skillType = SkillType.Build_Replace;
                break;

            case eSKillWarEffectType.eEffectAttach:
                skillType = SkillType.Build_Attach;
                break;

            default:
                skillType = SkillType.Normal;
                break;
            }
        }