-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* promoted v0 to v1 * fixed incorrect naming of State::OnUpdate to State::OnTick (copies game) * renamed GameStates::Add to AddHook and modified comments * split GameState hooks to before/after hooks for more granular control
- Loading branch information
Showing
27 changed files
with
466 additions
and
440 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#pragma once | ||
|
||
#include <RED4ext/Api/v0/FileVer.hpp> | ||
#include <RED4ext/Api/v1/FileVer.hpp> | ||
|
||
/** | ||
* @brief Creates a file version using the latest version info type. | ||
*/ | ||
#define RED4EXT_FILEVER(major, minor, build, revision) RED4EXT_V0_FILEVER(major, minor, build, revision) | ||
#define RED4EXT_FILEVER(major, minor, build, revision) RED4EXT_V1_FILEVER(major, minor, build, revision) |
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,37 +1,37 @@ | ||
#pragma once | ||
|
||
#include <RED4ext/Api/v0/Runtime.hpp> | ||
#include <RED4ext/Api/v1/Runtime.hpp> | ||
|
||
#define RED4EXT_RUNTIME_1_50 RED4EXT_V0_RUNTIME_1_50 | ||
#define RED4EXT_RUNTIME_1_50_HOTFIX_1 RED4EXT_V0_RUNTIME_1_50_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_50_HOTFIX_2 RED4EXT_V0_RUNTIME_1_50_HOTFIX_2 | ||
#define RED4EXT_RUNTIME_1_52 RED4EXT_V0_RUNTIME_1_52 | ||
#define RED4EXT_RUNTIME_1_52_HOTFIX_1 RED4EXT_V0_RUNTIME_1_52_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_60 RED4EXT_V0_RUNTIME_1_60 | ||
#define RED4EXT_RUNTIME_1_61 RED4EXT_V0_RUNTIME_1_61 | ||
#define RED4EXT_RUNTIME_1_61_HOTFIX_1 RED4EXT_V0_RUNTIME_1_61_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_62 RED4EXT_V0_RUNTIME_1_62 | ||
#define RED4EXT_RUNTIME_1_62_HOTFIX_1 RED4EXT_V0_RUNTIME_1_62_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_63 RED4EXT_V0_RUNTIME_1_63 | ||
#define RED4EXT_RUNTIME_1_63_HOTFIX_1 RED4EXT_V0_RUNTIME_1_63_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_2_00 RED4EXT_V0_RUNTIME_2_00 | ||
#define RED4EXT_RUNTIME_2_01 RED4EXT_V0_RUNTIME_2_01 | ||
#define RED4EXT_RUNTIME_2_02 RED4EXT_V0_RUNTIME_2_02 | ||
#define RED4EXT_RUNTIME_2_10 RED4EXT_V0_RUNTIME_2_10 | ||
#define RED4EXT_RUNTIME_2_11 RED4EXT_V0_RUNTIME_2_11 | ||
#define RED4EXT_RUNTIME_2_12 RED4EXT_V0_RUNTIME_2_12 | ||
#define RED4EXT_RUNTIME_2_12_HOTFIX_1 RED4EXT_V0_RUNTIME_2_12_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_2_13 RED4EXT_V0_RUNTIME_2_13 | ||
#define RED4EXT_RUNTIME_2_20 RED4EXT_V0_RUNTIME_2_20 | ||
#define RED4EXT_RUNTIME_2_21 RED4EXT_V0_RUNTIME_2_21 | ||
#define RED4EXT_RUNTIME_1_50 RED4EXT_V1_RUNTIME_1_50 | ||
#define RED4EXT_RUNTIME_1_50_HOTFIX_1 RED4EXT_V1_RUNTIME_1_50_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_50_HOTFIX_2 RED4EXT_V1_RUNTIME_1_50_HOTFIX_2 | ||
#define RED4EXT_RUNTIME_1_52 RED4EXT_V1_RUNTIME_1_52 | ||
#define RED4EXT_RUNTIME_1_52_HOTFIX_1 RED4EXT_V1_RUNTIME_1_52_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_60 RED4EXT_V1_RUNTIME_1_60 | ||
#define RED4EXT_RUNTIME_1_61 RED4EXT_V1_RUNTIME_1_61 | ||
#define RED4EXT_RUNTIME_1_61_HOTFIX_1 RED4EXT_V1_RUNTIME_1_61_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_62 RED4EXT_V1_RUNTIME_1_62 | ||
#define RED4EXT_RUNTIME_1_62_HOTFIX_1 RED4EXT_V1_RUNTIME_1_62_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_1_63 RED4EXT_V1_RUNTIME_1_63 | ||
#define RED4EXT_RUNTIME_1_63_HOTFIX_1 RED4EXT_V1_RUNTIME_1_63_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_2_00 RED4EXT_V1_RUNTIME_2_00 | ||
#define RED4EXT_RUNTIME_2_01 RED4EXT_V1_RUNTIME_2_01 | ||
#define RED4EXT_RUNTIME_2_02 RED4EXT_V1_RUNTIME_2_02 | ||
#define RED4EXT_RUNTIME_2_10 RED4EXT_V1_RUNTIME_2_10 | ||
#define RED4EXT_RUNTIME_2_11 RED4EXT_V1_RUNTIME_2_11 | ||
#define RED4EXT_RUNTIME_2_12 RED4EXT_V1_RUNTIME_2_12 | ||
#define RED4EXT_RUNTIME_2_12_HOTFIX_1 RED4EXT_V1_RUNTIME_2_12_HOTFIX_1 | ||
#define RED4EXT_RUNTIME_2_13 RED4EXT_V1_RUNTIME_2_13 | ||
#define RED4EXT_RUNTIME_2_20 RED4EXT_V1_RUNTIME_2_20 | ||
#define RED4EXT_RUNTIME_2_21 RED4EXT_V1_RUNTIME_2_21 | ||
|
||
/** | ||
* @brief Supports all game versions. | ||
* @note Only use this if you do not use RED4ext.SDK library, but you want to use RED4ext as a loader only. | ||
*/ | ||
#define RED4EXT_RUNTIME_INDEPENDENT RED4EXT_V0_RUNTIME_INDEPENDENT | ||
#define RED4EXT_RUNTIME_INDEPENDENT RED4EXT_V1_RUNTIME_INDEPENDENT | ||
|
||
/* | ||
* @brief The latest game version. | ||
*/ | ||
#define RED4EXT_RUNTIME_LATEST RED4EXT_V0_RUNTIME_LATEST | ||
#define RED4EXT_RUNTIME_LATEST RED4EXT_V1_RUNTIME_LATEST |
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,14 +1,14 @@ | ||
#pragma once | ||
|
||
#include <RED4ext/Api/v0/SemVer.hpp> | ||
#include <RED4ext/Api/v1/SemVer.hpp> | ||
|
||
/** | ||
* @brief Creates a semantic version using the latest version info type. | ||
*/ | ||
#define RED4EXT_SEMVER_EX(major, minor, patch, prereleaseType, prereleaseNumber) \ | ||
RED4EXT_V0_SEMVER_EX(major, minor, patch, prereleaseType, prereleaseNumber) | ||
RED4EXT_V1_SEMVER_EX(major, minor, patch, prereleaseType, prereleaseNumber) | ||
|
||
/** | ||
* @brief Creates a semantic version using the latest version info type. | ||
*/ | ||
#define RED4EXT_SEMVER(major, minor, patch) RED4EXT_V0_SEMVER(major, minor, patch) | ||
#define RED4EXT_SEMVER(major, minor, patch) RED4EXT_V1_SEMVER(major, minor, patch) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.