public M2File(string fileName) { Bones = new M2AnimationBone[0]; UvAnimations = new M2UVAnimation[0]; ColorAnimations = new M2TexColorAnimation[0]; Transparencies = new M2AlphaAnimation[0]; GlobalSequences = new uint[0]; Animations = new AnimationEntry[0]; AnimLookup = new short[0]; mModelName = string.Empty; mFileName = fileName; mRootPath = Path.GetDirectoryName(mFileName); }
public M2File(string fileName) : base(fileName) { Bones = new M2AnimationBone[0]; UvAnimations = new M2UVAnimation[0]; ColorAnimations = new M2TexColorAnimation[0]; Transparencies = new M2AlphaAnimation[0]; GlobalSequences = new uint[0]; Animations = new AnimationEntry[0]; AnimationLookup = new short[0]; mModelName = string.Empty; mFileName = fileName; mDirectoryParts = Path.GetDirectoryName(fileName).Split(Path.DirectorySeparatorChar); }