Esempio n. 1
0
        public int AddEquipTexture(EquipTexture equipTexture, ModItem item, EquipType type, string name, string texture,
                                   string armTexture = "", string femaleTexture = "")
        {
            int slot = EquipLoader.ReserveEquipID(type);

            equipTexture.Texture = texture;
            equipTexture.mod     = this;
            equipTexture.Name    = name;
            equipTexture.Type    = type;
            equipTexture.Slot    = slot;
            equipTexture.item    = item;
            EquipLoader.equipTextures[type][slot] = equipTexture;
            ModLoader.GetTexture(texture);
            if (type == EquipType.Body)
            {
                EquipLoader.armTextures[slot]    = armTexture;
                EquipLoader.femaleTextures[slot] = femaleTexture.Length > 0 ? femaleTexture : texture;
                ModLoader.GetTexture(armTexture);
                ModLoader.GetTexture(femaleTexture);
            }
            if (item != null && (type == EquipType.Head || type == EquipType.Body || type == EquipType.Legs))
            {
                EquipLoader.slotToId[type][slot] = item.item.type;
            }
            return(slot);
        }
Esempio n. 2
0
        public void AddBossHeadTexture(string texture)
        {
            int slot = NPCHeadLoader.ReserveBossHeadSlot(texture);

            NPCHeadLoader.bossHeads[texture] = slot;
            ModLoader.GetTexture(texture);
        }
Esempio n. 3
0
        public void AddNPCHeadTexture(int npcType, string texture)
        {
            int slot = NPCHeadLoader.ReserveHeadSlot();

            NPCHeadLoader.heads[texture] = slot;
            ModLoader.GetTexture(texture);
            NPCHeadLoader.npcToHead[npcType] = slot;
            NPCHeadLoader.headToNPC[slot]    = npcType;
        }
Esempio n. 4
0
        /// <summary>
        /// Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.
        /// </summary>
        public virtual void AutoStaticDefaults()
        {
            Main.itemTexture[item.type] = ModLoader.GetTexture(Texture);

            var flameTexture = Texture + "_Flame";

            if (ModLoader.TextureExists(flameTexture))
            {
                Main.itemFlameTexture[item.type] = ModLoader.GetTexture(flameTexture);
            }

            DisplayName.SetDefault(Regex.Replace(GetType().Name, "([A-Z])", " $1").Trim());
        }
Esempio n. 5
0
 public void AddDust(string name, ModDust dust, string texture = "")
 {
     dust.Name = name;
     if (texture.Length > 0)
     {
         dust.Texture = ModLoader.GetTexture(texture);
     }
     else
     {
         dust.Texture = Main.dustTexture;
     }
     dust.mod    = this;
     dusts[name] = dust;
 }
Esempio n. 6
0
 //in Terraria.GameContent.ChildSafety make SafeGore internal and not readonly
 internal static void ResizeAndFillArrays()
 {
     Array.Resize(ref Main.goreLoaded, nextGore);
     Array.Resize(ref Main.goreTexture, nextGore);
     Array.Resize(ref ChildSafety.SafeGore, nextGore);
     for (int k = GoreID.Count; k < nextGore; k++)
     {
         Main.goreLoaded[k] = true;
     }
     foreach (string texture in gores.Keys)
     {
         Main.goreTexture[gores[texture]] = ModLoader.GetTexture(texture);
     }
 }
Esempio n. 7
0
 /// <summary>
 /// Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.
 /// </summary>
 public virtual void AutoStaticDefaults()
 {
     Main.projectileTexture[projectile.type] = ModLoader.GetTexture(Texture);
     Main.projFrames[projectile.type]        = 1;
     if (projectile.hostile)
     {
         Main.projHostile[projectile.type] = true;
     }
     if (projectile.aiStyle == 7)
     {
         Main.projHook[projectile.type] = true;
     }
     DisplayName.SetDefault(Regex.Replace(GetType().Name, "([A-Z])", " $1").Trim());
 }
 internal static void ResizeAndFillArrays()
 {
     Array.Resize(ref Main.backgroundTexture, nextBackground);
     Array.Resize(ref Main.backgroundHeight, nextBackground);
     Array.Resize(ref Main.backgroundWidth, nextBackground);
     Array.Resize(ref Main.backgroundLoaded, nextBackground);
     foreach (string texture in backgrounds.Keys)
     {
         int slot = backgrounds[texture];
         Main.backgroundTexture[slot] = ModLoader.GetTexture(texture);
         Main.backgroundWidth[slot]   = Main.backgroundTexture[slot].Width;
         Main.backgroundHeight[slot]  = Main.backgroundTexture[slot].Height;
         Main.backgroundLoaded[slot]  = true;
     }
 }
Esempio n. 9
0
 internal static void ResizeAndFillArrays()
 {
     Array.Resize(ref Main.npcHeadTexture, nextHead);
     Array.Resize(ref Main.npcHeadBossTexture, nextBossHead);
     foreach (string texture in heads.Keys)
     {
         Main.npcHeadTexture[heads[texture]] = ModLoader.GetTexture(texture);
     }
     foreach (string texture in bossHeads.Keys)
     {
         Main.npcHeadBossTexture[bossHeads[texture]] = ModLoader.GetTexture(texture);
     }
     foreach (int npc in npcToBossHead.Keys)
     {
         NPCID.Sets.BossHeadTextures[npc] = npcToBossHead[npc];
     }
 }
Esempio n. 10
0
        public void AddDust(string name, ModDust dust, string texture = "")
        {
            int id = ModDust.ReserveDustID();

            ModDust.dusts[id] = dust;
            dust.Type         = id;
            dust.Name         = name;
            if (texture.Length > 0)
            {
                dust.Texture = ModLoader.GetTexture(texture);
            }
            else
            {
                dust.Texture = Main.dustTexture;
            }
            dust.mod    = this;
            dusts[name] = dust;
        }
Esempio n. 11
0
        public int AddEquipTexture(ModItem item, EquipType type, string texture, string armTexture = "", string femaleTexture = "")
        {
            int slot = EquipLoader.ReserveEquipID(type);

            EquipLoader.equips[type][texture] = slot;
            ModLoader.GetTexture(texture);
            if (type == EquipType.Body)
            {
                EquipLoader.armTextures[slot]    = armTexture;
                EquipLoader.femaleTextures[slot] = femaleTexture.Length > 0 ? femaleTexture : texture;
                ModLoader.GetTexture(armTexture);
                ModLoader.GetTexture(femaleTexture);
            }
            if (type == EquipType.Head || type == EquipType.Body || type == EquipType.Legs)
            {
                EquipLoader.slotToId[type][slot] = item.item.type;
            }
            return(slot);
        }
Esempio n. 12
0
        /// <summary>
        /// Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.
        /// </summary>
        public virtual void AutoStaticDefaults()
        {
            Main.npcTexture[npc.type] = ModLoader.GetTexture(Texture);
            if (banner != 0 && bannerItem != 0)
            {
                NPCLoader.bannerToItem[banner] = bannerItem;
            }
            else if (banner != 0 || bannerItem != 0)
            {
                ErrorLogger.Log(Language.GetTextValue("tModLoader.LoadWarningBannerOrBannerItemNotSet", mod.DisplayName, Name));
            }
            if (npc.lifeMax > 32767 || npc.boss)
            {
                Main.npcLifeBytes[npc.type] = 4;
            }
            else if (npc.lifeMax > 127)
            {
                Main.npcLifeBytes[npc.type] = 2;
            }
            else
            {
                Main.npcLifeBytes[npc.type] = 1;
            }

            string[] altTextures     = AltTextures;
            int      altTextureCount = altTextures.Length;

            NPCID.Sets.ExtraTextureCount[npc.type] = altTextureCount;
            Main.npcAltTextures[npc.type]          = new Texture2D[altTextureCount + 1];
            if (altTextureCount > 0)
            {
                Main.npcAltTextures[npc.type][0] = Main.npcTexture[npc.type];
            }
            for (int k = 1; k <= altTextureCount; k++)
            {
                Main.npcAltTextures[npc.type][k] = ModLoader.GetTexture(altTextures[k - 1]);
            }

            if (DisplayName.IsDefault())
            {
                DisplayName.SetDefault(Regex.Replace(Name, "([A-Z])", " $1").Trim());
            }
        }
Esempio n. 13
0
        /// <summary>
        /// Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.
        /// </summary>
        public virtual void AutoStaticDefaults()
        {
            Main.npcTexture[npc.type] = ModLoader.GetTexture(Texture);
            if (banner != 0 && bannerItem != 0)
            {
                NPCLoader.bannerToItem[banner] = bannerItem;
            }
            else if (banner != 0 || bannerItem != 0)
            {
                ErrorLogger.Log($"{mod.DisplayName}: {Name}. You have set ModNPC.banner or ModNPC.bannerItem, but not the other. Make sure you set both, check your spelling, and that the item exists if you are using mod.ItemType(). Report this to the {mod.DisplayName} developers.");
            }
            if (npc.lifeMax > 32767 || npc.boss)
            {
                Main.npcLifeBytes[npc.type] = 4;
            }
            else if (npc.lifeMax > 127)
            {
                Main.npcLifeBytes[npc.type] = 2;
            }
            else
            {
                Main.npcLifeBytes[npc.type] = 1;
            }

            string[] altTextures     = AltTextures;
            int      altTextureCount = altTextures.Length;

            NPCID.Sets.ExtraTextureCount[npc.type] = altTextureCount;
            Main.npcAltTextures[npc.type]          = new Texture2D[altTextureCount + 1];
            if (altTextureCount > 0)
            {
                Main.npcAltTextures[npc.type][0] = Main.npcTexture[npc.type];
            }
            for (int k = 1; k <= altTextureCount; k++)
            {
                Main.npcAltTextures[npc.type][k] = ModLoader.GetTexture(altTextures[k - 1]);
            }

            if (DisplayName.IsDefault())
            {
                DisplayName.SetDefault(Regex.Replace(Name, "([A-Z])", " $1").Trim());
            }
        }
Esempio n. 14
0
        /// <summary>
        /// Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.
        /// </summary>
        public virtual void AutoStaticDefaults()
        {
            Main.npcTexture[npc.type] = ModLoader.GetTexture(Texture);
            if (banner != 0 && bannerItem != 0)
            {
                NPCLoader.bannerToItem[banner] = bannerItem;
            }
            else if (banner != 0 || bannerItem != 0)
            {
                throw new Exception($"You have set one of ModNPC.banner or ModNPC.bannerItem for {Name}, but not the other. Make sure you set both and check your spelling and that the item exists if you are using mod.ItemType()");
            }
            if (npc.lifeMax > 32767 || npc.boss)
            {
                Main.npcLifeBytes[npc.type] = 4;
            }
            else if (npc.lifeMax > 127)
            {
                Main.npcLifeBytes[npc.type] = 2;
            }
            else
            {
                Main.npcLifeBytes[npc.type] = 1;
            }

            string[] altTextures     = AltTextures;
            int      altTextureCount = altTextures.Length;

            NPCID.Sets.ExtraTextureCount[npc.type] = altTextureCount;
            Main.npcAltTextures[npc.type]          = new Texture2D[altTextureCount + 1];
            if (altTextureCount > 0)
            {
                Main.npcAltTextures[npc.type][0] = Main.npcTexture[npc.type];
            }
            for (int k = 1; k <= altTextureCount; k++)
            {
                Main.npcAltTextures[npc.type][k] = ModLoader.GetTexture(altTextures[k - 1]);
            }

            DisplayName.SetDefault(Regex.Replace(GetType().Name, "([A-Z])", " $1").Trim());
        }
Esempio n. 15
0
        /// <summary>
        /// Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.
        /// </summary>
        public virtual void AutoStaticDefaults()
        {
            Main.npcTexture[npc.type] = ModLoader.GetTexture(Texture);
            if (banner != 0 && bannerItem != 0)
            {
                NPCLoader.bannerToItem[banner] = bannerItem;
            }
            if (npc.lifeMax > 32767 || npc.boss)
            {
                Main.npcLifeBytes[npc.type] = 4;
            }
            else if (npc.lifeMax > 127)
            {
                Main.npcLifeBytes[npc.type] = 2;
            }
            else
            {
                Main.npcLifeBytes[npc.type] = 1;
            }

            string[] altTextures     = AltTextures;
            int      altTextureCount = altTextures.Length;

            NPCID.Sets.ExtraTextureCount[npc.type] = altTextureCount;
            Main.npcAltTextures[npc.type]          = new Texture2D[altTextureCount + 1];
            if (altTextureCount > 0)
            {
                Main.npcAltTextures[npc.type][0] = Main.npcTexture[npc.type];
            }
            for (int k = 1; k <= altTextureCount; k++)
            {
                Main.npcAltTextures[npc.type][k] = ModLoader.GetTexture(altTextures[k - 1]);
            }

            DisplayName.SetDefault(Regex.Replace(GetType().Name, "([A-Z])", " $1").Trim());
        }
Esempio n. 16
0
        internal void SetupContent()
        {
            foreach (ModItem item in items.Values)
            {
                Main.itemTexture[item.item.type] = ModLoader.GetTexture(item.texture);
                Main.itemName[item.item.type]    = item.item.name;
                EquipLoader.SetSlot(item.item);
                item.SetDefaults();
                DrawAnimation animation = item.GetAnimation();
                if (animation != null)
                {
                    Main.RegisterItemAnimation(item.item.type, animation);
                    ItemLoader.animations.Add(item.item.type);
                }
            }
            foreach (ModTile tile in tiles.Values)
            {
                Main.tileTexture[tile.Type] = ModLoader.GetTexture(tile.texture);
                TileLoader.SetDefaults(tile);
            }
            foreach (GlobalTile globalTile in globalTiles.Values)
            {
                globalTile.SetDefaults();
            }
            foreach (ModWall wall in walls.Values)
            {
                Main.wallTexture[wall.Type] = ModLoader.GetTexture(wall.texture);
                wall.SetDefaults();
            }
            foreach (GlobalWall globalWall in globalWalls.Values)
            {
                globalWall.SetDefaults();
            }
            foreach (ModProjectile projectile in projectiles.Values)
            {
                Main.projectileTexture[projectile.projectile.type] = ModLoader.GetTexture(projectile.texture);
                Main.projFrames[projectile.projectile.type]        = 1;
                projectile.SetDefaults();
                if (projectile.projectile.hostile)
                {
                    Main.projHostile[projectile.projectile.type] = true;
                }
                if (projectile.projectile.aiStyle == 7)
                {
                    Main.projHook[projectile.projectile.type] = true;
                }
            }
            foreach (ModNPC npc in npcs.Values)
            {
                Main.npcTexture[npc.npc.type] = ModLoader.GetTexture(npc.texture);
                Main.npcName[npc.npc.type]    = npc.npc.name;
                npc.SetDefaults();
                if (npc.npc.lifeMax > 32767 || npc.npc.boss)
                {
                    Main.npcLifeBytes[npc.npc.type] = 4;
                }
                else if (npc.npc.lifeMax > 127)
                {
                    Main.npcLifeBytes[npc.npc.type] = 2;
                }
                else
                {
                    Main.npcLifeBytes[npc.npc.type] = 1;
                }
            }
            foreach (ModGore gore in gores.Values)
            {
                Main.goreTexture[gore.Type] = ModLoader.GetTexture(gore.texture);
            }


            foreach (ModSound sound in sounds.Values)
            {
                Main.soundItem[sound.Type]         = ModLoader.GetSound(sound.audioFilename);
                Main.soundInstanceItem[sound.Type] = Main.soundItem[sound.Type].CreateInstance();
            }
            foreach (ModMount mount in mounts.Values)
            {
                mount.SetDefaults();
            }
        }
Esempio n. 17
0
 public Texture2D GetTexture(string name)
 {
     return(ModLoader.GetTexture(FileName(name)));
 }
Esempio n. 18
0
 public void AddFlameTexture(ModItem item, string texture)
 {
     ModLoader.GetTexture(texture);
     item.flameTexture = texture;
 }
Esempio n. 19
0
 internal void SetupContent()
 {
     foreach (ModItem item in items.Values)
     {
         Main.itemTexture[item.item.type] = ModLoader.GetTexture(item.texture);
         Main.itemName[item.item.type]    = item.item.name;
         EquipLoader.SetSlot(item.item);
         item.SetDefaults();
         DrawAnimation animation = item.GetAnimation();
         if (animation != null)
         {
             Main.RegisterItemAnimation(item.item.type, animation);
             ItemLoader.animations.Add(item.item.type);
         }
         if (item.flameTexture.Length > 0)
         {
             Main.itemFlameTexture[item.item.type] = ModLoader.GetTexture(item.flameTexture);
         }
     }
     foreach (ModDust dust in dusts.Values)
     {
         dust.SetDefaults();
     }
     foreach (ModTile tile in tiles.Values)
     {
         Main.tileTexture[tile.Type] = ModLoader.GetTexture(tile.texture);
         TileLoader.SetDefaults(tile);
     }
     foreach (GlobalTile globalTile in globalTiles.Values)
     {
         globalTile.SetDefaults();
     }
     foreach (ModWall wall in walls.Values)
     {
         Main.wallTexture[wall.Type] = ModLoader.GetTexture(wall.texture);
         wall.SetDefaults();
     }
     foreach (GlobalWall globalWall in globalWalls.Values)
     {
         globalWall.SetDefaults();
     }
     foreach (ModProjectile projectile in projectiles.Values)
     {
         Main.projectileTexture[projectile.projectile.type] = ModLoader.GetTexture(projectile.texture);
         Main.projFrames[projectile.projectile.type]        = 1;
         projectile.SetDefaults();
         if (projectile.projectile.hostile)
         {
             Main.projHostile[projectile.projectile.type] = true;
         }
         if (projectile.projectile.aiStyle == 7)
         {
             Main.projHook[projectile.projectile.type] = true;
         }
     }
     foreach (ModNPC npc in npcs.Values)
     {
         Main.npcTexture[npc.npc.type] = ModLoader.GetTexture(npc.texture);
         Main.npcName[npc.npc.type]    = npc.npc.name;
         npc.SetDefaults();
         if (npc.npc.lifeMax > 32767 || npc.npc.boss)
         {
             Main.npcLifeBytes[npc.npc.type] = 4;
         }
         else if (npc.npc.lifeMax > 127)
         {
             Main.npcLifeBytes[npc.npc.type] = 2;
         }
         else
         {
             Main.npcLifeBytes[npc.npc.type] = 1;
         }
     }
     foreach (ModMountData modMountData in mountDatas.Values)
     {
         Mount.MountData temp = modMountData.mountData;
         temp.modMountData = modMountData;
         MountLoader.SetupMount(modMountData.mountData);
         Mount.mounts[modMountData.Type] = temp;
     }
     foreach (ModBuff buff in buffs.Values)
     {
         Main.buffTexture[buff.Type] = ModLoader.GetTexture(buff.texture);
         Main.buffName[buff.Type]    = buff.Name;
         buff.SetDefaults();
     }
 }
Esempio n. 20
0
 internal static void ResizeAndFillArrays()
 {
     Array.Resize(ref Main.armorHeadLoaded, nextEquip[EquipType.Head]);
     Array.Resize(ref Main.armorBodyLoaded, nextEquip[EquipType.Body]);
     Array.Resize(ref Main.armorLegsLoaded, nextEquip[EquipType.Legs]);
     Array.Resize(ref Main.accHandsOnLoaded, nextEquip[EquipType.HandsOn]);
     Array.Resize(ref Main.accHandsOffLoaded, nextEquip[EquipType.HandsOff]);
     Array.Resize(ref Main.accBackLoaded, nextEquip[EquipType.Back]);
     Array.Resize(ref Main.accFrontLoaded, nextEquip[EquipType.Front]);
     Array.Resize(ref Main.accShoesLoaded, nextEquip[EquipType.Shoes]);
     Array.Resize(ref Main.accWaistLoaded, nextEquip[EquipType.Waist]);
     Array.Resize(ref Main.wingsLoaded, nextEquip[EquipType.Wings]);
     Array.Resize(ref Main.accShieldLoaded, nextEquip[EquipType.Shield]);
     Array.Resize(ref Main.accNeckLoaded, nextEquip[EquipType.Neck]);
     Array.Resize(ref Main.accFaceLoaded, nextEquip[EquipType.Face]);
     Array.Resize(ref Main.accballoonLoaded, nextEquip[EquipType.Balloon]);
     foreach (EquipType type in Enum.GetValues(typeof(EquipType)))
     {
         for (int k = GetNumVanilla(type); k < nextEquip[type]; k++)
         {
             GetLoadedArray(type)[k] = true;
         }
     }
     Array.Resize(ref Main.armorHeadTexture, nextEquip[EquipType.Head]);
     Array.Resize(ref Main.armorBodyTexture, nextEquip[EquipType.Body]);
     Array.Resize(ref Main.femaleBodyTexture, nextEquip[EquipType.Body]);
     Array.Resize(ref Main.armorArmTexture, nextEquip[EquipType.Body]);
     Array.Resize(ref Main.armorLegTexture, nextEquip[EquipType.Legs]);
     Array.Resize(ref Main.accHandsOnTexture, nextEquip[EquipType.HandsOn]);
     Array.Resize(ref Main.accHandsOffTexture, nextEquip[EquipType.HandsOff]);
     Array.Resize(ref Main.accBackTexture, nextEquip[EquipType.Back]);
     Array.Resize(ref Main.accFrontTexture, nextEquip[EquipType.Front]);
     Array.Resize(ref Main.accShoesTexture, nextEquip[EquipType.Shoes]);
     Array.Resize(ref Main.accWaistTexture, nextEquip[EquipType.Waist]);
     Array.Resize(ref Main.wingsTexture, nextEquip[EquipType.Wings]);
     Array.Resize(ref Main.accShieldTexture, nextEquip[EquipType.Shield]);
     Array.Resize(ref Main.accNeckTexture, nextEquip[EquipType.Neck]);
     Array.Resize(ref Main.accFaceTexture, nextEquip[EquipType.Face]);
     Array.Resize(ref Main.accBalloonTexture, nextEquip[EquipType.Balloon]);
     foreach (EquipType type in Enum.GetValues(typeof(EquipType)))
     {
         foreach (int slot in equipTextures[type].Keys)
         {
             EquipTexture texture = GetEquipTexture(type, slot);
             GetTextureArray(type)[slot] = ModLoader.GetTexture(texture.Texture);
             if (type == EquipType.Body)
             {
                 if (femaleTextures.ContainsKey(slot))
                 {
                     Main.femaleBodyTexture[slot] = ModLoader.GetTexture(femaleTextures[slot]);
                 }
                 else
                 {
                     Main.femaleBodyTexture[slot] = Main.armorBodyTexture[slot];
                 }
                 Main.armorArmTexture[slot] = ModLoader.GetTexture(armTextures[slot]);
             }
         }
     }
     Array.Resize(ref Item.headType, nextEquip[EquipType.Head]);
     foreach (int slot in slotToId[EquipType.Head].Keys)
     {
         Item.headType[slot] = slotToId[EquipType.Head][slot];
     }
     Array.Resize(ref Item.bodyType, nextEquip[EquipType.Body]);
     foreach (int slot in slotToId[EquipType.Body].Keys)
     {
         Item.bodyType[slot] = slotToId[EquipType.Body][slot];
     }
     Array.Resize(ref Item.legType, nextEquip[EquipType.Legs]);
     foreach (int slot in slotToId[EquipType.Legs].Keys)
     {
         Item.legType[slot] = slotToId[EquipType.Legs][slot];
     }
 }
Esempio n. 21
0
        public void AddMount(string name, ModMountData mount, string texture,
                             IDictionary <MountTextureType, string> extraTextures = null)
        {
            int id;

            if (Mount.mounts == null || Mount.mounts.Length == MountID.Count)
            {
                Mount.Initialize();
            }
            id                         = MountLoader.ReserveMountID();
            mount.Name                 = name;
            mount.Type                 = id;
            mountDatas[name]           = mount;
            MountLoader.mountDatas[id] = mount;
            mount.texture              = texture;
            mount.mod                  = this;
            if (extraTextures != null)
            {
                foreach (MountTextureType textureType in Enum.GetValues(typeof(MountTextureType)))
                {
                    if (extraTextures.ContainsKey(textureType) && ModLoader.TextureExists(extraTextures[textureType]))
                    {
                        Texture2D extraTexture = ModLoader.GetTexture(extraTextures[textureType]);
                        switch (textureType)
                        {
                        case MountTextureType.Back:
                            mount.mountData.backTexture = extraTexture;
                            break;

                        case MountTextureType.BackGlow:
                            mount.mountData.backTextureGlow = extraTexture;
                            break;

                        case MountTextureType.BackExtra:
                            mount.mountData.backTextureExtra = extraTexture;
                            break;

                        case MountTextureType.BackExtraGlow:
                            mount.mountData.backTextureExtraGlow = extraTexture;
                            break;

                        case MountTextureType.Front:
                            mount.mountData.frontTexture = extraTexture;
                            break;

                        case MountTextureType.FrontGlow:
                            mount.mountData.frontTextureGlow = extraTexture;
                            break;

                        case MountTextureType.FrontExtra:
                            mount.mountData.frontTextureExtra = extraTexture;
                            break;

                        case MountTextureType.FrontExtraGlow:
                            mount.mountData.frontTextureExtraGlow = extraTexture;
                            break;
                        }
                    }
                }
            }
        }