Deserializer.pkg 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. $#include "Deserializer.h"
  2. class Deserializer
  3. {
  4. // virtual unsigned Read(void* dest, unsigned size);
  5. virtual unsigned Seek(unsigned position);
  6. virtual const String& GetName() const;
  7. virtual unsigned GetChecksum();
  8. unsigned GetPosition() const;
  9. unsigned GetSize() const;
  10. bool IsEof() const;
  11. int ReadInt();
  12. short ReadShort();
  13. signed char ReadByte();
  14. unsigned ReadUInt();
  15. unsigned short ReadUShort();
  16. unsigned char ReadUByte();
  17. bool ReadBool();
  18. float ReadFloat();
  19. IntRect ReadIntRect();
  20. IntVector2 ReadIntVector2();
  21. Rect ReadRect();
  22. Vector2 ReadVector2();
  23. Vector3 ReadVector3();
  24. Vector3 ReadPackedVector3(float maxAbsCoord);
  25. Vector4 ReadVector4();
  26. Quaternion ReadQuaternion();
  27. Quaternion ReadPackedQuaternion();
  28. Color ReadColor();
  29. BoundingBox ReadBoundingBox();
  30. String ReadString();
  31. String ReadFileID();
  32. StringHash ReadStringHash();
  33. ShortStringHash ReadShortStringHash();
  34. PODVector<unsigned char> ReadBuffer();
  35. ResourceRef ReadResourceRef();
  36. ResourceRefList ReadResourceRefList();
  37. Variant ReadVariant();
  38. Variant ReadVariant(VariantType type);
  39. VariantVector ReadVariantVector();
  40. VariantMap ReadVariantMap();
  41. unsigned ReadVLE();
  42. unsigned ReadNetID();
  43. String ReadLine();
  44. tolua_readonly tolua_property__get_set String& name;
  45. tolua_readonly tolua_property__get_set unsigned checksum;
  46. tolua_readonly tolua_property__get_set unsigned position;
  47. tolua_readonly tolua_property__get_set unsigned size;
  48. tolua_readonly tolua_property__is_set bool eof;
  49. };