Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (51 sloc) 2.775 kB
/////////////////////////////////////////////////////////////////////////*
//Ink Studios Source File.
//Copyright (C), Ink Studios, 2011.
//////////////////////////////////////////////////////////////////////////
// Entity class dummy.
//////////////////////////////////////////////////////////////////////////
// 08/12/2011 : Created by Filip 'i59' Lundgren (Based on version by ins\)
////////////////////////////////////////////////////////////////////////*/
#ifndef __MONO_ENTITY_CLASS_H__
#define __MONO_ENTITY_CLASS_H__
#include <IEntityClass.h>
class CEntityClass : public IEntityClass
{
public:
CEntityClass(IEntityClassRegistry::SEntityClassDesc desc, std::vector<IEntityPropertyHandler::SPropertyInfo> properties);
virtual ~CEntityClass();
// IEntityClass interface
virtual void Release() { delete this; }
virtual const char *GetName() const { return m_name; }
virtual uint32 GetFlags() const { return m_flags; }
virtual void SetFlags(uint32 nFlags) { m_flags = nFlags; }
virtual const char *GetScriptFile() const { return ""; }
virtual IEntityScript *GetIEntityScript() const { return nullptr; }
virtual IScriptTable *GetScriptTable() const { return nullptr; }
virtual const char *GetEditorHelperObjectName() const { return m_classInfo.sHelper; }
virtual const char *GetEditorIconName() const { return m_classInfo.sIcon; }
virtual bool LoadScript(bool bForceReload) { return false; }
virtual UserProxyCreateFunc GetUserProxyCreateFunc() const { return m_proxyCreateFunc; }
virtual void *GetUserProxyData() const { return nullptr; }
virtual IEntityPropertyHandler *GetPropertyHandler() const { return m_pPropertyHandler; }
virtual IEntityEventHandler *GetEventHandler() const { return m_pEventHandler; }
virtual IEntityScriptFileHandler *GetScriptFileHandler() const { return nullptr; }
virtual int GetEventCount();
virtual IEntityClass::SEventInfo GetEventInfo( int nIndex ) { return IEntityClass::SEventInfo(); }
virtual bool FindEventInfo( const char *sEvent,SEventInfo &event ) { return false; }
virtual void GetMemoryUsage( ICrySizer *pSizer ) const {}
virtual const SEditorClassInfo& GetEditorClassInfo() const { return m_classInfo; }
virtual void SetEditorClassInfo(const SEditorClassInfo& editorClassInfo) { m_classInfo = editorClassInfo; }
// ~IEntityClass
ILINE void SetName(const char* name) { m_name = name;}
ILINE const char* GetName() { return m_name; }
protected:
uint32 m_flags;
string m_name;
UserProxyCreateFunc m_proxyCreateFunc;
SEditorClassInfo m_classInfo;
IEntityPropertyHandler *m_pPropertyHandler;
IEntityEventHandler *m_pEventHandler;
std::vector<IEntityPropertyHandler::SPropertyInfo> m_properties;
};
#endif //__MONO_ENTITY_CLASS_H__
Jump to Line
Something went wrong with that request. Please try again.