public AllENTDs(IList <byte> entd1, IList <byte> entd2, IList <byte> entd3, IList <byte> entd4) { ENTDs = new ENTD[4]; ENTDs[0] = new ENTD( 0, entd1, new ENTD(0, PSPResources.ENTD1, null)); ENTDs[1] = new ENTD( 0x80, entd2, new ENTD(0x80, PSPResources.ENTD2, null)); ENTDs[2] = new ENTD( 0x100, entd3, new ENTD(0x100, PSPResources.ENTD3, null)); ENTDs[3] = new ENTD( 0x180, entd4, new ENTD(0x180, PSPResources.ENTD4, null)); Events = new List <Event>(0x200); foreach (ENTD e in ENTDs) { Events.AddRange(e.Events); } }
public AllENTDs(IList <byte> entd1, IList <byte> entd2, IList <byte> entd3, IList <byte> entd4, IList <byte> defaultEntd1, IList <byte> defaultEntd2, IList <byte> defaultEntd3, IList <byte> defaultEntd4, Context context) { ENTDs = new ENTD[4]; ENTDs[0] = new ENTD( 0, entd1, new ENTD(0, defaultEntd1 ?? PSPResources.Binaries.ENTD1, null, context), context); ENTDs[1] = new ENTD( 0x80, entd2, new ENTD(0x80, defaultEntd2 ?? PSPResources.Binaries.ENTD2, null, context), context); ENTDs[2] = new ENTD( 0x100, entd3, new ENTD(0x100, defaultEntd3 ?? PSPResources.Binaries.ENTD3, null, context), context); ENTDs[3] = new ENTD( 0x180, entd4, new ENTD(0x180, defaultEntd4 ?? PSPResources.Binaries.ENTD4, null, context), context); Events = new List <Event>(0x200); foreach (ENTD e in ENTDs) { Events.AddRange(e.Events); } }
public ENTD(int start, IList <byte> bytes, ENTD defaults) { Default = defaults; Events = new Event[0x80]; for (int i = 0; i < 0x80; i++) { Events[i] = new Event( i + start, bytes.Sub(i * 16 * 40, (i + 1) * 16 * 40 - 1), defaults == null ? null : defaults.Events[i]); } }
public ENTD( int start, IList<byte> bytes, ENTD defaults ) { Default = defaults; Events = new Event[0x80]; for( int i = 0; i < 0x80; i++ ) { Events[i] = new Event( i + start, bytes.Sub( i * 16 * 40, (i + 1) * 16 * 40 - 1 ), defaults == null ? null : defaults.Events[i] ); } }
public AllENTDs( IList<byte> entd1, IList<byte> entd2, IList<byte> entd3, IList<byte> entd4 ) { ENTDs = new ENTD[4]; ENTDs[0] = new ENTD( 0, entd1, new ENTD( 0, PSPResources.ENTD1, null ) ); ENTDs[1] = new ENTD( 0x80, entd2, new ENTD( 0x80, PSPResources.ENTD2, null ) ); ENTDs[2] = new ENTD( 0x100, entd3, new ENTD( 0x100, PSPResources.ENTD3, null ) ); ENTDs[3] = new ENTD( 0x180, entd4, new ENTD( 0x180, PSPResources.ENTD4, null ) ); Events = new List<Event>( 0x200 ); foreach( ENTD e in ENTDs ) { Events.AddRange( e.Events ); } }