mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-26 13:47: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 ];
|
||||
|
||||
bool bEnabled = rule.m_bEnabled;
|
||||
Msg( "%s: %i\n", rs.m_RulePartitions.GetElementName( idx ), idx );
|
||||
pSave->WriteBool( &bEnabled );
|
||||
|
||||
pSave->EndBlock();
|
||||
|
@ -326,6 +326,9 @@ namespace ResponseRules
|
||||
|
||||
void GetName( 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* GetResponsePtr() const;
|
||||
const ResponseParams *GetParams() const { return &m_Params; }
|
||||
|
@ -198,6 +198,19 @@ void CRR_Response::GetResponse( char *buf, size_t buflen ) const
|
||||
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
|
||||
{
|
||||
return m_szResponseName;
|
||||
|
Loading…
x
Reference in New Issue
Block a user