项目作者: Albert-Corson

项目描述 :
A modular game launcher with hot-swappable graphic libraries
高级语言: C++
项目地址: git://github.com/Albert-Corson/arcade.git
创建时间: 2020-03-24T16:37:22Z
项目社区:https://github.com/Albert-Corson/arcade

开源协议:

下载


Key Management

  • IGame

    • Game
      • asks event to Core
  • Core

    • asks event to ILibGraph
  • ILibGraph

    • Sends events
    • LibGraph
      • Sends events
  • Core

    • receives event from ILibGraph
    • checks key to change the lib (game /graph)
    • sends event back to the IGame
  • IGame

    • Game
      • receives event from Core

Resource (Image / Audio)

Each resource has a type. Each resource has 2 filepath one for the graph and the other for the ascii.

An empty filepath will return true for a call to loadResource.

Resource type

  1. +---> Audio
  2. Type ---|
  3. +---- Image
  • Core:

    • stores resource path

      core.hpp

      1. std::unordered_map<int, Resource>
      2. void loadResource(std::unordered_map<int, Resource>& resources);
  • ILibGraph:

    • LibGraph:
      • Store resource with an id
  • IGame

    • Game
      • when launch, loads resource into the core