mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 21:34:08 -07:00
-techs are not operational yet -set the game speed with setSimRate() in the console or in the config file under hotkey.speed.increase or hotkey.speed.decrease -made a few other small fixes This was SVN commit r3950.
34 lines
983 B
C++
34 lines
983 B
C++
//Andrew aka pyrolink - ajdecker1022@msn.com
|
|
//Manages the tech templates. More detail: see CBaseFormation and CBaseEntity (collections)
|
|
|
|
|
|
#ifndef BASETECH_COLLECTION_INCLUDED
|
|
#define BASETECH_COLLECTION_INCLUDED
|
|
|
|
#include <vector>
|
|
#include "ps/CStr.h"
|
|
#include "ps/Singleton.h"
|
|
#include "BaseTech.h"
|
|
#include "ps/Game.h"
|
|
|
|
#define g_BaseTechCollection CBaseTechCollection::GetSingleton()
|
|
|
|
class CBaseTechCollection : public Singleton<CBaseTechCollection>
|
|
{
|
|
|
|
typedef std::map<CStrW, CBaseTech*> templateMap;
|
|
typedef std::map<CStrW, CStr> templateFilenameMap;
|
|
templateMap m_templates;
|
|
templateFilenameMap m_templateFilenames;
|
|
public:
|
|
~CBaseTechCollection();
|
|
CBaseTech* getTemplate( CStrW techType );
|
|
int loadTemplates();
|
|
void LoadFile( const char* path );
|
|
|
|
// Create a list of the names of all base techs, excluding template_*,
|
|
// for display in ScEd's entity-selection box.
|
|
void getBaseTechNames( std::vector<CStrW>& names );
|
|
};
|
|
|
|
#endif
|