Exemplo n.º 1
0
 /// <summary>Constructor for #CheatTypeInfo objects which hold information about cheats of type #ECheatType.evCheatTypeCodeCave.</summary>
 /// <param name="codeCave">The code cave to be associated with the cheat.</param>
 /// <param name="originalInstructionBytes">The bytes that comprise the original instruction that is in the game's memory.
 /// They will be used when the trainer needs to deactivate the cheat.</param>
 public CheatTypeInfo(ECodeCave codeCave, params byte[] originalInstructionBytes)
     : this(ECheatType.evCheatTypeCodeCave, codeCave, originalInstructionBytes)
 {
 }
Exemplo n.º 2
0
 /// <summary>The class' main constructor. All other constructors of this class are redirected to this one.</summary>
 /// <param name="deducedCheatType">The type of the cheat, which is deduced by the public constructor used to instantiate
 /// the #CheatTypeInfo object.</param>
 /// <param name="codeCave">The code cave to be associated with the cheat. This code cave will only have any meaning to
 /// the trainer if the cheat is of type #ECheatType.evCheatTypeCodeCave.</param>
 /// <param name="originalInstructionBytes">The bytes that comprise the original instruction that is in the game's memory.
 /// They will be used when the trainer needs to deactivate the cheat.</param>
 private CheatTypeInfo(ECheatType deducedCheatType, ECodeCave codeCave, params byte[] originalInstructionBytes)
 {
     CheatType = deducedCheatType;
     CodeCave  = codeCave;
     OriginalInstructionBytes = originalInstructionBytes;
 }