Added librarys and test application

This commit is contained in:
Gulum
2017-10-22 14:26:55 +02:00
parent 7e0c0d8a6c
commit ac45f1f944
206 changed files with 68009 additions and 13 deletions

33
include/entityx/quick.h Normal file
View File

@@ -0,0 +1,33 @@
/*
* Copyright (C) 2014 Alec Thomas <alec@swapoff.org>
* All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution.
*
* Author: Alec Thomas <alec@swapoff.org>
*/
#pragma once
#include "entityx/Entity.h"
#include "entityx/Event.h"
#include "entityx/System.h"
#include "entityx/config.h"
namespace entityx {
/**
* A convenience class for instantiating an EventManager, EntityManager and
* SystemManager.
*/
class EntityX {
public:
EntityX() : entities(events), systems(entities, events) {}
EventManager events;
EntityManager entities;
SystemManager systems;
};
} // namespace entityx