Fixed linux build
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401930
This commit is contained in:
parent
f5c9a0c3e5
commit
b10bf9d31a
@ -42,35 +42,6 @@ public:
|
||||
virtual size_t GetEntitySize() = 0;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
class CEntityFactory : public IEntityFactory
|
||||
{
|
||||
public:
|
||||
CEntityFactory( const char *pClassName )
|
||||
{
|
||||
EntityFactoryDictionary()->InstallFactory( this, pClassName );
|
||||
}
|
||||
|
||||
IServerNetworkable *Create( const char *pClassName )
|
||||
{
|
||||
T* pEnt = _CreateEntityTemplate((T*)NULL, pClassName);
|
||||
return pEnt->NetworkProp();
|
||||
}
|
||||
|
||||
void Destroy( IServerNetworkable *pNetworkable )
|
||||
{
|
||||
if ( pNetworkable )
|
||||
{
|
||||
pNetworkable->Release();
|
||||
}
|
||||
}
|
||||
|
||||
virtual size_t GetEntitySize()
|
||||
{
|
||||
return sizeof(T);
|
||||
}
|
||||
};
|
||||
|
||||
abstract_class IEntityFactoryDictionary
|
||||
{
|
||||
public:
|
||||
@ -81,7 +52,6 @@ public:
|
||||
virtual const char *GetCannonicalName( const char *pClassName ) = 0;
|
||||
};
|
||||
|
||||
|
||||
class CEntityFactoryDictionary : public IEntityFactoryDictionary
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user