/// <summary> /// Creates a new instance from a list of integer parameters /// </summary> /// <param name="intParams">All the parameters</param> /// <param name="text">The source code</param> /// <param name="configurations">The list of configurations</param> public Snip( int[] intParams, string text, IList <Configuration> configurations) { this.programID = intParams[0]; this.platforms = (PlatformBitwise)intParams[1]; this.unknown1 = intParams[2]; // This is usually 3 this.target = intParams[3]; this.unknown2 = intParams[4]; // This is usually 0 this.hash1 = intParams[5]; // These three change all the time this.hash2 = intParams[6]; // my guess is they're used to detect changes in the code this.hash3 = intParams[7]; this.text = text; this.configurations = configurations; }
public static IEnumerable <Platform> Enumerate(this PlatformBitwise platforms) { return(new PlatformEnumerable(platforms)); }
public PlatformEnumerable(PlatformBitwise platforms) { this.platforms = platforms; }
/// <summary> /// Creates a new instance from a list of integer parameters /// </summary> /// <param name="intParams">All the parameters</param> /// <param name="text">The source code</param> /// <param name="configurations">The list of configurations</param> public Snip( int[] intParams, string text, IList<Configuration> configurations) { this.programID = intParams[0]; this.platforms = (PlatformBitwise)intParams[1]; this.unknown1 = intParams[2]; // This is usually 3 this.target = intParams[3]; this.unknown2 = intParams[4]; // This is usually 0 this.hash1 = intParams[5]; // These three change all the time this.hash2 = intParams[6]; // my guess is they're used to detect changes in the code this.hash3 = intParams[7]; this.text = text; this.configurations = configurations; }