mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 09:13:45 +00:00
Hacked up ScEd a bit, to disable its actor editor and to let users place entities (rather than actors) on the map.
This was SVN commit r2039.
This commit is contained in:
@@ -128,6 +128,19 @@ CBaseEntity* CBaseEntityCollection::getTemplateByActor( CStrW actorName )
|
||||
return( NULL );
|
||||
}
|
||||
|
||||
void CBaseEntityCollection::getTemplateNames( std::vector<CStrW>& names )
|
||||
{
|
||||
for( u16 t = 0; t < m_templates.size(); t++ )
|
||||
names.push_back( m_templates[t]->m_Tag );
|
||||
}
|
||||
|
||||
#ifdef SCED
|
||||
CBaseEntity* CBaseEntityCollection::getTemplateByID( int n )
|
||||
{
|
||||
return m_templates[n];
|
||||
}
|
||||
#endif
|
||||
|
||||
CBaseEntityCollection::~CBaseEntityCollection()
|
||||
{
|
||||
for( u16 t = 0; t < m_templates.size(); t++ )
|
||||
|
||||
Reference in New Issue
Block a user