forked from jackalstomper/AutomataSpeedrunMod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutomataMod.hpp
More file actions
43 lines (33 loc) · 1.13 KB
/
AutomataMod.hpp
File metadata and controls
43 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include "FactoryWrapper.hpp"
#include "InventoryManager.hpp"
#include "ChipManager.hpp"
#include "Util.hpp"
#include <cstdint>
namespace AutomataMod {
class ModChecker {
InventoryManager m_inventoryManager;
ChipManager m_chipManager;
Volume m_mackerelVolume;
char* m_currentPhase;
uint32_t* m_playerNameSet;
uint64_t* m_playerLocationPtr;
uint32_t* m_isWorldLoaded;
uint32_t* m_isLoading;
// Unit data is a collection of 8 bit bitmasks that indicate if a player has killed a unit or not.
// Use these flags to determine if player has killed a small flyer in the correct phase to give taunt chips
// buffer size: 24 bytes
uint8_t* m_unitDataFlags;
bool m_inventoryModded;
bool m_fishAdded;
bool m_dvdModeEnabled;
bool m_tauntChipsAdded;
void modifyChipInventory();
void addInventory(uint32_t itemId, uint32_t quantity);
void setVc3Inventory();
bool adjustFishInventory(bool shouldDeleteFish);
public:
ModChecker(uint64_t processRamStart);
void checkStuff(CComPtr<DxWrappers::DXGIFactoryWrapper> factoryWrapper);
};
} // namespace AutomataMod