mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-14 03:36:38 +00:00
add event 'onPlayerRequestMods', restructure modloading
now every player has their own list of allowed client mods, this can be modified by lua upon joining and is later used as a whitelist to ensure only those files can be sent to each client
This commit is contained in:
@@ -55,6 +55,7 @@ constexpr std::string_view StrLogChat = "LogChat";
|
||||
constexpr std::string_view StrSendErrors = "Misc.SendErrors";
|
||||
constexpr std::string_view StrSendErrorsMessageEnabled = "Misc.SendErrorsShowMessage";
|
||||
constexpr std::string_view StrHideUpdateMessages = "Misc.ImScaredOfUpdates";
|
||||
constexpr std::string_view StrIncludeSubdirectories = "Misc.IncludeSubdirectories";
|
||||
|
||||
// HTTP
|
||||
constexpr std::string_view StrHTTPServerEnabled = "HTTP.HTTPServerEnabled";
|
||||
@@ -79,6 +80,9 @@ struct Version {
|
||||
template <typename T>
|
||||
using SparseArray = std::unordered_map<size_t, T>;
|
||||
|
||||
template <typename K, typename V>
|
||||
using HashMap = std::unordered_map<K, V>;
|
||||
|
||||
using boost::variant;
|
||||
using boost::container::flat_map;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user