raze/source/core/cheathandler.h
Christoph Oelckers 66bf8113b8 - implemented the 'god' cheat as a network command.
This was mainly chosen as something simple to get the basics set up.
2020-09-03 00:29:17 +02:00

18 lines
370 B
C

#pragma once
struct cheatseq_t
{
const char *Sequence;
const char* ccmd;
bool (*Handler)(cheatseq_t *);
uint8_t DontCheck;
// This is working data for processing the cheat
uint8_t CurrentArg;
uint8_t Args[6];
const char *Pos;
};
struct event_t;
bool Cheat_Responder(event_t* ev);
void SetCheats(cheatseq_t *cht, int count);
void PlaybackCheat(const char* p);