-
Notifications
You must be signed in to change notification settings - Fork 51
DebugPlayerSwitch #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
DebugPlayerSwitch #115
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
62ae340
DebugPlayerSwitch
ReimousTH af75753
Style
ReimousTH de8fbf5
Correction
ReimousTH dbd804e
Merge branch 'main' into DebugPlayerSwitch
ReimousTH 90cbec4
Update Marathon.toml
ReimousTH 45a177d
Update vector.h
ReimousTH 9dac581
Update player_patches.cpp
ReimousTH 30823af
Clean-up
hyperbx 802ed8c
Clean-up 2
hyperbx f898dc9
Select Map | B Switch Zock State
ReimousTH 6e22e94
Merge branch 'main' into DebugPlayerSwitch
ReimousTH 558d777
Update Vector.h
ReimousTH c2d35a8
More
ReimousTH 4522a8b
Woops
ReimousTH af1e9e6
WoopsX2
ReimousTH f31e06d
Woops3
ReimousTH 246a528
Woops4
ReimousTH e2dbd85
Clean-up
hyperbx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
| #include <Sonicteam/SoX/Physics/Havok/PhantomHavok.h> | ||
|
|
||
| namespace Sonicteam | ||
| { | ||
| class MyPhantom : public SoX::Physics::Havok::PhantomHavok {}; | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
|
|
||
| namespace Sonicteam::Player | ||
| { | ||
| class IExportExternalFlag | ||
| { | ||
| public: | ||
| xpointer<void> m_pVftable; | ||
| }; | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
| #include <Sonicteam/Player/IPlugIn.h> | ||
|
|
||
| namespace Sonicteam::Player | ||
| { | ||
| class IZock : public IPlugIn {}; | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
| #include <Sonicteam/Player/IPlugIn.h> | ||
| #include <Sonicteam/SoX/Graphics/Frame.h> | ||
| #include <Sonicteam/SoX/Math/Matrix.h> | ||
| #include <Sonicteam/SoX/Math/Vector.h> | ||
|
|
||
| namespace Sonicteam::Player | ||
| { | ||
| class RootFrame : public SoX::Graphics::Frame, public IPlugIn | ||
| { | ||
| public: | ||
| SoX::Math::Matrix4x4 m_Transform70; | ||
| SoX::Math::Matrix4x4 m_TransformB0; | ||
| SoX::Math::Vector m_PositionF0; | ||
| SoX::Math::Vector m_Position100; | ||
| SoX::Math::Vector m_Impulse; | ||
| MARATHON_INSERT_PADDING(0x30); | ||
| be<uint64_t> m_ExternalFlag; | ||
| }; | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
| #include <Sonicteam/Player/IZock.h> | ||
| #include <Sonicteam/Player/IFlagCommunicator.h> | ||
| #include <Sonicteam/Player/IStepable.h> | ||
| #include <Sonicteam/Player/IDynamicLink.h> | ||
| #include <Sonicteam/Player/IVariable.h> | ||
| #include <Sonicteam/MyPhantom.h> | ||
| #include <Sonicteam/SoX/Physics/World.h> | ||
| #include <Sonicteam/SoX/RefCountObject.h> | ||
| #include <Sonicteam/SoX/RefSharedPointer.h> | ||
| #include <Sonicteam/Player/RootFrame.h> | ||
| #include <Sonicteam/SoX/Physics/PhantomListener.h> | ||
|
|
||
| namespace Sonicteam::Player | ||
| { | ||
| class Zock : public IZock, public IFlagCommunicator, public IStepable, public IDynamicLink, public IVariable | ||
| { | ||
| public: | ||
| SoX::RefSharedPointer<SoX::Physics::World> m_spWorld; | ||
| SoX::RefSharedPointer<SoX::Physics::World> m_spRootFrame; | ||
| SoX::RefSharedPointer<MyPhantom> m_spPhantomA; | ||
| MARATHON_INSERT_PADDING(0x20); | ||
| SoX::RefSharedPointer<MyPhantom> m_spPhantomB; | ||
| MARATHON_INSERT_PADDING(0x40); | ||
| SoX::RefSharedPointer<SoX::Physics::PhantomListener> m_spPhantomListener; | ||
| MARATHON_INSERT_PADDING(0x3C); | ||
| }; | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
|
|
||
| #include <Sonicteam/SoX/RefCountObject.h> | ||
|
|
||
| namespace Sonicteam::SoX::Graphics | ||
| { | ||
| class Frame : public SoX::RefCountObject | ||
| { | ||
| public: | ||
| MARATHON_INSERT_PADDING(0x18); // SimpleNode | ||
| MARATHON_INSERT_PADDING(0x2C); | ||
| }; | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| #pragma once | ||
|
|
||
| #include <Marathon.inl> | ||
|
|
||
| namespace Sonicteam::SoX::Input | ||
| { | ||
| enum KeyState | ||
| { | ||
| KeyState_DpadUp = 0x40, | ||
| KeyState_DpadDown = 0x80, | ||
| KeyState_DpadLeft = 0x100, | ||
| KeyState_DpadRight = 0x200, | ||
| KeyState_Start = 0x400, | ||
| KeyState_Select = 0x800, | ||
| KeyState_LeftStick = 0x10000, | ||
| KeyState_RightStick = 0x20000, | ||
| KeyState_LeftBumper = 0x1000, | ||
| KeyState_RightBumper = 0x2000, | ||
| KeyState_A = 0x1, | ||
| KeyState_B = 0x2, | ||
| KeyState_X = 0x8, | ||
| KeyState_Y = 0x10, | ||
| KeyState_LeftTrigger = 0x4000, | ||
| KeyState_RightTrigger = 0x8000, | ||
| }; | ||
|
|
||
| struct PadState | ||
| { | ||
| be<uint32_t> LastButtons; | ||
| be<uint32_t> InvertedLastButtons; | ||
| be<uint32_t> PressedButtons; | ||
| be<uint32_t> ReleasedButtons; | ||
|
|
||
| be<float> LeftStickHorizontal; | ||
| be<float> LeftStickVertical; | ||
| be<short> LeftStickHorizontalS16; | ||
| be<short> LeftStickVerticalS16; | ||
|
|
||
| be<float> RightStickHorizontal; | ||
| be<float> RightStickVertical; | ||
| be<short> RightStickHorizontalS16; | ||
| be<short> RightStickVerticalS16; | ||
|
|
||
| bool IsDown(const KeyState in_Keys) const; | ||
| bool IsPressed(const KeyState in_Keys) const; | ||
| bool IsReleased(const KeyState in_Keys) const; | ||
| }; | ||
|
|
||
| class Manager | ||
| { | ||
| public: | ||
| be<uint32_t> m_ControllerID; | ||
| MARATHON_INSERT_PADDING(0xC); | ||
| PadState m_PadState; | ||
| MARATHON_INSERT_PADDING(0x28); | ||
| }; | ||
| } | ||
|
|
||
| #include "Manager.inl" |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| namespace Sonicteam::SoX::Input | ||
| { | ||
| inline bool PadState::IsDown(const KeyState in_Keys) const | ||
| { | ||
| return (LastButtons & in_Keys) == in_Keys; | ||
| } | ||
|
|
||
| inline bool PadState::IsPressed(const KeyState in_Keys) const | ||
| { | ||
| return (PressedButtons & in_Keys) == in_Keys; | ||
| } | ||
|
|
||
| inline bool PadState::IsReleased(const KeyState in_Keys) const | ||
| { | ||
| return (ReleasedButtons & in_Keys) == in_Keys; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.