-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
3 changed files
with
43 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
#pragma once | ||
|
||
namespace sdk { | ||
class IConsoleManager; | ||
struct IConsoleObject; | ||
|
||
IConsoleManager* get_console_manager(); | ||
struct ConsoleObjectElement { | ||
wchar_t* key; | ||
int32_t unk[2]; | ||
IConsoleObject* value; | ||
int32_t unk2[2]; | ||
}; | ||
|
||
struct ConsoleObjectArray { | ||
ConsoleObjectElement* elements; | ||
uint32_t count; | ||
uint32_t capacity; | ||
|
||
// begin end | ||
ConsoleObjectElement* begin() { | ||
return elements; | ||
} | ||
|
||
ConsoleObjectElement* end() { | ||
return elements + count; | ||
} | ||
}; | ||
|
||
class IConsoleManager { | ||
public: | ||
virtual ~IConsoleManager() {} | ||
}; | ||
|
||
class FConsoleManager : public IConsoleManager { | ||
public: | ||
static FConsoleManager* get(); | ||
|
||
ConsoleObjectArray& get_console_objects() { | ||
return m_console_objects; | ||
} | ||
|
||
private: | ||
ConsoleObjectArray m_console_objects; | ||
}; | ||
} |