Skip to content

Commit

Permalink
Merge branch 'master' into handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 3, 2023
2 parents 20093f5 + dc113d3 commit 1eb6cb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions VortexEngine/src/Modes/Mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Mode
Mode(PatternID id, const PatternArgs &args, const Colorset &set);
Mode(PatternID id, const PatternArgs *args, const Colorset *set);
Mode(const Mode *other);
virtual ~Mode();
~Mode();

// copy and assignment operators
Mode(const Mode &other);
Expand All @@ -57,19 +57,19 @@ class Mode
bool operator!=(const Mode &other) const;

// initialize the mode to initial state
virtual void init();
void init();

// Play the mode
virtual void play();
void play();

// save/load from a buffer for individual mode sharing
virtual bool saveToBuffer(ByteStream &saveBuffer, uint8_t numLeds = 0) const;
virtual bool loadFromBuffer(ByteStream &saveBuffer);
bool saveToBuffer(ByteStream &saveBuffer, uint8_t numLeds = 0) const;
bool loadFromBuffer(ByteStream &saveBuffer);

// save the mode to serial
virtual void serialize(ByteStream &buffer, uint8_t numLeds = 0) const;
void serialize(ByteStream &buffer, uint8_t numLeds = 0) const;
// load the mode from serial (optional led count)
virtual bool unserialize(ByteStream &buffer);
bool unserialize(ByteStream &buffer);

// mode comparison
bool equals(const Mode *other) const;
Expand Down

0 comments on commit 1eb6cb6

Please sign in to comment.