-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
173 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
namespace HintMachine.Games | ||
{ | ||
public class PacManChampionshipEditionDXConnector : IGameConnector | ||
{ | ||
private readonly HintQuestCumulative _scoreQuest = new HintQuestCumulative | ||
{ | ||
Name = "Cumulative Score", | ||
GoalValue = 400000, | ||
}; | ||
|
||
private ProcessRamWatcher _ram = null; | ||
|
||
public PacManChampionshipEditionDXConnector() | ||
{ | ||
Name = "PAC-MAN Championship Edition DX+"; | ||
Description = "It's time to gear up! Get ready for more ghost chain gobbling and frantic action in PAC-MAN CE-DX+!"; | ||
SupportedVersions = "Steam"; | ||
Author = "Serpent.AI"; | ||
|
||
Quests.Add(_scoreQuest); | ||
} | ||
|
||
public override bool Connect() | ||
{ | ||
_ram = new ProcessRamWatcher("PAC-MAN"); | ||
return _ram.TryConnect(); | ||
} | ||
|
||
public override void Disconnect() | ||
{ | ||
_ram = null; | ||
} | ||
|
||
public override bool Poll() | ||
{ | ||
_scoreQuest.UpdateValue(_ram.ReadUint32(_ram.BaseAddress + 0x33CA14)); | ||
return true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters