@@ -8,67 +8,67 @@ class CEditableObject;
88
99class ESceneSpawnTool : public ESceneCustomOTool
1010{
11- typedef ESceneCustomOTool inherited;
12- friend class CSpawnPoint ;
11+ typedef ESceneCustomOTool inherited;
12+ friend class CSpawnPoint ;
1313protected:
1414 // controls
15- virtual void CreateControls ();
16- virtual void RemoveControls ();
17- enum {
18- flPickSpawnType = (1 <<30 ),
19- flShowSpawnType = (1 <<31 ),
15+ virtual void CreateControls ();
16+ virtual void RemoveControls ();
17+ enum {
18+ flPickSpawnType = (1 <<30 ),
19+ flShowSpawnType = (1 <<31 ),
2020 };
21- Flags32 m_Flags;
21+ Flags32 m_Flags;
2222
2323 // class
24- DEFINE_VECTOR (SChooseItem,SSVec,SSVecIt);
25- DEFINE_MAP (CLASS_ID,SSVec,ClassSpawnMap,ClassSpawnMapIt);
26- ClassSpawnMap m_Classes;
24+ DEFINE_VECTOR (SChooseItem,SSVec,SSVecIt);
25+ DEFINE_MAP (CLASS_ID,SSVec,ClassSpawnMap,ClassSpawnMapIt);
26+ ClassSpawnMap m_Classes;
2727
2828 // icon list
29- DEFINE_MAP (shared_str,ref_shader,ShaderMap,ShaderPairIt);
30- ShaderMap m_Icons;
31- ref_shader CreateIcon (shared_str name);
32- ref_shader GetIcon (shared_str name);
29+ DEFINE_MAP (shared_str,ref_shader,ShaderMap,ShaderPairIt);
30+ ShaderMap m_Icons;
31+ ref_shader CreateIcon (shared_str name);
32+ ref_shader GetIcon (shared_str name);
3333 xr_vector<CEditableObject*> m_draw_RP_visuals;
3434public:
35- ESceneSpawnTool ();
36- virtual ~ESceneSpawnTool ();
35+ ESceneSpawnTool ();
36+ virtual ~ESceneSpawnTool ();
3737
38- // definition
39- IC LPCSTR ClassName (){return " spawn" ;}
40- IC LPCSTR ClassDesc (){return " Spawn" ;}
41- IC int RenderPriority (){return 1 ;}
38+ // definition
39+ IC LPCSTR ClassName (){return " spawn" ;}
40+ IC LPCSTR ClassDesc (){return " Spawn" ;}
41+ IC int RenderPriority (){return 1 ;}
4242
43- void FillProp (LPCSTR pref, PropItemVec& items);
43+ void FillProp (LPCSTR pref, PropItemVec& items);
4444
45- virtual void Clear (bool bSpecific=false ){inherited::Clear (bSpecific);m_Flags.zero ();}
45+ virtual void Clear (bool bSpecific=false ){inherited::Clear (bSpecific);m_Flags.zero ();}
4646 // IO
47- virtual bool IsNeedSave (){return true ;}
48- virtual bool LoadStream (IReader&);
49- virtual bool LoadLTX (CInifile&);
50- virtual void SaveStream (IWriter&);
51- virtual void SaveLTX (CInifile&, int id);
52- virtual bool can_use_inifile () {return true ;}
53- virtual bool LoadSelection (IReader&);
54- virtual void SaveSelection (IWriter&);
47+ virtual bool IsNeedSave (){return true ;}
48+ virtual bool LoadStream (IReader&);
49+ virtual bool LoadLTX (CInifile&);
50+ virtual void SaveStream (IWriter&);
51+ virtual void SaveLTX (CInifile&, int id);
52+ virtual bool can_use_inifile () {return true ;}
53+ virtual bool LoadSelection (IReader&);
54+ virtual void SaveSelection (IWriter&);
5555
56- virtual int MultiRenameObjects ();
56+ virtual int MultiRenameObjects ();
5757/*
58- virtual void GetStaticDesc (int& v_cnt, int& f_cnt, bool b_selected_only);
59- virtual bool ExportStatic (SceneBuilder* B, bool b_selected_only);
58+ virtual void GetStaticDesc (int& v_cnt, int& f_cnt, bool b_selected_only);
59+ virtual bool ExportStatic (SceneBuilder* B, bool b_selected_only);
6060*/
61- virtual CCustomObject* CreateObject (LPVOID data, LPCSTR name);
62- CEditableObject* get_draw_visual (u8 _RP_TeamID, u8 _RP_Type, const GameTypeChooser& _GameType);
61+ virtual CCustomObject* CreateObject (LPVOID data, LPCSTR name);
62+ CEditableObject* get_draw_visual (u8 _RP_TeamID, u8 _RP_Type, const GameTypeChooser& _GameType);
6363};
6464// ---------------------------------------------------------------------------
6565// refs
66- class ISE_Abstract ;
66+ class IServerEntity ;
6767
68- typedef ISE_Abstract* (__stdcall *Tcreate_entity) (LPCSTR section);
69- typedef void (__stdcall *Tdestroy_entity) (ISE_Abstract *&);
68+ typedef IServerEntity* (__stdcall *Tcreate_entity) (LPCSTR section);
69+ typedef void (__stdcall *Tdestroy_entity) (IServerEntity *&);
7070
71- extern Tcreate_entity create_entity;
72- extern Tdestroy_entity destroy_entity;
71+ extern Tcreate_entity create_entity;
72+ extern Tdestroy_entity destroy_entity;
7373// ---------------------------------------------------------------------------
7474#endif
0 commit comments