From 43b01a8178d1d28f39baf62a7a38728b6763a879 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Sun, 30 Nov 2025 17:42:34 -0600 Subject: [PATCH] feat(ffx): stub EffectDeath and EffectGlow --- src/CMakeLists.txt | 1 + src/ffx/CMakeLists.txt | 18 ++++++++++++++++++ src/ffx/Effect.hpp | 7 +++++++ src/ffx/EffectDeath.cpp | 20 ++++++++++++++++++++ src/ffx/EffectDeath.hpp | 10 ++++++++++ src/ffx/EffectGlow.cpp | 22 ++++++++++++++++++++++ src/ffx/EffectGlow.hpp | 10 ++++++++++ 7 files changed, 88 insertions(+) create mode 100644 src/ffx/CMakeLists.txt create mode 100644 src/ffx/Effect.hpp create mode 100644 src/ffx/EffectDeath.cpp create mode 100644 src/ffx/EffectDeath.hpp create mode 100644 src/ffx/EffectGlow.cpp create mode 100644 src/ffx/EffectGlow.hpp diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f69b076..eddd2c5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,6 +5,7 @@ add_subdirectory(component) add_subdirectory(console) add_subdirectory(db) add_subdirectory(event) +add_subdirectory(ffx) add_subdirectory(glue) add_subdirectory(gx) add_subdirectory(math) diff --git a/src/ffx/CMakeLists.txt b/src/ffx/CMakeLists.txt new file mode 100644 index 0000000..0debf90 --- /dev/null +++ b/src/ffx/CMakeLists.txt @@ -0,0 +1,18 @@ +file(GLOB PRIVATE_SOURCES "*.cpp") + +add_library(ffx STATIC + ${PRIVATE_SOURCES} +) + +target_include_directories(ffx + PRIVATE + ${CMAKE_SOURCE_DIR}/src +) + +target_link_libraries(ffx + PRIVATE + console + gx + PUBLIC + storm +) diff --git a/src/ffx/Effect.hpp b/src/ffx/Effect.hpp new file mode 100644 index 0000000..8eb4a8c --- /dev/null +++ b/src/ffx/Effect.hpp @@ -0,0 +1,7 @@ +#ifndef FFX_EFFECT_HPP +#define FFX_EFFECT_HPP + +#include "ffx/EffectDeath.hpp" +#include "ffx/EffectGlow.hpp" + +#endif diff --git a/src/ffx/EffectDeath.cpp b/src/ffx/EffectDeath.cpp new file mode 100644 index 0000000..03ef4e0 --- /dev/null +++ b/src/ffx/EffectDeath.cpp @@ -0,0 +1,20 @@ +#include "ffx/EffectDeath.hpp" +#include "console/CVar.hpp" + +bool FFXDeathCallback(CVar* var, const char* oldValue, const char* value, void* arg) { + // TODO + return true; +} + +EffectDeath::EffectDeath() { + // TODO + + CVar::Register( + "ffxDeath", + "full screen death effect", + 0x1, + "1", + &FFXDeathCallback, + GRAPHICS + ); +} diff --git a/src/ffx/EffectDeath.hpp b/src/ffx/EffectDeath.hpp new file mode 100644 index 0000000..96c9d9a --- /dev/null +++ b/src/ffx/EffectDeath.hpp @@ -0,0 +1,10 @@ +#ifndef FFX_EFFECT_DEATH_HPP +#define FFX_EFFECT_DEATH_HPP + +class EffectDeath { + public: + // Member functions + EffectDeath(); +}; + +#endif diff --git a/src/ffx/EffectGlow.cpp b/src/ffx/EffectGlow.cpp new file mode 100644 index 0000000..2f598db --- /dev/null +++ b/src/ffx/EffectGlow.cpp @@ -0,0 +1,22 @@ +#include "ffx/EffectGlow.hpp" +#include "console/CVar.hpp" + +bool FFXGlowCallback(CVar* var, const char* oldValue, const char* value, void* arg) { + // TODO + return true; +} + +EffectGlow::EffectGlow() { + // TODO + + CVar::Register( + "ffxGlow", + "full screen glow effect", + 0x1, + "1", + &FFXGlowCallback, + GRAPHICS + ); + + // TODO +} diff --git a/src/ffx/EffectGlow.hpp b/src/ffx/EffectGlow.hpp new file mode 100644 index 0000000..879559b --- /dev/null +++ b/src/ffx/EffectGlow.hpp @@ -0,0 +1,10 @@ +#ifndef FFX_EFFECT_GLOW_HPP +#define FFX_EFFECT_GLOW_HPP + +class EffectGlow { + public: + // Member functions + EffectGlow(); +}; + +#endif