mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-30 00:15:47 -04:00
Added serverScript library
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
//========================================================================
|
||||
//
|
||||
// ScriptDictionary.h - interface class to pass dictionaries around. Must be
|
||||
// derived by a real class that hold the dictionary data.
|
||||
//
|
||||
// copyright 2001 Sony Online Entertainment
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#ifndef _INCLUDED_ScriptDictionary_H
|
||||
#define _INCLUDED_ScriptDictionary_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
namespace boost
|
||||
{
|
||||
template <class T> class shared_ptr;
|
||||
}
|
||||
|
||||
|
||||
class ScriptDictionary
|
||||
{
|
||||
public:
|
||||
|
||||
virtual ~ScriptDictionary();
|
||||
|
||||
virtual void serialize(void) = 0;
|
||||
|
||||
const stdvector<int8>::fwd & getSerializedData(void) const;
|
||||
uint32 getCrc(void) const;
|
||||
|
||||
protected:
|
||||
|
||||
ScriptDictionary(void);
|
||||
|
||||
|
||||
stdvector<int8>::fwd m_serializedData;
|
||||
uint32 m_crc;
|
||||
|
||||
private:
|
||||
ScriptDictionary(const ScriptDictionary &);
|
||||
ScriptDictionary & operator = (const ScriptDictionary &);
|
||||
};
|
||||
typedef boost::shared_ptr<ScriptDictionary> ScriptDictionaryPtr;
|
||||
|
||||
|
||||
inline ScriptDictionary::ScriptDictionary(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline ScriptDictionary::~ScriptDictionary()
|
||||
{
|
||||
}
|
||||
|
||||
inline const stdvector<int8>::fwd & ScriptDictionary::getSerializedData(void) const
|
||||
{
|
||||
return m_serializedData;
|
||||
}
|
||||
|
||||
inline uint32 ScriptDictionary::getCrc(void) const
|
||||
{
|
||||
return m_crc;
|
||||
}
|
||||
|
||||
|
||||
#endif // _INCLUDED_ScriptDictionary_H
|
||||
Reference in New Issue
Block a user