Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 public static IEnumerable <Platform> Enumerate(this PlatformBitwise platforms)
 {
     return(new PlatformEnumerable(platforms));
 }
Ejemplo n.º 3
0
 public PlatformEnumerable(PlatformBitwise platforms)
 {
     this.platforms = platforms;
 }
Ejemplo n.º 4
0
        /// <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;
        }