Esempio n. 1
0
        public static TType LoadObject <TType>(Stream input,
                                               bool isClient,
                                               bool isServer,
                                               Func <int, string> getFileNameFromIndex)
            where TType : Serialization.IStructure, new()
        {
            var reader = new BlobDataReader(input, isClient, isServer, getFileNameFromIndex);

            return(reader.ReadValueStructure <TType>(false, null));
        }
Esempio n. 2
0
        public static List <TType> LoadResource <TType>(Stream input,
                                                        bool isClient,
                                                        bool isServer,
                                                        Func <int, string> getFileNameFromIndex)
            where TType : Serialization.IStructure, new()
        {
            var reader = new BlobDataReader(input, isClient, isServer, getFileNameFromIndex);
            var loader = reader.ReadValueStructure <ResourceLoader <TType> >(false, null);

            return(loader.List);
        }