示例#1
0
        //-------------------------------------------------------------------------
        public override void load(EbPropSet prop_set)
        {
            Name = prop_set.getPropString("T_Name").get();
            var prop_state = prop_set.getPropInt("I_State");

            State       = prop_state == null ? DataState.Default : (DataState)prop_state.get();
            NormalFish  = EbDataMgr.Instance.getData <TbDataFish>(prop_set.getPropInt("I_NormalFish").get());
            RedFish     = EbDataMgr.Instance.getData <TbDataFish>(prop_set.getPropInt("I_RedFish").get());
            SpreadCount = prop_set.getPropInt("I_SpreadCount").get();
            GapTime     = prop_set.getPropInt("I_GapTime").get();
            FishCount   = prop_set.getPropInt("I_FishCount").get();
            Speed       = prop_set.getPropFloat("R_Speed").get();
        }
示例#2
0
        //-------------------------------------------------------------------------
        public override void load(EbPropSet prop_set)
        {
            Name = prop_set.getPropString("T_Name").get();
            var prop_state = prop_set.getPropInt("I_State");

            State                = prop_state == null ? DataState.Default : (DataState)prop_state.get();
            Level                = prop_set.getPropInt("I_Level").get();
            Speed                = prop_set.getPropFloat("R_Speed").get();
            Bullet0Animation     = prop_set.getPropString("T_Bullet0Animation").get();
            Bullet1Animation     = prop_set.getPropString("T_Bullet1Animation").get();
            Bullet2Animation     = prop_set.getPropString("T_Bullet2Animation").get();
            Bullet3Animation     = prop_set.getPropString("T_Bullet3Animation").get();
            Bullet4Animation     = prop_set.getPropString("T_Bullet4Animation").get();
            Bullet5Animation     = prop_set.getPropString("T_Bullet5Animation").get();
            BulletPixelHeight    = prop_set.getPropInt("I_BulletPixelHeight").get();
            BulletHeight         = prop_set.getPropInt("I_BulletHeight").get();
            EffectCompose        = EbDataMgr.Instance.getData <TbDataEffectCompose>(prop_set.getPropInt("I_EffectCompose").get());
            ColorBulletAnimation = prop_set.getPropString("T_ColorBulletAnimation").get();
            Bullet6Animation     = prop_set.getPropString("T_Bullet6Animation").get();
        }
示例#3
0
        //-------------------------------------------------------------------------
        public override void load(EbPropSet prop_set)
        {
            ItemTypeId    = prop_set.getPropInt("I_ItemTypeId").get();
            Name          = prop_set.getPropString("T_Name").get();
            MaxOverlapNum = prop_set.getPropInt("I_MaxOverlapNum").get();
            Icon          = prop_set.getPropString("T_Icon").get();
            Desc          = prop_set.getPropString("T_Desc").get();
            UnitType      = prop_set.getPropString("T_UnitType").get();

            int prop_int = prop_set.getPropInt("I_OperateId").get();

            if (prop_int > 0)
            {
                MainOperateInfo            = new ItemOperateInfo();
                MainOperateInfo.OperateId  = ((_eOperateType)prop_int).ToString();
                MainOperateInfo.EffectData = new EffectData();
                TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(prop_int);
                MainOperateInfo.EffectData.EffectId = operate_type.OperateEffectId;
                MainOperateInfo.OperateName         = operate_type.OperateName;
                MainOperateInfo.SubOverlapNum       = prop_set.getPropInt("I_SubOverlapNum").get();
                MainOperateInfo.CdMax = prop_set.getPropFloat("R_CdMax").get();
            }
        }