Debian Codegraph @

prboom2/src/dsda/playback.h

raw
1 //
2 // Copyright(C) 2022 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Playback
16 //
17
18 #include "doomtype.h"
19
20 #define PLAYBACK_NORMAL 0
21 #define PLAYBACK_JOIN_ON_END 1
22
23 void dsda_RestartPlayback(void);
24 dboolean dsda_JumpToLogicTic(int tic);
25 dboolean dsda_JumpToLogicTicFrom(int tic, int from_tic);
26 void dsda_ExecutePlaybackOptions(void);
27 const char* dsda_ParsePlaybackOptions(void);
28 const char* dsda_PlaybackName(void);
29 void dsda_ClearPlaybackStream(void);
30 void dsda_InitDemoPlayback(void);
31 void dsda_AttachPlaybackStream(const byte* demo_p, int length, int behaviour);
32 void dsda_StorePlaybackPosition(void);
33 void dsda_RestorePlaybackPosition(void);
34 void dsda_JoinDemo(ticcmd_t* cmd);
35 void dsda_TryPlaybackOneTick(ticcmd_t* cmd);