Refactor: split reading memory and updating rabiribidisplay
This commit is contained in:
parent
795dee32f6
commit
8e196a65fc
@ -40,6 +40,15 @@ namespace rabi_splitter_WPF
|
|||||||
// Snapshot Game Memory
|
// Snapshot Game Memory
|
||||||
snapshot = new MemorySnapshot(process, mainContext.veridx);
|
snapshot = new MemorySnapshot(process, mainContext.veridx);
|
||||||
|
|
||||||
|
Update();
|
||||||
|
UpdateDebugArea(process);
|
||||||
|
UpdateEntityData(process);
|
||||||
|
|
||||||
|
prevSnapshot = snapshot;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
#region Game State Machine
|
#region Game State Machine
|
||||||
|
|
||||||
if (gameState.CurrentActivityIs(GameActivity.STARTING)) {
|
if (gameState.CurrentActivityIs(GameActivity.STARTING)) {
|
||||||
@ -161,11 +170,6 @@ namespace rabi_splitter_WPF
|
|||||||
|
|
||||||
mainContext.Text16 = bosstext;
|
mainContext.Text16 = bosstext;
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateDebugArea(process);
|
|
||||||
UpdateEntityData(process);
|
|
||||||
|
|
||||||
prevSnapshot = snapshot;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void StartNewGame()
|
private void StartNewGame()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user