示例#1
0
        public static GomType Load(GomBinaryReader reader, bool fromGom = true)
        {
            GomTypeId typeId = (GomTypeId)reader.ReadByte();

            GomTypeLoaders.IGomTypeLoader gomTypeLoader;
            if (!gomTypeLoaderMap.TryGetValue(typeId, out gomTypeLoader))
            {
                throw new InvalidOperationException(String.Format("Unknown GomType with Type ID {0}", (byte)typeId));
            }

            return(gomTypeLoader.Load(reader, fromGom));
        }
示例#2
0
        //public UInt64 ReferenceId { get; private set; }
        //public GomObject ReferenceObject { get; private set; }

        //public GomType ContainedType { get; private set; }
        //public GomType MappedType { get; private set; }

        protected GomType(GomTypeId typeId)
        {
            this.TypeId = typeId;
        }