DSIK_C/Game.h

23 lines
414 B
C

//
// Created by s444440 on 10/30/19.
//
#ifndef PROJEKTDSIK_GAME_H
#define PROJEKTDSIK_GAME_H
#include "LinkedList.h"
struct Game{
const char* name;
int id;
} typedef Game;
Game* games[100];
int lastGameIndex=0;
Game* CreateNewGame(){
Game* g = malloc(sizeof(Game));
games[lastGameIndex] = g;
lastGameIndex++;
// push(&list, g, sizeof(Game*));
return g;
}
#endif //PROJEKTDSIK_GAME_H