Blame view

ios/Runner/Wowgame/Classes/game_toy/ToyGameConfigParser.h 775 Bytes
5daad4bc   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
  //
  //  ToyGameConfigParser.h
  //  SteveAndMaggieGame
  //
  //  Created by Katarzyna Kalinowska-Górska on 07/05/2019.
  //
  
  #ifndef ToyGameConfigParser_h
  #define ToyGameConfigParser_h
  
  #include <stdio.h>
  #include "ToySubGameScene.h"
  #include "json/document.h"
  
  class ToyGameConfigParser : public ToySubGameScene::GameCreator {
      
  public:
      
      ToyGameConfigParser(std::string configFilePath);
      virtual ~ToyGameConfigParser();
      virtual ToySubGameScene* createGameScene(int gameId, std::string layoutFilePath) override;
      
  protected:
      
      rapidjson::Document* _configJson;
      
      virtual std::string parseGameType();
      virtual ToySubGameScene* createGameScene(int gameId, std::string gameType, std::string layoutFilePath);
  };
  
  #endif /* ToyGameConfigParser_h */