mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-14 10:46:08 +00:00
Start CModelData, cleanup CFactoryFnReturn usage
This commit is contained in:
@@ -3,27 +3,12 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "Kyoto/IObjectStore.hpp"
|
||||
#include "Kyoto/Streams/CInputStream.hpp"
|
||||
#include "Kyoto/TToken.hpp"
|
||||
|
||||
class CFactoryMgr {
|
||||
public:
|
||||
private:
|
||||
uchar pad[0x38];
|
||||
};
|
||||
|
||||
class CFactoryFnReturn {
|
||||
public:
|
||||
template < typename T >
|
||||
CFactoryFnReturn(T* ptr) : obj(TToken< T >::GetIObjObjectFor(ptr).release()) {}
|
||||
|
||||
const rstl::auto_ptr<CObjOwnerDerivedFromIObjUntyped>& GetObjForTransfer() const { return obj; }
|
||||
private:
|
||||
rstl::auto_ptr< CObjOwnerDerivedFromIObjUntyped > obj;
|
||||
};
|
||||
|
||||
CFactoryFnReturn FStringTableFactory(const SObjectTag& tag, CInputStream& in,
|
||||
const CVParamTransfer& xfer);
|
||||
|
||||
#endif // _CFACTORYMGR
|
||||
|
||||
Reference in New Issue
Block a user