taisei/src/replay/eventcodes.h
Andrei Alexeyev 173c8c3cc6
replay: general refactor
* Split replay.c into multiple files under replay/; improve logical
  separation of replay-related code.
* Separate replay playback state from data.
* Get rid of global static replay struct and avoid unnecessary replay
  copying.
* Replay playback and recording are now independent and may occur
  simultaneously, although this functionality is not yet exposed. This
  enables replay "re-recording" while synthesizing new desync check
  events, possibly at a different rate from the original replay.
* Rate of recorded desync check events can now be controlled with the
  TAISEI_REPLAY_DESYNC_CHECK_FREQUENCY environment variable. The default
  value is 300 as before.
* Probably other stuff I forgot about.
2021-06-16 01:43:10 +03:00

27 lines
803 B
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#ifndef IGUARD_replay_eventcodes_h
#define IGUARD_replay_eventcodes_h
#include "taisei.h"
// NOTE: these are tightly coupled with player and stage systems
typedef enum ReplayEventCode {
EV_PRESS = 0x00,
EV_RELEASE = 0x01,
EV_OVER = 0x02, // replay-only
EV_AXIS_LR = 0x03,
EV_AXIS_UD = 0x04,
EV_CHECK_DESYNC = 0x05, // replay-only
EV_FPS = 0x06, // replay-only
EV_INFLAGS = 0x07,
EV_CONTINUE = 0x08,
} ReplayEventCode;
#endif // IGUARD_replay_eventcodes_h