public TextureNode ReadTextureNode() { // Get the type: int type = (int)ReadCompressed(); if (type == 0) { return(null); } // Get the node meta: TextureNodeMeta meta = TextureNodes.Get(type); // Instance it: TextureNode instance = meta.GetInstance(); // Load now: instance.Read(this); return(instance); }