Stardew Engine
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1#ifndef MAIN_H
2#define MAIN_H
3
4#include "DrawContext.h"
5#include "InputContext.h"
6#include "Network.h"
7#include <stdbool.h>
8
11
13typedef void(*ArgHandlerFn)(int argc, char** argv, int onArg);
14
15int EngineStart(int argc, char** argv, GameInitFn init);
16
17
18/*
19 TODO:
20 Change functions which pass pointers to these to just use these global getters
21*/
24
25void Engine_ParseCmdArgs(int argc, char** argv, ArgHandlerFn handlerFn);
26
39
40extern struct CommandLineArgs gCmdArgs;
41
42#endif // ! MAIN_H
GameRole
Definition Network.h:67
void(* GameInitFn)(InputContext *, DrawContext *)
Definition main.h:12
struct CommandLineArgs gCmdArgs
Definition main.c:25
void(* ArgHandlerFn)(int argc, char **argv, int onArg)
Definition main.h:13
void Engine_ParseCmdArgs(int argc, char **argv, ArgHandlerFn handlerFn)
Definition main.c:107
int Mn_GetScreenHeight()
Definition main.c:42
int Mn_GetScreenWidth()
Definition main.c:37
InputContext * GetInputContext()
Definition main.c:32
int EngineStart(int argc, char **argv, GameInitFn init)
Definition main.c:222
DrawContext * GetDrawContext()
Definition main.c:27
Definition main.h:28
const char * logfilePath
Definition main.h:36
bool bLogToConsole
Definition main.h:35
enum GameRole role
Definition main.h:29
char * serverAddress
Definition main.h:30
const char * networkSimulatorConfigPath
Definition main.h:37
bool bLogTextColoured
Definition main.h:32
bool bIncludeLogTimeStamps
Definition main.h:33
char * clientAddress
Definition main.h:31
bool bLogTIDs
Definition main.h:34
Definition DrawContext.h:59
Definition InputContext.h:137