File main.c
FileList > game > src > main.c
Go to the source code of this file
#include "main.h"#include "GameFramework.h"#include <string.h>#include "Game2DLayer.h"#include "XMLUIGameLayer.h"#include "DynArray.h"#include "Entities.h"#include "EntityQuadTree.h"#include "WfEntities.h"#include "Physics2D.h"#include "WfInit.h"#include "Random.h"#include "WfGameLayerData.h"#include "WfGameLayer.h"#include "WfWorld.h"#include "WfGame.h"#include "WfItem.h"#include "WfUI.h"#include "WfScriptFunctions.h"#include "ANSIColourCodes.h"#include "Log.h"#include "WfVersion.h"#include "WfPersistantGameData.h"#include "WfCmdArgs.h"
Classes
| Type | Name |
|---|---|
| struct | PreEngineCmdLineArgs parsed before the engine is initialized |
Public Types
| Type | Name |
|---|---|
| enum | WfExeMode |
Public Attributes
| Type | Name |
|---|---|
| struct WfGameCmdArgs | gGameArgs = /* multi line expression */ |
Public Functions
| Type | Name |
|---|---|
| void | GameInit (InputContext * pIC, DrawContext * pDC) |
| void | ParseGameCmdLineArgs (int argc, char ** argv, int * onArg) |
| void | WfEngineInit () |
| void | WfPrintVersion () |
| int | main (int argc, char ** argv) |
Public Static Functions
| Type | Name |
|---|---|
| void | KarlMarx () |
| struct PreEngineCmdLineArgs | ParsePreCmdLineArgs (int argc, char ** argv) parse args outside of the game engine mechanism, before the engine is initialized |
Public Types Documentation
enum WfExeMode
enum WfExeMode {
NormalGame,
CreatePersistantDataFile
};
Public Attributes Documentation
variable gGameArgs
struct WfGameCmdArgs gGameArgs;
Public Functions Documentation
function GameInit
void GameInit (
InputContext * pIC,
DrawContext * pDC
)
function ParseGameCmdLineArgs
void ParseGameCmdLineArgs (
int argc,
char ** argv,
int * onArg
)
function WfEngineInit
void WfEngineInit ()
function WfPrintVersion
void WfPrintVersion ()
function main
int main (
int argc,
char ** argv
)
Public Static Functions Documentation
function KarlMarx
static void KarlMarx ()
function ParsePreCmdLineArgs
parse args outside of the game engine mechanism, before the engine is initialized
static struct PreEngineCmdLineArgs ParsePreCmdLineArgs (
int argc,
char ** argv
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/game/src/main.c