Skip to content

Commit

Permalink
Revert "fix: Move setEffectAlpha and setMissileAlpha from framework t…
Browse files Browse the repository at this point in the history
…o client"

This reverts commit e58a883.
  • Loading branch information
kokekanon committed Dec 14, 2023
1 parent e58a883 commit ed3cd14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/client/luafunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,6 @@ void Client::registerLuaFunctions()
g_lua.registerSingletonClass("g_gameConfig");
g_lua.bindSingletonFunction("g_gameConfig", "loadFonts", &GameConfig::loadFonts, &g_gameConfig);

g_lua.registerSingletonClass("g_client");
g_lua.bindSingletonFunction("g_client", "setEffectAlpha", &Client::setEffectAlpha, &g_client);
g_lua.bindSingletonFunction("g_client", "setMissileAlpha", &Client::setMissileAlpha, &g_client);

g_lua.registerSingletonClass("g_attachedEffects");
g_lua.bindSingletonFunction("g_attachedEffects", "getById", &AttachedEffectManager::getById, &g_attachedEffects);
g_lua.bindSingletonFunction("g_attachedEffects", "registerByThing", &AttachedEffectManager::registerByThing, &g_attachedEffects);
Expand Down
6 changes: 5 additions & 1 deletion src/framework/luafunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <framework/platform/platform.h>
#include <framework/stdext/net.h>
#include <framework/util/crypt.h>

#include <client/client.h>

#ifdef FRAMEWORK_GRAPHICS
#include "framework/graphics/particleeffect.h"
Expand Down Expand Up @@ -324,6 +324,10 @@ void Application::registerLuaFunctions()
g_lua.bindSingletonFunction("g_app", "setAnimatedTextScale", &GraphicalApplication::setAnimatedTextScale, &g_app);
g_lua.bindSingletonFunction("g_app", "setStaticTextScale", &GraphicalApplication::setStaticTextScale, &g_app);

// Client
g_lua.registerSingletonClass("g_client");
g_lua.bindSingletonFunction("g_client", "setEffectAlpha", &Client::setEffectAlpha, &g_client);
g_lua.bindSingletonFunction("g_client", "setMissileAlpha", &Client::setMissileAlpha, &g_client);

// PlatformWindow
g_lua.registerSingletonClass("g_window");
Expand Down

0 comments on commit ed3cd14

Please sign in to comment.