Files
ReSkate/Extension/Console/commands.h
T
AyeZeeBB dce293e25d Fit Check as a plugin: screen capture, the menu's preview turned and read, and what the skater wears
Pull request 326 split into general plugin APIs and contrib/plugins/fit-check:
- reskate.capture (start, stop, discard, state, compare, kept, save): the screen
  recorded before the overlay draws, cut out by the game's depth or by colour,
  saved as GIF, APNG, PNG or WebM with an optional card; the "capture" permission.
- reskate.room.turn: a stand-in pad's stick held over to turn the menu's preview.
- reskate.menu.game and reskate.menu.grid: what the game's menu and its item grid show.
- reskate.outfit.worn, board and title: what the skater wears, by name.
- reskate.files.reveal: a data folder opened in Explorer.
The plugin finds where the turn comes round, eases the stick off, picks evenly
spaced frames and saves them with the board's parts or the outfit on the card.
2026-10-21 17:16:56 -05:00

42 lines
2.2 KiB
C++

#pragma once
#include "Engine/Core/Console/command_registry.h"
#include "Extension/UI/Overlay/overlay.h"
namespace dingosdk::console {
using Model = overlay::Model;
using Commands = Registry<Model>;
using Entry = Commands::Entry;
using Argument = Commands::Argument;
const Commands &game_commands();
Argument argument(std::string name, Type type = Type::text, bool optional = false);
Entry action(std::string name, std::string description, Group group, std::vector<Argument> arguments = {});
Entry variable(std::string name, std::string description, Group group, Argument argument);
State boolean_state(bool available, bool value, std::string reason = {}, std::string detail = {});
void register_movement_commands(Commands &);
void register_ai_commands(Commands &);
void register_settings_commands(Commands &);
void register_world_commands(Commands &);
void register_graphics_commands(Commands &);
void register_progression_commands(Commands &);
void register_object_commands(Commands &);
void register_park_editor_commands(Commands &);
void register_multiplayer_commands(Commands &);
void register_perf_commands(Commands &);
// perf_commands.cpp: starts `perf memory`'s trace with the game when RESKATE_MEMORY_TRACE asks for it.
void start_memory_trace_from_environment() noexcept;
void register_item_commands(Commands &);
// Extension/Rendering/Capture/capture_commands.cpp: `capture depth`, research for reskate.capture.
void register_capture_commands(Commands &);
void register_trainer_commands(Commands &);
void register_replay_keyframes_commands(Commands &);
void register_plugin_commands(Commands &);
// Runtime adapters. Invoked only by the verified game-thread dispatcher.
void request_debug(overlay::DebugAction, bool enabled = false, float value = 0);
void request_feature(overlay::OfflineFeatureGroup, bool enabled);
void request_engine_variable(std::string_view name, bool restore, bool value);
std::string request_named_setting(std::string_view name, std::string_view value, bool restore);
std::string request_reset_named_settings();
void request_level(const std::string &level, const std::string &start, const std::string &sublevel,
const std::string &substart);
} // namespace dingosdk::console