//------------------------------------------------------------------------- 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(); } }
//------------------------------------------------------------------------- public override void load(EbPropSet prop_set) { ParentId = prop_set.getPropInt("I_ParentId").get(); TypeName = prop_set.getPropString("T_TypeName").get(); TypeDesc = prop_set.getPropString("T_TypeDesc").get(); ListOperateInfo = new List <ItemOperateInfo>(); int operate_id = prop_set.getPropInt("I_Operate1").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } operate_id = prop_set.getPropInt("I_Operate2").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } operate_id = prop_set.getPropInt("I_Operate3").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } operate_id = prop_set.getPropInt("I_Operate4").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } operate_id = prop_set.getPropInt("I_Operate5").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } operate_id = prop_set.getPropInt("I_Operate6").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } operate_id = prop_set.getPropInt("I_Operate7").get(); if (operate_id > 0) { ItemOperateInfo operate_info = new ItemOperateInfo(); operate_info.OperateId = ((_eOperateType)operate_id).ToString(); TbDataOperateType operate_type = EbDataMgr.Instance.getData <TbDataOperateType>(operate_id); operate_info.OperateName = operate_type.OperateName; operate_info.IsCompoundType = operate_type.IsCompandType; operate_info.EffectData = new EffectData(); operate_info.EffectData.EffectId = operate_type.OperateEffectId; ListOperateInfo.Add(operate_info); } }