feat(ffx): stub EffectDeath and EffectGlow

This commit is contained in:
fallenoak 2025-11-30 17:42:34 -06:00
parent 394c38cac1
commit 43b01a8178
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
7 changed files with 88 additions and 0 deletions

View File

@ -5,6 +5,7 @@ add_subdirectory(component)
add_subdirectory(console) add_subdirectory(console)
add_subdirectory(db) add_subdirectory(db)
add_subdirectory(event) add_subdirectory(event)
add_subdirectory(ffx)
add_subdirectory(glue) add_subdirectory(glue)
add_subdirectory(gx) add_subdirectory(gx)
add_subdirectory(math) add_subdirectory(math)

18
src/ffx/CMakeLists.txt Normal file
View File

@ -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
)

7
src/ffx/Effect.hpp Normal file
View File

@ -0,0 +1,7 @@
#ifndef FFX_EFFECT_HPP
#define FFX_EFFECT_HPP
#include "ffx/EffectDeath.hpp"
#include "ffx/EffectGlow.hpp"
#endif

20
src/ffx/EffectDeath.cpp Normal file
View File

@ -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
);
}

10
src/ffx/EffectDeath.hpp Normal file
View File

@ -0,0 +1,10 @@
#ifndef FFX_EFFECT_DEATH_HPP
#define FFX_EFFECT_DEATH_HPP
class EffectDeath {
public:
// Member functions
EffectDeath();
};
#endif

22
src/ffx/EffectGlow.cpp Normal file
View File

@ -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
}

10
src/ffx/EffectGlow.hpp Normal file
View File

@ -0,0 +1,10 @@
#ifndef FFX_EFFECT_GLOW_HPP
#define FFX_EFFECT_GLOW_HPP
class EffectGlow {
public:
// Member functions
EffectGlow();
};
#endif