Skip to content

Commit

Permalink
Add Update command
Browse files Browse the repository at this point in the history
  • Loading branch information
xavieran committed Feb 29, 2024
1 parent dd890b3 commit 488ec0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 5 additions & 2 deletions bak/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,11 @@ std::unordered_map<unsigned, Scene> LoadScenes(FileBuffer& fb)
static_cast<std::int16_t>(scaled ? chunk.mArguments[4] : 0),
static_cast<std::int16_t>(scaled ? chunk.mArguments[5] : 0)});
flipped = false;
}
break;
} break;
case Actions::UPDATE:
{
currentScene.mActions.emplace_back(Update{});
};
default:
logger.Debug() << "Unhandled action: " << chunk.mAction << "\n";
break;
Expand Down
8 changes: 7 additions & 1 deletion bak/sceneData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ struct Delay
std::uint16_t mDelayMs; // units??
};

struct Update
{
};


struct SetColors
{
unsigned mSlot; // which slot palette to pull colors from
Expand All @@ -195,7 +200,8 @@ using SceneAction = std::variant<
DisableClipRegion,
DrawRect,
DrawScreen,
DrawSprite>;
DrawSprite,
Update>;

std::ostream& operator<<(std::ostream& os, const SceneAction& sa);

Expand Down

0 comments on commit 488ec0b

Please sign in to comment.