Go to the documentation of this file.00001
00002
00003 #ifndef _SCRIPT_H_
00004 #define _SCRIPT_H_
00005
00006 #include <EngineConfig.h>
00007 #include <core/Types.h>
00008 #include <resource/Resource.h>
00009
00010 #include <string>
00011
00012 namespace resource
00013 {
00014 class Serializer;
00015 }
00016
00017 namespace script
00018 {
00019
00023 class ENGINE_PUBLIC_EXPORT Script: public resource::Resource
00024 {
00025 public:
00026
00027 Script(const std::string& name, resource::Serializer* serializer);
00028 virtual ~Script();
00029
00030 const u8* getData() const;
00031
00032 protected:
00033
00034 void initProperties();
00035 bool loadImpl();
00036 void unloadImpl();
00037
00038 u8* mBuffer;
00039 };
00040
00041 }
00042
00043 #endif