This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

View file

@ -0,0 +1,28 @@
#ifndef STAR_UTILITY_LUA_BINDINGS_HPP
#define STAR_UTILITY_LUA_BINDINGS_HPP
#include "StarLua.hpp"
namespace Star {
namespace LuaBindings {
LuaCallbacks makeUtilityCallbacks();
String formatLua(String const& string, List<LuaValue> const& args);
namespace UtilityCallbacks {
double nrand(Maybe<double> const& stdev, Maybe<double> const& mean);
String makeUuid();
void logInfo(String const& str, LuaVariadic<LuaValue> const& args);
void logWarn(String const& str, LuaVariadic<LuaValue> const& args);
void logError(String const& str, LuaVariadic<LuaValue> const& args);
void setLogMap(String const& key, String const& value, LuaVariadic<LuaValue> const& args);
String printJson(Json const& arg, Maybe<int> pretty);
String print(LuaValue const& arg);
LuaValue interpolateSinEase(LuaEngine& engine, double offset, LuaValue const& value1, LuaValue const& value2);
String replaceTags(String const& str, StringMap<String> const& tags);
}
}
}
#endif