Esempio n. 1
0
            public static ModelBase Create(RS5DirectoryEntry dirent)
            {
                RS5Chunk chunk = dirent.Data;

                if (dirent.Type == "IMDL")
                {
                    return(ImmobileModel.Create(chunk));
                }
                else if (dirent.Type == "AMDL")
                {
                    return(AnimatedModel.Create(chunk));
                }
                else
                {
                    throw new ArgumentException("Entry does not represent a model");
                }
            }