#include <global_storage.h>
Public Member Functions | |
virtual void | setSize (unsigned int size)=0 |
virtual uint32 | getEntries (unsigned int pos, unsigned int n) const =0 |
virtual void | setEntries (unsigned int pos, unsigned int n, uint32 val)=0 |
virtual void | save (Common::WriteStream *ws)=0 |
virtual bool | load (Common::ReadStream *rs, uint32 version)=0 |
Base class for globals that are accessed by the Usecode. In U8 this is a bitfield, in Crusader it's a byte array.
|
pure virtual |
get a value
pos | zero-based position |
n | number of entries to read |
Implemented in Ultima::Ultima8::ByteSet, and Ultima::Ultima8::BitSet.
|
pure virtual |
set a value
pos | zero-based position |
n | number of entries (no greater than one uint32-worth) |
val | the value to set |
Implemented in Ultima::Ultima8::ByteSet, and Ultima::Ultima8::BitSet.