public static ComponentData Load(OrigComponent c) { var result = new ComponentData( c.SizeInBlocks.Width, c.SizeInBlocks.Height, c.Index ); for (int y = 0; y < result.HeightInBlocks; y++) { for (int x = 0; x < result.WidthInBlocks; x++) { short[] data = c.GetBlockReference(x, y).ToArray(); result.MakeBlock(data, y, x); } } return(result); }