mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
Merge pull request #75 from BeamMP/release-3-0-0-patch
Release v3.0.0 final patch
This commit is contained in:
commit
84d52578e0
@ -1,7 +1,7 @@
|
|||||||
# v2.4.0
|
# v2.4.0
|
||||||
|
|
||||||
- CHANGED entire plugin Lua implementation (rewrite)
|
- CHANGED entire plugin Lua implementation (rewrite)
|
||||||
- CHANGED moved *almost all* functions into MP.\*
|
- CHANGED moved *almost all* Lua functions into MP.\*
|
||||||
- CHANGED console to use a custom language (type `help`, `list`, or `status`!)
|
- CHANGED console to use a custom language (type `help`, `list`, or `status`!)
|
||||||
- CHANGED all files of a Lua plugin to share a Lua state (no more state-per-file)
|
- CHANGED all files of a Lua plugin to share a Lua state (no more state-per-file)
|
||||||
- ADDED many new Lua API functions, which can be found at <https://wiki.beammp.com/en/Scripting/functions>
|
- ADDED many new Lua API functions, which can be found at <https://wiki.beammp.com/en/Scripting/functions>
|
||||||
@ -14,7 +14,7 @@
|
|||||||
- ADDED dumping tables with `print()` (try it with `print(MP)`)
|
- ADDED dumping tables with `print()` (try it with `print(MP)`)
|
||||||
- ADDED `MP.GetOSName()`, `MP.CreateTimer()`, `MP.GetLuaMemoryUsage()` and many more (see <https://wiki.beammp.com/en/Scripting/functions>)
|
- ADDED `MP.GetOSName()`, `MP.CreateTimer()`, `MP.GetLuaMemoryUsage()` and many more (see <https://wiki.beammp.com/en/Scripting/functions>)
|
||||||
- ADDED `MP.Settings` table to make usage of `MP.Set()` easier
|
- ADDED `MP.Settings` table to make usage of `MP.Set()` easier
|
||||||
- ADDED `FS.*` table with common filesystem operations
|
- ADDED `FS.*` table with common filesystem operations (do `print(FS)` to see them!)
|
||||||
- FIXED i/o thread spin when stdout is /dev/null on linux
|
- FIXED i/o thread spin when stdout is /dev/null on linux
|
||||||
- FIXED removed extra whitespace infront of onChatMessage message
|
- FIXED removed extra whitespace infront of onChatMessage message
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ private:
|
|||||||
static inline std::mutex mShutdownHandlersMutex {};
|
static inline std::mutex mShutdownHandlersMutex {};
|
||||||
static inline std::deque<TShutdownHandler> mShutdownHandlers {};
|
static inline std::deque<TShutdownHandler> mShutdownHandlers {};
|
||||||
|
|
||||||
static inline Version mVersion { 2, 4, 0 };
|
static inline Version mVersion { 3, 0, 0 };
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string ThreadName(bool DebugModeOverride = false);
|
std::string ThreadName(bool DebugModeOverride = false);
|
||||||
|
@ -133,10 +133,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::shared_ptr<TLuaResult>> Results;
|
std::vector<std::shared_ptr<TLuaResult>> Results;
|
||||||
|
std::vector<TLuaArgTypes> Arguments { TLuaArgTypes { std::forward<ArgsT>(Args) }... };
|
||||||
|
|
||||||
for (const auto& Event : mLuaEvents.at(EventName)) {
|
for (const auto& Event : mLuaEvents.at(EventName)) {
|
||||||
for (const auto& Function : Event.second) {
|
for (const auto& Function : Event.second) {
|
||||||
if (Event.first != IgnoreId) {
|
if (Event.first != IgnoreId) {
|
||||||
Results.push_back(EnqueueFunctionCall(Event.first, Function, { TLuaArgTypes { std::forward<ArgsT>(Args) }... }));
|
Results.push_back(EnqueueFunctionCall(Event.first, Function, Arguments));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user