Blame view

ios/Runner/Wowgame/Classes/Parsing/GameParsing/GameConfigParser.h 742 Bytes
cb213901   xiaoyu   添加一个游戏的源码和编译选项
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  //
  //  GameConfigParser.h
  //  SteveAndMaggieGame
  //
  //  Created by Katarzyna Kalinowska-Górska on 07/05/2019.
  //
  
  #ifndef GameConfigParser_h
  #define GameConfigParser_h
  
  #include <stdio.h>
  #include "SubGameScene.h"
  #include "json/document.h"
  
  class GameConfigParser : public SubGameScene::GameCreator {
      
  public:
      
      GameConfigParser(std::string configFilePath);
      virtual ~GameConfigParser();
      virtual SubGameScene* createGameScene(int gameId, std::string layoutFilePath) override;
      
  protected:
      
      rapidjson::Document* _configJson;
      
      virtual std::string parseGameType();
      virtual SubGameScene* createGameScene(int gameId, std::string gameType, std::string layoutFilePath);
  };
  
  #endif /* GameConfigParser_h */