home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 March / Gamestar_82_2006-03_dvd.iso / DVDStar / Editace / quake4_sdkv10.exe / source / framework / declEntityDef.h < prev    next >
C/C++ Source or Header  |  2005-11-14  |  1KB  |  47 lines

  1. // Copyright (C) 2004 Id Software, Inc.
  2. //
  3.  
  4. #ifndef __DECLENTITYDEF_H__
  5. #define __DECLENTITYDEF_H__
  6.  
  7. /*
  8. ===============================================================================
  9.  
  10.     idDeclEntityDef
  11.  
  12. ===============================================================================
  13. */
  14.  
  15. // RAVEN BEGIN
  16. // jsinger: added to support serialization/deserialization of binary decls
  17. #ifdef RV_BINARYDECLS
  18. class idDeclEntityDef : public idDecl, public Serializable<'DED '> {
  19. public:
  20.     virtual void            AddReferences() const;
  21.     virtual void            Write(SerialOutputStream &stream) const;
  22.                             idDeclEntityDef(SerialInputStream &stream);
  23. #else
  24. class idDeclEntityDef : public idDecl {
  25. #endif
  26. // RAVEN END
  27. public:
  28.                             idDeclEntityDef();
  29.     idDict                    dict;
  30.  
  31.     virtual size_t            Size( void ) const;
  32.     virtual const char *    DefaultDefinition() const;
  33.     virtual bool            Parse( const char *text, const int textLength, bool noCaching );
  34.     virtual void            FreeData( void );
  35.     virtual void            Print( void );
  36.  
  37. // RAVEN BEGIN
  38. // jscott: to prevent a recursive crash
  39.     virtual    bool            RebuildTextSource( void ) { return( false ); }
  40. // scork: for detailed error-reporting
  41.     virtual bool            Validate( const char *psText, int iTextLength, idStr &strReportTo ) const;
  42. // RAVEN END
  43.  
  44. };
  45.  
  46. #endif /* !__DECLENTITYDEF_H__ */
  47.