/// <summary> /// Reads Gfx Surfaces /// </summary> public static GfxSurface[] ReadGfxSufaces(ProcessReader reader, long address, int count) { // Preallocate short array GfxSurface[] surfaces = new GfxSurface[count]; // Loop number of indices we have for (int i = 0; i < count; i++) { // Add it surfaces[i] = reader.ReadStruct <GfxSurface>(address + i * 52); } // Done return(surfaces); }
public static GfxSurface[] ReadGfxSufaces(int address, int count) { // Preallocate short array var surfaces = new GfxSurface[count]; // Loop number of indices we have for (var i = 0; i < count; i++) { //add it var _gfxDSurface = (GfxSurface)((uint)address + i * 24); surfaces[i] = _gfxDSurface; } // Done return(surfaces); }