mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 06:07:56 +03:00
Misc. response system code cleanup/QOL changes
This commit is contained in:
parent
a05503e42b
commit
8bcb6263f5
@ -1078,7 +1078,6 @@ public:
|
|||||||
const Rule &rule = rs.m_RulePartitions[ idx ];
|
const Rule &rule = rs.m_RulePartitions[ idx ];
|
||||||
|
|
||||||
bool bEnabled = rule.m_bEnabled;
|
bool bEnabled = rule.m_bEnabled;
|
||||||
Msg( "%s: %i\n", rs.m_RulePartitions.GetElementName( idx ), idx );
|
|
||||||
pSave->WriteBool( &bEnabled );
|
pSave->WriteBool( &bEnabled );
|
||||||
|
|
||||||
pSave->EndBlock();
|
pSave->EndBlock();
|
||||||
|
@ -326,6 +326,9 @@ namespace ResponseRules
|
|||||||
|
|
||||||
void GetName( char *buf, size_t buflen ) const;
|
void GetName( char *buf, size_t buflen ) const;
|
||||||
void GetResponse( char *buf, size_t buflen ) const;
|
void GetResponse( char *buf, size_t buflen ) const;
|
||||||
|
#ifdef MAPBASE
|
||||||
|
void GetRule( char *buf, size_t buflen ) const;
|
||||||
|
#endif
|
||||||
const char* GetNamePtr() const;
|
const char* GetNamePtr() const;
|
||||||
const char* GetResponsePtr() const;
|
const char* GetResponsePtr() const;
|
||||||
const ResponseParams *GetParams() const { return &m_Params; }
|
const ResponseParams *GetParams() const { return &m_Params; }
|
||||||
|
@ -198,6 +198,19 @@ void CRR_Response::GetResponse( char *buf, size_t buflen ) const
|
|||||||
GetName( buf, buflen );
|
GetName( buf, buflen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Purpose:
|
||||||
|
// Output : char const
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
void CRR_Response::GetRule( char *buf, size_t buflen ) const
|
||||||
|
{
|
||||||
|
Q_strncpy( buf, m_szMatchingRule, buflen );
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
const char* ResponseRules::CRR_Response::GetNamePtr() const
|
const char* ResponseRules::CRR_Response::GetNamePtr() const
|
||||||
{
|
{
|
||||||
return m_szResponseName;
|
return m_szResponseName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user