1.1 --- a/extensions/sdktools/util.h Wed Mar 12 02:12:47 2008 +0000
1.2 +++ b/extensions/sdktools/util.h Wed Mar 12 02:13:08 2008 +0000
1.3 @@ -42,35 +42,6 @@
1.4 virtual size_t GetEntitySize() = 0;
1.5 };
1.6
1.7 -template <class T>
1.8 -class CEntityFactory : public IEntityFactory
1.9 -{
1.10 -public:
1.11 - CEntityFactory( const char *pClassName )
1.12 - {
1.13 - EntityFactoryDictionary()->InstallFactory( this, pClassName );
1.14 - }
1.15 -
1.16 - IServerNetworkable *Create( const char *pClassName )
1.17 - {
1.18 - T* pEnt = _CreateEntityTemplate((T*)NULL, pClassName);
1.19 - return pEnt->NetworkProp();
1.20 - }
1.21 -
1.22 - void Destroy( IServerNetworkable *pNetworkable )
1.23 - {
1.24 - if ( pNetworkable )
1.25 - {
1.26 - pNetworkable->Release();
1.27 - }
1.28 - }
1.29 -
1.30 - virtual size_t GetEntitySize()
1.31 - {
1.32 - return sizeof(T);
1.33 - }
1.34 -};
1.35 -
1.36 abstract_class IEntityFactoryDictionary
1.37 {
1.38 public:
1.39 @@ -81,7 +52,6 @@
1.40 virtual const char *GetCannonicalName( const char *pClassName ) = 0;
1.41 };
1.42
1.43 -
1.44 class CEntityFactoryDictionary : public IEntityFactoryDictionary
1.45 {
1.46 public: