@Override
    public void read(DataReader in) throws IOException {
        int numBaseClasses = in.readInt();
        for (int i = 0; i < numBaseClasses; i++) {
            int classID = in.readInt();

            TypeRoot baseClass = new TypeRoot();
            baseClass.classID(classID);

            Node<T> node = new Node<>();
            readNode(in, node);
            baseClass.nodes(node);

            typeMap.put(classID, baseClass);
        }

        embedded = numBaseClasses > 0;
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-core/src/main/java/info/ata4/junity/serialize/typetree/TypeTreeV1.java