Esempio n. 1
0
        private ItemSpec LoadSpec(string fileName)
        {
            var stream         = new FileStream(fileName, FileMode.Open);
            var specId         = stream.ReadInt();
            var specProperties = stream.ReadTraits <ItemSpecProperty>();
            var spec           = new ItemSpec(specId);

            spec.SetProperties(specProperties);

            stream.Close();
            stream.Dispose();

            return(spec);
        }