Example #1
0
        public void GetFileType()
        {
            var child = GetFirstChild();

            if (Text == "Models" || child is FMDL)
            {
                Type = BRESGroupType.Models;
            }
            if (Text == "Textures" || child is FTEX)
            {
                Type = BRESGroupType.Textures;
            }
            if (Text == "Skeleton Animations" || child is FSKA)
            {
                Type = BRESGroupType.SkeletalAnim;
            }
            if (Text == "Material Animations" || child is FMAA)
            {
                Type = BRESGroupType.MaterialAnim;
            }
            if (Text == "Shader Param Animations" || child is FSHU)
            {
                Type = BRESGroupType.ShaderParamAnim;
            }
            if (Text == "Color Animations" || child is FSHU)
            {
                Type = BRESGroupType.ColorAnim;
            }
            if (Text == "Texture Srt Animations" || child is FSHU)
            {
                Type = BRESGroupType.TexSrtAnim;
            }
            if (Text == "Texture Pattern Animations" || child is FTXP)
            {
                Type = BRESGroupType.TexPatAnim;
            }
            if (Text == "Bone Visibilty Animations" || child is FVIS)
            {
                Type = BRESGroupType.BoneVisAnim;
            }
            if (Text == "Material Visibilty Animations" || child is FVIS)
            {
                Type = BRESGroupType.MatVisAnim;
            }
            if (Text == "Embedded Files" || child is ExternalFileData)
            {
                Type = BRESGroupType.Embedded;
            }
        }
Example #2
0
 public void GetFileType()
 {
     if (_name == "Textures(NW4R)" || Children[0] is TEX0Node)
     {
         Type = BRESGroupType.Textures;
     }
     if (_name == "Palettes(NW4R)" || Children[0] is PLT0Node)
     {
         Type = BRESGroupType.Palettes;
     }
     if (_name == "3DModels(NW4R)" || Children[0] is MDL0Node)
     {
         Type = BRESGroupType.Models;
     }
     if (_name == "AnmChr(NW4R)" || Children[0] is CHR0Node)
     {
         Type = BRESGroupType.CHR0;
     }
     if (_name == "AnmClr(NW4R)" || Children[0] is CLR0Node)
     {
         Type = BRESGroupType.CLR0;
     }
     if (_name == "AnmTexSrt(NW4R)" || Children[0] is SRT0Node)
     {
         Type = BRESGroupType.SRT0;
     }
     if (_name == "AnmShp(NW4R)" || Children[0] is SHP0Node)
     {
         Type = BRESGroupType.SHP0;
     }
     if (_name == "AnmVis(NW4R)" || Children[0] is VIS0Node)
     {
         Type = BRESGroupType.VIS0;
     }
     if (_name == "AnmScn(NW4R)" || Children[0] is SCN0Node)
     {
         Type = BRESGroupType.SCN0;
     }
     if (_name == "AnmPat(NW4R)" || Children[0] is PAT0Node)
     {
         Type = BRESGroupType.PAT0;
     }
     if (_name == "External" || Children[0] is RASDNode)
     {
         Type = BRESGroupType.External;
     }
 }
Example #3
0
 public BRESGroupNode(string name, BRESGroupType type) : base()
 {
     _name = name; Type = type;
 }
Example #4
0
 public BFRESGroupNode(BRESGroupType type, bool isWiiU = false) : base()
 {
     Type = type; SetNameByType(); IsWiiU = isWiiU;
 }
Example #5
0
 public BFRESGroupNode(BRESGroupType type) : base()
 {
     Type = type; SetNameByType();
 }