Skip to content

Commit

Permalink
Rename ISE_Abstract -> IServerEntity.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 8, 2015
1 parent 7a5a194 commit eb9ac7a
Show file tree
Hide file tree
Showing 13 changed files with 1,339 additions and 1,339 deletions.
264 changes: 132 additions & 132 deletions src/editors/LevelEditor/Edit/ESceneObjectToolsExportBreakable.cpp

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions src/editors/LevelEditor/Edit/ESceneSpawnTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,67 +8,67 @@ class CEditableObject;

class ESceneSpawnTool: public ESceneCustomOTool
{
typedef ESceneCustomOTool inherited;
friend class CSpawnPoint;
typedef ESceneCustomOTool inherited;
friend class CSpawnPoint;
protected:
// controls
virtual void CreateControls ();
virtual void RemoveControls ();
enum{
flPickSpawnType = (1<<30),
flShowSpawnType = (1<<31),
virtual void CreateControls ();
virtual void RemoveControls ();
enum{
flPickSpawnType = (1<<30),
flShowSpawnType = (1<<31),
};
Flags32 m_Flags;
Flags32 m_Flags;

// class
DEFINE_VECTOR (SChooseItem,SSVec,SSVecIt);
DEFINE_MAP (CLASS_ID,SSVec,ClassSpawnMap,ClassSpawnMapIt);
ClassSpawnMap m_Classes;
DEFINE_VECTOR (SChooseItem,SSVec,SSVecIt);
DEFINE_MAP (CLASS_ID,SSVec,ClassSpawnMap,ClassSpawnMapIt);
ClassSpawnMap m_Classes;

// icon list
DEFINE_MAP (shared_str,ref_shader,ShaderMap,ShaderPairIt);
ShaderMap m_Icons;
ref_shader CreateIcon (shared_str name);
ref_shader GetIcon (shared_str name);
DEFINE_MAP (shared_str,ref_shader,ShaderMap,ShaderPairIt);
ShaderMap m_Icons;
ref_shader CreateIcon (shared_str name);
ref_shader GetIcon (shared_str name);
xr_vector<CEditableObject*> m_draw_RP_visuals;
public:
ESceneSpawnTool ();
virtual ~ESceneSpawnTool ();
ESceneSpawnTool ();
virtual ~ESceneSpawnTool ();

// definition
IC LPCSTR ClassName (){return "spawn";}
IC LPCSTR ClassDesc (){return "Spawn";}
IC int RenderPriority (){return 1;}
// definition
IC LPCSTR ClassName (){return "spawn";}
IC LPCSTR ClassDesc (){return "Spawn";}
IC int RenderPriority (){return 1;}

void FillProp (LPCSTR pref, PropItemVec& items);
void FillProp (LPCSTR pref, PropItemVec& items);

virtual void Clear (bool bSpecific=false){inherited::Clear(bSpecific);m_Flags.zero();}
virtual void Clear (bool bSpecific=false){inherited::Clear(bSpecific);m_Flags.zero();}
// IO
virtual bool IsNeedSave (){return true;}
virtual bool LoadStream (IReader&);
virtual bool LoadLTX (CInifile&);
virtual void SaveStream (IWriter&);
virtual void SaveLTX (CInifile&, int id);
virtual bool can_use_inifile () {return true;}
virtual bool LoadSelection (IReader&);
virtual void SaveSelection (IWriter&);
virtual bool IsNeedSave (){return true;}
virtual bool LoadStream (IReader&);
virtual bool LoadLTX (CInifile&);
virtual void SaveStream (IWriter&);
virtual void SaveLTX (CInifile&, int id);
virtual bool can_use_inifile () {return true;}
virtual bool LoadSelection (IReader&);
virtual void SaveSelection (IWriter&);

virtual int MultiRenameObjects ();
virtual int MultiRenameObjects ();
/*
virtual void GetStaticDesc (int& v_cnt, int& f_cnt, bool b_selected_only);
virtual bool ExportStatic (SceneBuilder* B, bool b_selected_only);
virtual void GetStaticDesc (int& v_cnt, int& f_cnt, bool b_selected_only);
virtual bool ExportStatic (SceneBuilder* B, bool b_selected_only);
*/
virtual CCustomObject* CreateObject (LPVOID data, LPCSTR name);
CEditableObject* get_draw_visual (u8 _RP_TeamID, u8 _RP_Type, const GameTypeChooser& _GameType);
virtual CCustomObject* CreateObject (LPVOID data, LPCSTR name);
CEditableObject* get_draw_visual (u8 _RP_TeamID, u8 _RP_Type, const GameTypeChooser& _GameType);
};
//---------------------------------------------------------------------------
// refs
class ISE_Abstract;
class IServerEntity;

typedef ISE_Abstract* (__stdcall *Tcreate_entity) (LPCSTR section);
typedef void (__stdcall *Tdestroy_entity) (ISE_Abstract *&);
typedef IServerEntity* (__stdcall *Tcreate_entity) (LPCSTR section);
typedef void (__stdcall *Tdestroy_entity) (IServerEntity *&);

extern Tcreate_entity create_entity;
extern Tdestroy_entity destroy_entity;
extern Tcreate_entity create_entity;
extern Tdestroy_entity destroy_entity;
//---------------------------------------------------------------------------
#endif
Loading

0 comments on commit eb9ac7a

Please sign in to comment.