Deserializer.pkg 1.5 KB

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