ScummVM API documentation
Gob::SavePartSprite Class Reference

#include <savefile.h>

Inheritance diagram for Gob::SavePartSprite:
Gob::SavePart

Public Member Functions

 SavePartSprite (uint32 width, uint32 height, bool trueColor=false)
 
bool read (Common::ReadStream &stream) override
 
bool write (Common::WriteStream &stream) const override
 
bool readPalette (const byte *palette)
 
bool readSprite (const Surface &sprite)
 
bool readSpriteRaw (const byte *data, uint32 size)
 
bool writePalette (byte *palette) const
 
bool writeSprite (Surface &sprite) const
 
- Public Member Functions inherited from Gob::SavePart
virtual uint32 getSize () const
 

Static Public Attributes

static const uint32 kVersion = 2
 
static const uint32 kID = MKTAG('S','P','R','T')
 

Additional Inherited Members

- Protected Attributes inherited from Gob::SavePart
SaveHeader _header
 

Detailed Description

A save part holding a sprite.

Member Function Documentation

◆ read()

bool Gob::SavePartSprite::read ( Common::ReadStream stream)
overridevirtual

Read the part (with header) out of the stream.

Implements Gob::SavePart.

◆ write()

bool Gob::SavePartSprite::write ( Common::WriteStream stream) const
overridevirtual

Write the part (with header) into the stream.

Implements Gob::SavePart.

◆ readPalette()

bool Gob::SavePartSprite::readPalette ( const byte *  palette)

Read a palette into the part.

◆ readSprite()

bool Gob::SavePartSprite::readSprite ( const Surface sprite)

Read a sprite into the part.

◆ readSpriteRaw()

bool Gob::SavePartSprite::readSpriteRaw ( const byte *  data,
uint32  size 
)

Read size bytes of raw data into the sprite.

◆ writePalette()

bool Gob::SavePartSprite::writePalette ( byte *  palette) const

Write a palette out of the part.

◆ writeSprite()

bool Gob::SavePartSprite::writeSprite ( Surface sprite) const

Write a sprite out of the part.


The documentation for this class was generated from the following file: