mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ffx): stub EffectDeath and EffectGlow
This commit is contained in:
parent
394c38cac1
commit
43b01a8178
@ -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)
|
||||
|
||||
18
src/ffx/CMakeLists.txt
Normal file
18
src/ffx/CMakeLists.txt
Normal 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
7
src/ffx/Effect.hpp
Normal 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
20
src/ffx/EffectDeath.cpp
Normal 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
10
src/ffx/EffectDeath.hpp
Normal 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
22
src/ffx/EffectGlow.cpp
Normal 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
10
src/ffx/EffectGlow.hpp
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef FFX_EFFECT_GLOW_HPP
|
||||
#define FFX_EFFECT_GLOW_HPP
|
||||
|
||||
class EffectGlow {
|
||||
public:
|
||||
// Member functions
|
||||
EffectGlow();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue
Block a user