DSIK_C/Game.h
Emil Markiewicz 5f86e80252 first commit
2019-10-31 15:18:38 +01:00

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