forked from Ares-Developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 25
/
CommandClass.h
34 lines (26 loc) · 1.14 KB
/
CommandClass.h
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
#pragma once
#include <GeneralDefinitions.h>
#include <ArrayClasses.h>
#include <Helpers/CompileTime.h>
class NOVTABLE CommandClass
{
public:
// static
static constexpr constant_ptr<DynamicVectorClass<CommandClass*>, 0x87F658u> const Array{};
//CommandClass
virtual ~CommandClass() = default;
virtual const char* GetName() const = 0;
virtual const wchar_t* GetUIName() const = 0;
virtual const wchar_t* GetUICategory() const = 0;
virtual const wchar_t* GetUIDescription() const = 0;
virtual bool PreventCombinationOverride(WWKey eInput) const // Do we need to check extra value like SHIFT?
{ return false; } // If this value is true, the game won't process
// Combination keys written here
// e.g. To ignore SHIFT + this key
// return eInput & WWKey::Shift;
virtual bool ExtraTriggerCondition(WWKey eInput) const // Only with this key set to true will the game call the Execute
{ return !(eInput & WWKey::Release); }
virtual bool CheckLoop55E020(WWKey eInput) const // Stupid loop, I don't know what's it used for
{ return false; }
virtual void Execute(WWKey eInput) const = 0;
};