-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from YGNI-RType/dev
Release v0.4.0
- Loading branch information
Showing
100 changed files
with
3,107 additions
and
638 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
props | ||
|
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** Prop.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/Component.hpp" | ||
|
||
namespace poc3d::component { | ||
struct Prop : public gengine::Component<Prop> {}; | ||
|
||
} // namespace poc3d::component |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** LockPlayerEvent.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/System.hpp" | ||
|
||
namespace poc3d::event { | ||
struct LockPlayerEvent : public gengine::Event { | ||
bool locked; | ||
|
||
LockPlayerEvent(bool locked) | ||
: locked(locked) { | ||
} | ||
}; | ||
} // namespace poc3d::event |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** MorphToPropEvent.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/System.hpp" | ||
|
||
namespace poc3d::event { | ||
struct MorphToPropEvent : public gengine::Event {}; | ||
} // namespace poc3d::event |
14 changes: 14 additions & 0 deletions
14
examples/POC_3D/include/events/ResetPlayerRotationCameraEvent.hpp
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** ResetPlayerRotationCameraEvent.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/System.hpp" | ||
|
||
namespace poc3d::event { | ||
struct ResetPlayerRotationCameraEvent : public gengine::Event {}; | ||
} // namespace poc3d::event |
20 changes: 20 additions & 0 deletions
20
examples/POC_3D/include/events/ResetPlayerRotationEvent.hpp
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** ResetPlayerRotationEvent.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/System.hpp" | ||
|
||
namespace poc3d::event { | ||
struct ResetPlayerRotationEvent : public gengine::Event { | ||
float rotation; | ||
|
||
ResetPlayerRotationEvent(float rotation) | ||
: rotation(rotation) { | ||
} | ||
}; | ||
} // namespace poc3d::event |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** CameraRotation.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/systems/events/GameLoop.hpp" | ||
|
||
#include "GEngine/interface/components/RemoteLocal.hpp" | ||
#include "GEngine/libdev/components/Transforms.hpp" | ||
#include "GEngine/libdev/components/Velocities.hpp" | ||
#include "GEngine/libdev/components/driver/output/Animation.hpp" | ||
#include "GEngine/libdev/components/driver/output/Model.hpp" | ||
|
||
#include "components/Player.hpp" | ||
|
||
#include "GEngine/interface/events/SharedEvent.hpp" | ||
#include "GEngine/libdev/Components.hpp" | ||
#include "GEngine/libdev/System.hpp" | ||
|
||
#include "events/Movement.hpp" | ||
#include "events/ResetPlayerRotationCameraEvent.hpp" | ||
#include "events/Rotation.hpp" | ||
|
||
#include "GEngine/libdev/systems/driver/output/Draw.hpp" | ||
|
||
#include "Constants.hpp" | ||
|
||
namespace poc3d::system { | ||
class CameraRotation | ||
: public gengine::System<CameraRotation, gengine::interface::component::RemoteLocal, gengine::component::Velocity3D, | ||
gengine::component::driver::output::Model, component::Player, geg::component::Transform3D, | ||
gengine::system::driver::output::DrawModel>, | ||
public gengine::LocalSystem { | ||
public: | ||
void init(void) override; | ||
void onStart(gengine::system::event::StartEngine &e); | ||
void onMovement(gengine::interface::event::SharedEvent<event::Movement> &e); | ||
void rotateCamera(event::Rotation &e); | ||
void resetPlayerRotation(event::ResetPlayerRotationCameraEvent &e); | ||
|
||
private: | ||
void moveCamera(geg::component::Transform3D &transform, gengine::Vect3 &forward); | ||
gengine::Entity m_cameraId; | ||
}; | ||
} // namespace poc3d::system |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** Init.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/libdev/Events.hpp" | ||
#include "GEngine/libdev/System.hpp" | ||
#include "GEngine/libdev/Systems.hpp" | ||
|
||
#include <raylib.h> | ||
|
||
namespace poc3d::system { | ||
class Crossair : public gengine::OnEventSystem<Crossair, gengine::system::event::StartEngine>, | ||
public gengine::LocalSystem { | ||
public: | ||
void onEvent(gengine::system::event::StartEngine &e); | ||
}; | ||
} // namespace poc3d::system |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** B-CPP-500-LYN-5-1-rtype-basile.fouquet | ||
** File description: | ||
** MorphToProp.hpp | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include "GEngine/interface/components/RemoteLocal.hpp" | ||
#include "GEngine/libdev/components/Transforms.hpp" | ||
#include "GEngine/libdev/components/driver/output/Model.hpp" | ||
#include "components/Player.hpp" | ||
#include "components/Prop.hpp" | ||
|
||
#include "GEngine/libdev/Components.hpp" | ||
#include "GEngine/libdev/System.hpp" | ||
#include "GEngine/libdev/Systems.hpp" | ||
|
||
#include "GEngine/interface/events/SharedEvent.hpp" | ||
|
||
#include "GEngine/libdev/systems/driver/output/Draw.hpp" | ||
#include "GEngine/libdev/systems/driver/output/ModelManager.hpp" | ||
|
||
#include "events/MorphToPropEvent.hpp" | ||
|
||
namespace poc3d::system { | ||
class MorphToProp | ||
: public gengine::System< | ||
MorphToProp, gengine::interface::component::RemoteLocal, gengine::component::driver::output::Model, | ||
geg::component::Transform3D, component::Player, component::Prop, gengine::system::driver::output::DrawModel, | ||
gengine::system::driver::output::ModelManager, gengine::system::driver::output::RenderWindow>, | ||
public gengine::LocalSystem { | ||
public: | ||
void init(void) override; | ||
|
||
void morphPlayer(event::MorphToPropEvent &e); | ||
}; | ||
} // namespace poc3d::system |
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
Oops, something went wrong.