public void SetUpItem(MainShipShieldInfo info)
        {
            _info     = info;
            direction = info.direction;

            UpdateShieldLevelMax();
        }
Exemple #2
0
        public static string GetMainShipShieldDirectionName(MainShip_ShieldDirection direction)
        {
            var config = Config.ConfigData.MainShipConfigData.basePropertyConfig;

            if (direction == MainShip_ShieldDirection.back)
            {
                return(MultiLanguage.Instance.GetTextValue(config.shield_direction_back_name));
            }
            else if (direction == MainShip_ShieldDirection.front)
            {
                return(MultiLanguage.Instance.GetTextValue(config.shield_direction_front_name));
            }
            else if (direction == MainShip_ShieldDirection.Left)
            {
                return(MultiLanguage.Instance.GetTextValue(config.shield_direction_left_name));
            }
            else if (direction == MainShip_ShieldDirection.Right)
            {
                return(MultiLanguage.Instance.GetTextValue(config.shield_direction_right_name));
            }
            else
            {
                return(string.Empty);
            }
        }
Exemple #3
0
 public void AddShieldModifier(bool addAll, AssemblePartInfo partInfo, ModifierBase modifier, MainShip_ShieldDirection direction)
 {
     if (addAll)
     {
         foreach (var info in mainShipInfo.shieldInfoDic.Values)
         {
             ModifierManager.Instance.AddMainShipShieldModifier(partInfo, info, modifier);
         }
     }
     else
     {
         ModifierManager.Instance.AddMainShipShieldModifier(partInfo, mainShipInfo.shieldInfoDic[direction], modifier);
     }
 }