| | |
| | | |
| | | public struct StrengthenProperty |
| | | { |
| | | public int strengthenLevel; |
| | | public List<Int2> properties; |
| | | } |
| | | |
| | |
| | | |
| | | public struct TrainProperty |
| | | { |
| | | public int level; |
| | | public List<Int2> properties; |
| | | } |
| | | |
| | |
| | | static EquipStarModel starModel { get { return ModelCenter.Instance.GetModel<EquipStarModel>(); } } |
| | | static EquipGemModel gemModel { get { return ModelCenter.Instance.GetModel<EquipGemModel>(); } } |
| | | static EquipTrainModel trainModel { get { return ModelCenter.Instance.GetModel<EquipTrainModel>(); } } |
| | | static EquipStrengthModel strengthenModel { get { return ModelCenter.Instance.GetModel<EquipStrengthModel>(); } } |
| | | |
| | | public static EquipTipType tipType { get; private set; } |
| | | public static TipData mainTipData { get; private set; } |
| | |
| | | |
| | | private static StrengthenProperty GetStrengthenProperty(string guid) |
| | | { |
| | | var item = packModel.GetItemByGuid(guid); |
| | | if (item == null) |
| | | { |
| | | return default(StrengthenProperty); |
| | | } |
| | | |
| | | return default(StrengthenProperty); |
| | | var level = item.config.LV; |
| | | var place = item.config.EquipPlace; |
| | | |
| | | var data = new StrengthenProperty(); |
| | | data.strengthenLevel = strengthenModel.GetStrengthLevel(level, place); |
| | | data.properties = new List<Int2>(); |
| | | var values = strengthenModel.GetEquipValueList(level, place); |
| | | foreach (var value in values) |
| | | { |
| | | data.properties.Add(new Int2(value.AttType, value.AttValue)); |
| | | } |
| | | |
| | | return data; |
| | | } |
| | | |
| | | private static GemInfo GetGemInfo(int itemId) |
| | |
| | | |
| | | private static GemInfo GetGemInfo(string guid) |
| | | { |
| | | return default(GemInfo); |
| | | var item = packModel.GetItemByGuid(guid); |
| | | if (item == null) |
| | | { |
| | | return default(GemInfo); |
| | | } |
| | | |
| | | var level = item.config.LV; |
| | | var place = item.config.EquipPlace; |
| | | var gemInfo = new GemInfo(); |
| | | |
| | | gemInfo.activeStates = new Dictionary<int, bool>(); |
| | | for (int i = 0; i < 4; i++) |
| | | { |
| | | gemInfo.activeStates[i] = gemModel.IsEquipGemHoleOpen(level, place, i); |
| | | } |
| | | |
| | | gemInfo.gems = new Dictionary<int, int>(); |
| | | int[] gems; |
| | | if (gemModel.TryGetEquipGems(item.config.LV, item.config.EquipPlace, out gems)) |
| | | { |
| | | for (int i = 0; i < gems.Length; i++) |
| | | { |
| | | gemInfo.gems[i] = gems[i]; |
| | | } |
| | | } |
| | | |
| | | return gemInfo; |
| | | } |
| | | |
| | | private static TrainProperty GetTrainProperty(string guid) |
| | | { |
| | | var item = packModel.GetItemByGuid(guid); |
| | | var trainLevel = trainModel.GetTrainLevel(item.config.LV, item.config.EquipPlace); |
| | | var type = EquipTrainModel.GetTrainType(item.config.EquipPlace); |
| | | if (item == null) |
| | | { |
| | | return default(TrainProperty); |
| | | } |
| | | |
| | | var trainProperty = new TrainProperty(); |
| | | var trainLevel = trainModel.GetTrainLevel(item.config.LV, item.config.EquipPlace); |
| | | trainProperty.level = trainLevel; |
| | | |
| | | var trainedProperties = trainModel.GetTrainedProperties(item.config.LV, item.config.EquipPlace); |
| | | var property1 = 0; |
| | | var property2 = 0; |
| | | var property3 = 0; |
| | | |
| | | var type = EquipTrainModel.GetTrainType(item.config.EquipPlace); |
| | | for (int i = 1; i < trainLevel - 1; i++) |
| | | { |
| | | var data = EquipWashConfig.Get(type, i); |