cvars: allow to set very long descriptions
cvars: added full descriptions to yb+restricted_weapons (closes #659) crlib: update submodule fix: send server messages should split as string and not stringref to keep null-terminated chunks
This commit is contained in:
parent
c322e36d9b
commit
b8fb2e8845
9 changed files with 77 additions and 58 deletions
|
|
@ -8,6 +8,9 @@
|
|||
#pragma once
|
||||
|
||||
class BotSupport final : public Singleton <BotSupport> {
|
||||
using AliasInfo = Twin <StringRef, StringRef>;
|
||||
using AliasMap = HashMap <int32_t, AliasInfo, EmptyHash <int32_t> >;
|
||||
|
||||
private:
|
||||
bool m_needToSendWelcome {};
|
||||
float m_welcomeReceiveTime {};
|
||||
|
|
@ -15,7 +18,7 @@ private:
|
|||
StringArray m_sentences {};
|
||||
SmallArray <Client> m_clients {};
|
||||
|
||||
HashMap <int32_t, String> m_weaponAliases {};
|
||||
AliasMap m_weaponAliases {};
|
||||
|
||||
public:
|
||||
BotSupport ();
|
||||
|
|
@ -79,6 +82,9 @@ public:
|
|||
// get's the wave length
|
||||
float getWaveLength (StringRef filename);
|
||||
|
||||
// set custom cvar descriptions
|
||||
void setCustomCvarDescriptions ();
|
||||
|
||||
public:
|
||||
|
||||
// re-show welcome after changelevel ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue