public static List <Vector3> GetShipOffsPos2Sinking(ShipModel_Defender model, bool isRepair, MstShipGraphColumn iColumn)
        {
            List <Vector3> list = new List <Vector3>();

            list.Add(ShipUtils.GetShipOffsPos(model, model.DamagedFlgBefore, iColumn));
            list.Add(ShipUtils.GetShipOffsPos(model, (!isRepair) ? model.DamagedFlgAfter : model.DamagedFlgAfterRecovery, iColumn));
            return(list);
        }
        public static List <Texture2D> LoadTexture2Sinking(ShipModel_Defender model, bool isRepair)
        {
            List <Texture2D> list = new List <Texture2D>();

            list.Add(ShipUtils.LoadTexture(model.GetGraphicsMstId(), model.DamagedFlgBefore));
            list.Add(ShipUtils.LoadTexture(model.GetGraphicsMstId(), (!isRepair) ? model.DamagedFlgAfterRecovery : model.DamagedFlgAfterRecovery));
            return(list);
        }
 public static Vector3 GetShipOffsPos(ShipModel_Attacker model, MstShipGraphColumn iColumn)
 {
     if (model == null)
     {
         return(Vector3.get_zero());
     }
     return(ShipUtils.GetShipOffsPos(model.GetGraphicsMstId(), model.IsFriend(), model.DamagedFlg, iColumn));
 }
        public static Vector3 GetShipOffsPos(ShipModel_Defender model, DamageState_Battle damageState, MstShipGraphColumn iColumn)
        {
            if (model == null)
            {
                return(Vector3.get_zero());
            }
            bool isDamaged = false;

            if (damageState == DamageState_Battle.Tyuuha || damageState == DamageState_Battle.Taiha || damageState == DamageState_Battle.Gekichin)
            {
                isDamaged = true;
            }
            return(ShipUtils.GetShipOffsPos(model.GetGraphicsMstId(), model.IsFriend(), isDamaged, iColumn));
        }
 public static void PlayMildCaseVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, (!XorRandom.GetIs()) ? 20 : 19);
 }
        public static void PlayNightShellingVoice(ShipModel_Battle model)
        {
            int voiceNum = (!(model.Yomi == "グラーフ・ツェッペリン")) ? 17 : 917;

            ShipUtils.PlayShipVoice(model, voiceNum);
        }
        public static Texture2D LoadBannerTextureInTacticalSituation(ShipModel_BattleAll model)
        {
            int texNum;

            if (model.IsFriend())
            {
                texNum = ((!model.DamagedFlgEnd) ? 1 : 2);
            }
            else
            {
                texNum = ((!model.IsPractice()) ? 1 : ((!model.DamagedFlgEnd) ? 1 : 2));
            }
            return(SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(ShipUtils.SPConvertShipBannerID(model), texNum));
        }
 public static void PlayFlagshipWreckVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, 20);
 }
 public static void PlaySinkingVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, 22);
 }
 public static void PlayAircraftCutInVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, (!XorRandom.GetIs()) ? 17 : 15);
 }
 public static void PlayEatingVoice(ShipModel_Eater model)
 {
     ShipUtils.PlayShipVoice(model, 26);
 }
 public static void PlayBattleStartVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, 15);
 }
 public static Texture2D LoadTexture(ShipModel_BattleAll model, bool isStart)
 {
     return(ShipUtils.LoadTexture(model.GetGraphicsMstId(), (!isStart) ? model.DamagedFlgEnd : model.DamagedFlgStart));
 }
 public static Texture2D LoadTexture(ShipModel_BattleResult model)
 {
     return(ShipUtils.LoadTexture(model.GetGraphicsMstId(), model.IsDamaged()));
 }
 public static Texture2D LoadTexture(ShipModel_Defender model, bool isAfter)
 {
     return(ShipUtils.LoadTexture(model.GetGraphicsMstId(), (!isAfter) ? model.DamagedFlgBefore : model.DamagedFlgAfter));
 }
 public static void PlayDamageCutInVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, 21);
 }
 public static void PlaySupportingFireVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, XorRandom.GetILim(16, 18));
 }
 public static void PlayMVPVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, 23);
 }
        public static void PlayShellingVoive(ShipModel_Battle model)
        {
            int voiceNum = (model.ShipType != 7 && model.ShipType != 11 && model.ShipType != 18) ? ((!XorRandom.GetIs()) ? 16 : 15) : ((!XorRandom.GetIs()) ? 18 : 16);

            ShipUtils.PlayShipVoice(model, voiceNum);
        }
 public static Texture2D LoadTexture(ShipModel_Eater model)
 {
     return(ShipUtils.LoadTexture(model.GetGraphicsMstId(), model.IsFriend() && model.DamagedFlg));
 }
 public static void PlayObservedShellingVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, 17);
 }
 public static Texture2D LoadTexture2Restore(ShipModel_Defender defender)
 {
     return(ShipUtils.LoadTexture(defender.GetGraphicsMstId(), defender.DamagedFlgAfterRecovery));
 }
 public static void PlayTorpedoVoice(ShipModel_Battle model)
 {
     ShipUtils.PlayShipVoice(model, (!XorRandom.GetIs()) ? 16 : 15);
 }
 public static Texture2D LoadBannerTextureInVeteransReport(ShipModel_BattleResult model)
 {
     return(ShipUtils.LoadBannerTextureInTacticalSituation(model));
 }
        public static void PlayStartNightCombatVoice(ShipModel_Battle model)
        {
            int voiceNum = (!(model.Yomi == "グラーフ・ツェッペリン")) ? 18 : 918;

            ShipUtils.PlayShipVoice(model, voiceNum);
        }