Questions tagged [entityx]

9 questions
2
votes
1 answer

Process returned 0xC0000005 upon program end

While working on a quick prototype on C++, I stumbled over this error. Now, I have read that the code means "access violation", but the origin or reason why is this happening completely eludes me. After narrowing down the cause, I noticed it's…
Magnaillusion
  • 65
  • 2
  • 10
1
vote
1 answer

Template variadic compile error on calling default constructor

I'm having a weird behavior concerning a template method calling a template variadic method and I can't find what's the problem. I'm using Visual Studio Community 2017. The compile error is appearing in the following method : // AScene.hpp #include…
Stéphane G.
  • 127
  • 1
  • 15
1
vote
0 answers

C++ OpenEcs Components dynamically

For those not familiar OpenEcs, it works much like the EntityX library. https://github.com/Gronis/OpenEcs https://github.com/alecthomas/entityx I'm using OpenEcs library and I need do this kind of thing to create an entity with…
1
vote
0 answers

EntityX : how to get just one of entities

How to get just one of the already created entities? Example code; void DrawSystem::update(entityx::EntityManager &es, entityx::EventManager &events, entityx::TimeDelta dt) { es.each ( [this](entityx::Entity entity, Draw &draw) { …
share
  • 315
  • 2
  • 6
0
votes
0 answers

LNK2001 Error even though .cpp is being compiled

I'm working on a project where I'm using Bullet3 to add a Physics Simulation Component-System to EntityX. I'm getting link errors when compiling code, and I can't quite figure out why. Both my header PhysicsSystem.h and the source PhysicsSystem.cpp…
nathan lachenmyer
  • 5,298
  • 8
  • 36
  • 57
0
votes
0 answers

How to design a Controller System and manage different actions?

I am creating a game using EntityX library which handles Entity-Component-System model, and SFML. Right now, I just have four basic components: position, direction, velocity and renderable, plus two systems: a movement system and a render system. I…
user6556145
0
votes
1 answer

How to export a class template static variable DLL windows

I don't know how to export a static variable that is inside a template to my executable. I'm using entityx library that has a template for components: Entity.h : struct BaseComponent { public: typedef size_t Family; protected: static Family…
FrameBuffer
  • 757
  • 1
  • 7
  • 26
0
votes
1 answer

EntityX - Get the new Entity added to the System

In Artemis' Systems you specify what Components are required by the System, i.e. if and Entity at some point has at least all the required components it is considered that it is added to the System, i.e. next frame the System will process it. But in…
Narek
  • 38,779
  • 79
  • 233
  • 389
0
votes
1 answer

EntityX framework entities_with_components preformance

In EntityX EntityManager has a method entities_with_components that returns all entities that have the required components. In the example of Emitting Events I see double usage of that method: for (Entity left_entity :…
Narek
  • 38,779
  • 79
  • 233
  • 389