Blame view

ios/Runner/Wowgame/Classes/game_halloween/HGameConfigParser.h 858 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
32
  //
  //  HGameConfigParser.h
  //  SteveAndMaggieGame
  //
  //  Created by Katarzyna Kalinowska-Górska on 07/05/2019.
  //
  
  #ifndef HGameConfigParser_h
  #define HGameConfigParser_h
  
  #include <stdio.h>
  #include "HSubGameScene.h"
  #include "json/document.h"
  
  class HGameConfigParser : public HSubGameScene::GameCreator {
      
  public:
      
      HGameConfigParser(std::string configFilePath);
      virtual ~HGameConfigParser();
      virtual HSubGameScene* createGameScene(std::string layoutFilePath) override;
      
  protected:
      
      rapidjson::Document* _configJson;
      
      virtual std::string parseGameType();
      virtual void parseSoundInfoFile(std::string soundFolderPath, std::string filePath, std::map<std::string, float>& mapToFill);
      virtual HSubGameScene* createGameScene(std::string gameType, std::string layoutFilePath);
  };
  
  #endif /* HGameConfigParser_h */