public static VBSI FromMLOD(MLOD mlod, GenericRCOLResource.GenericRCOLResource container) { VBSI vbsi = new VBSI(null); foreach (MLOD.Mesh mesh in mlod.Meshes) { VRTF vrtf = (VRTF)GenericRCOLResource.GenericRCOLResource.ChunkReference.GetBlock(container, mesh.VertexFormatIndex); vbsi.Segments.Add(SegmentInfo.FromMesh(mesh, vrtf)); } return(vbsi); }
public VBSI(EventHandler handler, VBSI basis) : this(handler, new SegmentList(handler, basis.Segments)) { }