Skip to content

Commit

Permalink
fix: Move setEffectAlpha and setMissileAlpha from framework to client
Browse files Browse the repository at this point in the history
  • Loading branch information
kokekanon committed Dec 14, 2023
1 parent 453387e commit e58a883
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/client/luafunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ 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: 1 addition & 5 deletions 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,10 +324,6 @@ 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 e58a883

Please sign in to comment.