]> code.bitgloo.com Git - clyne/entityx.git/log
clyne/entityx.git
9 years agoFix running tests
Daniel Guzmán [Wed, 13 Apr 2016 00:12:53 +0000 (02:12 +0200)]
Fix running tests

9 years agoDependencies for test projects added
Daniel Guzmán [Wed, 13 Apr 2016 00:05:20 +0000 (02:05 +0200)]
Dependencies for test projects added

9 years agoFix ident.
Daniel Guzman [Tue, 12 Apr 2016 22:26:34 +0000 (00:26 +0200)]
Fix ident.

9 years agoMinor fix due to copy-paste of entity() function
Daniel Guzman [Sun, 10 Apr 2016 20:43:35 +0000 (22:43 +0200)]
Minor fix due to copy-paste of entity() function

9 years agoFixed shared library compilation.
Daniel Guzman [Wed, 6 Apr 2016 20:07:07 +0000 (22:07 +0200)]
Fixed shared library compilation.

- Fixed that when ENTITYX_BUILD_SHARED=1 was compiling the static
library and the shared_library. Now it only compiles one of them, shared
or static, but not both. Using visual studio compiler, now, the shared
library doesn't create a .lib file (because it doesn't export anything
which is OK). This will be the next step.

9 years agoAdded a function to retrieve the Entity associated with a component in ComponentHandle
Daniel Guzman [Wed, 6 Apr 2016 16:10:54 +0000 (18:10 +0200)]
Added a function to retrieve the Entity associated with a component in ComponentHandle

9 years agoMerge pull request #137 from FrankStain/master
Alec Thomas [Wed, 16 Mar 2016 21:34:48 +0000 (08:34 +1100)]
Merge pull request #137 from FrankStain/master

Removing of copy-paste issue.

9 years agoRemoving of copy-paste issue.
Frank Stein [Wed, 16 Mar 2016 19:08:41 +0000 (21:08 +0200)]
Removing of copy-paste issue.

9 years agoMerge pull request #134 from zackthehuman/remove_components_on_destroy
Alec Thomas [Sun, 28 Feb 2016 10:45:29 +0000 (21:45 +1100)]
Merge pull request #134 from zackthehuman/remove_components_on_destroy

Re-implement "Remove components on destroy" functionality

9 years agoTrigger ComponentRemovedEvent on Entity::destroy
Zack Mulgrew [Sat, 27 Feb 2016 10:03:50 +0000 (02:03 -0800)]
Trigger ComponentRemovedEvent on Entity::destroy

9 years agoAdd ComponentHelper and base class, no functionality
Zack Mulgrew [Sat, 27 Feb 2016 09:51:08 +0000 (01:51 -0800)]
Add ComponentHelper and base class, no functionality

9 years agoRevert "Split Entity and ComponentHandle into their own headers"
Zack Mulgrew [Fri, 26 Feb 2016 14:26:24 +0000 (06:26 -0800)]
Revert "Split Entity and ComponentHandle into their own headers"

This reverts commit d8c5d0e30980b747749571b5a1e5c3b5b20423b2.

9 years agoRevert "Trigger ComponentRemovedEvent for each component before destroying"
Zack Mulgrew [Fri, 26 Feb 2016 14:26:13 +0000 (06:26 -0800)]
Revert "Trigger ComponentRemovedEvent for each component before destroying"

This reverts commit 070cd89d2ed140594608d252318f444202579a52.

9 years agoRevert "Fix method name to be consistent with others"
Zack Mulgrew [Fri, 26 Feb 2016 14:25:53 +0000 (06:25 -0800)]
Revert "Fix method name to be consistent with others"

This reverts commit f176609c242afd53f6083b3e115227ace10e2eb2.

9 years agoFix apt-get line
Alec Thomas [Fri, 26 Feb 2016 00:27:15 +0000 (11:27 +1100)]
Fix apt-get line

9 years agoMerge pull request #129 from zackthehuman/entity_removal_on_destroy
Alec Thomas [Sat, 6 Feb 2016 04:57:14 +0000 (23:57 -0500)]
Merge pull request #129 from zackthehuman/entity_removal_on_destroy

Emit ComponentRemovedEvent<T> on Entity::destroy()

9 years agoRevert change made regarding component inheritance
Zack Mulgrew [Sat, 6 Feb 2016 04:14:39 +0000 (20:14 -0800)]
Revert change made regarding component inheritance

9 years agoFix method name to be consistent with others
Zack Mulgrew [Thu, 4 Feb 2016 08:04:46 +0000 (00:04 -0800)]
Fix method name to be consistent with others

9 years agoUpdate README to reflect how components are removed before entity destruction
Zack Mulgrew [Thu, 4 Feb 2016 07:50:09 +0000 (23:50 -0800)]
Update README to reflect how components are removed before entity destruction

9 years agoTrigger ComponentRemovedEvent for each component before destroying
Zack Mulgrew [Thu, 4 Feb 2016 07:49:41 +0000 (23:49 -0800)]
Trigger ComponentRemovedEvent for each component before destroying

9 years agoSplit Entity and ComponentHandle into their own headers
Zack Mulgrew [Thu, 4 Feb 2016 07:27:35 +0000 (23:27 -0800)]
Split Entity and ComponentHandle into their own headers

9 years agoAdd test 'TestComponentRemovedEventOnEntityDestroyed'
Zack Mulgrew [Thu, 4 Feb 2016 06:28:00 +0000 (22:28 -0800)]
Add test 'TestComponentRemovedEventOnEntityDestroyed'

9 years agoUse update_all() in example.
Alec Thomas [Sat, 2 Jan 2016 23:15:17 +0000 (10:15 +1100)]
Use update_all() in example.

9 years agoMerge pull request #123 from Bablawn3d5/pr-uint64fix
Alec Thomas [Sat, 26 Dec 2015 01:26:35 +0000 (12:26 +1100)]
Merge pull request #123 from Bablawn3d5/pr-uint64fix

Pr uint64fix

9 years agoFixes uint64_t ambigutity issue on compiling Benchmark_tests.cc on MSVC
Stephen Ma [Sat, 26 Dec 2015 00:10:13 +0000 (16:10 -0800)]
Fixes uint64_t ambigutity issue on compiling Benchmark_tests.cc on MSVC

Always build benchmark test when  ENTITYX_BUILD_TESTING is set.
Expand namespace entityx and std in Benchmarks_test.cc
Fix whitespace to match original Benchmark_test.cc
Fix CMakeFiles to correctly conditionally add Benchmark tests.

9 years agoMerge pull request #120 from Bablawn3d5/pr-nice-folders
Alec Thomas [Thu, 24 Dec 2015 08:08:26 +0000 (19:08 +1100)]
Merge pull request #120 from Bablawn3d5/pr-nice-folders

Organize CMake generated projects into solution folders.

9 years agoOrganize CMake generated projects into solution folders.
Stephen Ma [Sat, 19 Dec 2015 22:56:05 +0000 (14:56 -0800)]
Organize CMake generated projects into solution folders.

9 years agoMerge pull request #119 from PHEN-/pr-sharedfix
Alec Thomas [Mon, 21 Dec 2015 11:13:45 +0000 (22:13 +1100)]
Merge pull request #119 from PHEN-/pr-sharedfix

Generate seperate debug postfix dll for building in debug.

9 years agoGenerate seperate debug postfix dll for building in debug.
Stephen Ma [Sun, 20 Dec 2015 00:20:32 +0000 (16:20 -0800)]
Generate seperate debug postfix dll for building in debug.

9 years agoMerge pull request #118 from PHEN-/pr-sharedfix
Alec Thomas [Mon, 21 Dec 2015 05:53:07 +0000 (16:53 +1100)]
Merge pull request #118 from PHEN-/pr-sharedfix

Fix CMP0054 warnings in CMake >= 3.1

9 years agoRemove use of quoted variables inside if and elseif blocks.
Stephen Ma [Mon, 21 Dec 2015 05:41:19 +0000 (21:41 -0800)]
Remove use of quoted variables inside if and elseif blocks.
Single quote use of literal 'MSVC'.

9 years agoMerge pull request #116 from PHEN-/pr-sharedfix
Alec Thomas [Sun, 20 Dec 2015 03:59:57 +0000 (14:59 +1100)]
Merge pull request #116 from PHEN-/pr-sharedfix

Generate seperate debug postfix dll for building in debug.

9 years agoGenerate seperate debug postfix dll for building in debug.
Stephen Ma [Sun, 20 Dec 2015 00:20:32 +0000 (16:20 -0800)]
Generate seperate debug postfix dll for building in debug.

9 years agoMerge pull request #112 from adtennant/patch-1
Alec Thomas [Thu, 10 Dec 2015 22:08:49 +0000 (09:08 +1100)]
Merge pull request #112 from adtennant/patch-1

Update FindEntityX.cmake

9 years agoUpdate FindEntityX.cmake
Alex Tennant [Thu, 10 Dec 2015 16:28:03 +0000 (16:28 +0000)]
Update FindEntityX.cmake

To be consistent with other CMake modules ENTITYX_LIBRARIES and ENTITYX_INCLUDE_DIRS should be exposed. find_package_handle_standard_args should be used to set ENTITYX_FOUND.

9 years agoMerge pull request #110 from rupertsteel/master
Alec Thomas [Wed, 16 Sep 2015 09:40:43 +0000 (19:40 +1000)]
Merge pull request #110 from rupertsteel/master

Fix size downcast warning on 64 bit builds.

9 years agoFix size downcast warning on 64 bit builds.
Rupert Steel [Wed, 16 Sep 2015 07:46:50 +0000 (19:46 +1200)]
Fix size downcast warning on 64 bit builds.

9 years agoTest that receivers are only called once for each emit.
Alec Thomas [Tue, 15 Sep 2015 01:19:36 +0000 (11:19 +1000)]
Test that receivers are only called once for each emit.

See #109.

9 years agoFix spurious warning from VC.
Alec Thomas [Tue, 15 Sep 2015 01:16:19 +0000 (11:16 +1000)]
Fix spurious warning from VC.

Fixes #109.

10 years agoRemove ambiguity that old compilers can't resolve.
Alec Thomas [Sun, 19 Jul 2015 01:22:10 +0000 (21:22 -0400)]
Remove ambiguity that old compilers can't resolve.

10 years agoAdd `.each<C...>([](C &c...) {})` iteration.
Alec Thomas [Sun, 19 Jul 2015 01:15:23 +0000 (21:15 -0400)]
Add `.each<C...>([](C &c...) {})` iteration.

May break code that uses `EntityManager::View`, as this is now a
template type `EntityManager::View<C...>`.

Fixes #62.

10 years agoDocument requirement for VS2015.
Alec Thomas [Sun, 5 Jul 2015 22:31:47 +0000 (18:31 -0400)]
Document requirement for VS2015.

Fixes #105.

10 years agoUpdate example.
Alec Thomas [Tue, 23 Jun 2015 15:28:49 +0000 (17:28 +0200)]
Update example.

10 years agoAlso pass EntityManager to System::configure().
Alec Thomas [Tue, 23 Jun 2015 14:34:49 +0000 (16:34 +0200)]
Also pass EntityManager to System::configure().

Old configure() left for compatibility.

Fixes #104.

10 years agoAdd std::hash<Entity>.
Alec Thomas [Mon, 22 Jun 2015 13:30:19 +0000 (15:30 +0200)]
Add std::hash<Entity>.

10 years agoMerge pull request #102 from svenstaro/patch-1
Alec Thomas [Sun, 14 Jun 2015 00:30:38 +0000 (10:30 +1000)]
Merge pull request #102 from svenstaro/patch-1

Fix code example in README.md

10 years agoMerge pull request #103 from Nodmgatall/patch-1
Alec Thomas [Sun, 14 Jun 2015 00:30:25 +0000 (10:30 +1000)]
Merge pull request #103 from Nodmgatall/patch-1

Make Receiver inheritance public instead of implicitly private

10 years agoMake Receiver inheritance public instead of implicitly private
Nodmgatall [Sat, 13 Jun 2015 19:51:38 +0000 (21:51 +0200)]
Make Receiver inheritance public instead of implicitly private

Otherwise you get an error when trying to run the example.

/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/entityx/entityx/Event.h: In instantiation of ‘void entityx::EventManager::subscribe(Receiver&) [with E = PlayerInstrucionEvent; Receiver = MovementSystem]’:
/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/src/system_movement.hpp:17:58:   required from here
/home/lemling/Dokumente/Proggen/BaconGameJam/bgj09/entityx/entityx/Event.h:130:26: error: ‘entityx::BaseReceiver’ is an inaccessible base of ‘MovementSystem’
     BaseReceiver &base = receiver;

10 years agoFix code example in README.md
Sven-Hendrik Haase [Sat, 13 Jun 2015 00:37:25 +0000 (02:37 +0200)]
Fix code example in README.md

10 years agoDon't require CMake 3.0.
Alec Thomas [Sat, 25 Apr 2015 09:13:43 +0000 (19:13 +1000)]
Don't require CMake 3.0.

10 years agoBump to 1.1.2.
Alec Thomas [Sat, 25 Apr 2015 03:04:29 +0000 (13:04 +1000)]
Bump to 1.1.2.

10 years agoUpdate example with a vertex array-based particle system.
Alec Thomas [Fri, 24 Apr 2015 10:43:12 +0000 (20:43 +1000)]
Update example with a vertex array-based particle system.

10 years agoFix a bunch of constness issues (fixes #95).
Alec Thomas [Fri, 24 Apr 2015 01:47:33 +0000 (11:47 +1000)]
Fix a bunch of constness issues (fixes #95).

- Use SFINAE to prevent non-const access to component<C>().
- Correctly de-const component types before accessing
  Component<C>::family(). Avoids accidentally assigning new family IDs.
- ComponentHandle should handle const propagation correctly now.
- ComponentHandle.manager_ should now be `const EntityManager` where
  appropriate.

10 years agoAdd AppVeyor master status badge.
Alec Thomas [Thu, 23 Apr 2015 04:27:01 +0000 (14:27 +1000)]
Add AppVeyor master status badge.

10 years agoMerge pull request #94 from jpleau/cmake_soname
Alec Thomas [Sun, 19 Apr 2015 23:37:13 +0000 (09:37 +1000)]
Merge pull request #94 from jpleau/cmake_soname

update versions in CMakeLists.txt

10 years agoupdate versions in CMakeLists.txt
Jason Pleau [Sun, 19 Apr 2015 16:08:38 +0000 (12:08 -0400)]
update versions in CMakeLists.txt

10 years agoTest that components aren't reused on deleted entities.
Alec Thomas [Mon, 30 Mar 2015 00:53:41 +0000 (11:53 +1100)]
Test that components aren't reused on deleted entities.

See #92.

10 years agoTest for multiple event subscriptions.
Alec Thomas [Thu, 19 Mar 2015 03:15:09 +0000 (14:15 +1100)]
Test for multiple event subscriptions.

10 years agoMerge pull request #89 from tahsmith/master
Alec Thomas [Wed, 4 Mar 2015 01:33:42 +0000 (12:33 +1100)]
Merge pull request #89 from tahsmith/master

Remove user defined constructors for Entity

10 years agoRemove user defined constructors for Entity that are equivalent to the compiler gener...
tahsmith [Wed, 4 Mar 2015 01:07:09 +0000 (12:07 +1100)]
Remove user defined constructors for Entity that are equivalent to the compiler generated ones.

10 years agoMore examples projects.
Alec Thomas [Mon, 16 Feb 2015 03:17:15 +0000 (14:17 +1100)]
More examples projects.

10 years agoMore README udpates.
Alec Thomas [Mon, 9 Feb 2015 00:59:48 +0000 (11:59 +1100)]
More README udpates.

10 years agoUpdate README+example for inheritance-free change.
Alec Thomas [Mon, 9 Feb 2015 00:57:23 +0000 (11:57 +1100)]
Update README+example for inheritance-free change.

10 years agoEvents no longer need to be inherited from Event, they can be any class.
Alec Thomas [Mon, 9 Feb 2015 00:31:43 +0000 (11:31 +1100)]
Events no longer need to be inherited from Event, they can be any class.

See #85.

10 years agoComponents no longer need to be inherited from Component<>.
Alec Thomas [Mon, 9 Feb 2015 00:30:14 +0000 (11:30 +1100)]
Components no longer need to be inherited from Component<>.

See #85.

10 years agoMerge pull request #84 from Gronis/master
Alec Thomas [Thu, 5 Feb 2015 14:26:05 +0000 (01:26 +1100)]
Merge pull request #84 from Gronis/master

Added unsubscribe feature to EventManager.

10 years agoAdded unsubscribe feature to EventManager. Also added tests in Event_test.cc that...
robin [Thu, 5 Feb 2015 00:06:08 +0000 (01:06 +0100)]
Added unsubscribe feature to EventManager. Also added tests in Event_test.cc that checks that it's working correctly.

10 years agoMerge pull request #79 from sansumbrella/component_replace
Alec Thomas [Thu, 15 Jan 2015 00:26:09 +0000 (11:26 +1100)]
Merge pull request #79 from sansumbrella/component_replace

Entity::replace<Component> method.

10 years agoEntity::replace<Component> method.
David Wicks [Wed, 14 Jan 2015 17:52:27 +0000 (12:52 -0500)]
Entity::replace<Component> method.

Avoid the client-side song and dance around assignment in cases where
a component of the same type may already be assigned to the entity.

10 years agoUse a vector for the free list. std::list is mind bogglingly slow.
Alec Thomas [Tue, 30 Dec 2014 23:49:14 +0000 (10:49 +1100)]
Use a vector for the free list. std::list is mind bogglingly slow.

10 years agoCMake fix for AppleClang.
Alec Thomas [Wed, 24 Dec 2014 09:07:50 +0000 (20:07 +1100)]
CMake fix for AppleClang.

10 years agoMerge pull request #76 from excaliburHisSheath/master
Alec Thomas [Sun, 21 Dec 2014 00:39:56 +0000 (11:39 +1100)]
Merge pull request #76 from excaliburHisSheath/master

Add SystemManager::update_all() Method

10 years agoRename SystemManager::update_all() and Add Documentation
David LeGare [Sat, 20 Dec 2014 16:25:47 +0000 (10:25 -0600)]
Rename SystemManager::update_all() and Add Documentation

- Renamed SystemManager::updateAll() to SystemManager::update_all() to
make it consistent with the existing naming convention.
- Added documentation for SystemManager::update_all().

10 years agoAdd Non-Templated SystemManager::update() Method
David LeGare [Sat, 20 Dec 2014 03:52:47 +0000 (21:52 -0600)]
Add Non-Templated SystemManager::update() Method

- Added a non-templated updateAll() method to the SystemManager that
updates all systems in the manager.
- Adds a test for updateAll().

10 years agoMerge pull request #73 from MarioLiebisch/cmake-additions
Alec Thomas [Tue, 16 Dec 2014 02:53:25 +0000 (13:53 +1100)]
Merge pull request #73 from MarioLiebisch/cmake-additions

Added CMake Find_Package script and debug suffix

10 years agoAdded CMake Find_Package script and debug suffix
Mario Liebisch [Mon, 15 Dec 2014 20:35:51 +0000 (21:35 +0100)]
Added CMake Find_Package script and debug suffix

* This allows easy inclusion of EntityX in CMake projects using
`Find_Package(EntityX)`.
* Also debug versions now use the `-d` suffix, no longer overwriting
release builds (e.g. `entityx-d.lib` rather than `entityx.lib`).

10 years agoMerge pull request #72 from eco/patch-1
Alec Thomas [Sun, 14 Dec 2014 23:00:48 +0000 (10:00 +1100)]
Merge pull request #72 from eco/patch-1

Don't use dereference operator in events example

10 years agoDon't use dereference operator in events example
Brad Anderson [Sun, 14 Dec 2014 09:25:08 +0000 (02:25 -0700)]
Don't use dereference operator in events example

10 years agoMerge pull request #69 from jpleau/examples
Alec Thomas [Sun, 7 Dec 2014 22:53:44 +0000 (09:53 +1100)]
Merge pull request #69 from jpleau/examples

example: typo in compilation command, replace arial with a free font

10 years agoMerge pull request #70 from jpleau/libdir
Alec Thomas [Sun, 7 Dec 2014 22:53:10 +0000 (09:53 +1100)]
Merge pull request #70 from jpleau/libdir

add CMAKE_INSTALL_LIBDIR

10 years agoadd CMAKE_INSTALL_LIBDIR
Jason Pleau [Sun, 7 Dec 2014 19:30:15 +0000 (14:30 -0500)]
add CMAKE_INSTALL_LIBDIR

Keeps the default to 'lib', while allowing to use it like so:

-DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu

10 years agoexample: fix compilation command
Jason Pleau [Sun, 7 Dec 2014 16:56:43 +0000 (11:56 -0500)]
example: fix compilation command

10 years agoexample: replace arial with a free font
Jason Pleau [Sun, 7 Dec 2014 16:55:39 +0000 (11:55 -0500)]
example: replace arial with a free font

Arial is a proprietary font and cannot be included in another package in
distributions like Debian. Replaced it with Liberation.

10 years agoAdd SONAME. Fixes #65.
Alec Thomas [Mon, 1 Dec 2014 22:54:03 +0000 (08:54 +1000)]
Add SONAME. Fixes #65.

10 years agoInclude cmath in example. Fixes #66.
Alec Thomas [Mon, 1 Dec 2014 11:23:00 +0000 (21:23 +1000)]
Include cmath in example. Fixes #66.

10 years agoHack for VS internal error. Fixes #23 (again).
Alec Thomas [Fri, 31 Oct 2014 05:24:40 +0000 (16:24 +1100)]
Hack for VS internal error. Fixes #23 (again).

10 years agoDeltaTime -> TimeDelta
Alec Thomas [Mon, 27 Oct 2014 01:57:11 +0000 (12:57 +1100)]
DeltaTime -> TimeDelta

10 years agoFix RPATH issue on OSX.
Alec Thomas [Mon, 27 Oct 2014 00:27:19 +0000 (11:27 +1100)]
Fix RPATH issue on OSX.

10 years agoMerge branch 'master' of github.com:alecthomas/entityx
Alec Thomas [Mon, 27 Oct 2014 00:20:05 +0000 (11:20 +1100)]
Merge branch 'master' of github.com:alecthomas/entityx

10 years agoFix example.
Alec Thomas [Mon, 27 Oct 2014 00:17:20 +0000 (11:17 +1100)]
Fix example.

10 years agoMerge pull request #61 from tivek/remove_c_std_libraries
Alec Thomas [Sun, 26 Oct 2014 23:28:33 +0000 (10:28 +1100)]
Merge pull request #61 from tivek/remove_c_std_libraries

Replace stdint.h with cstdint

10 years agoConfigurable delta time type via -DENTITYX_DT_TYPE=<type>.
Alec Thomas [Sun, 26 Oct 2014 23:26:30 +0000 (10:26 +1100)]
Configurable delta time type via -DENTITYX_DT_TYPE=<type>.

Fixes #60.

10 years agofix typo
tivek [Sat, 25 Oct 2014 19:51:30 +0000 (21:51 +0200)]
fix typo

10 years agoDo not assume integer types in global namespace
Tomislav Ivek [Sat, 25 Oct 2014 19:38:27 +0000 (21:38 +0200)]
Do not assume integer types in global namespace

10 years agoInclude cstdint instead of stdint.h
Tomislav Ivek [Sat, 25 Oct 2014 19:04:33 +0000 (21:04 +0200)]
Include cstdint instead of stdint.h

10 years agoDebug -> All, now that it is faster.
Alec Thomas [Thu, 23 Oct 2014 03:33:50 +0000 (14:33 +1100)]
Debug -> All, now that it is faster.

10 years agoSort free list before iterating over all entities.
Alec Thomas [Thu, 23 Oct 2014 03:33:17 +0000 (14:33 +1100)]
Sort free list before iterating over all entities.

This should make iteration over all entities much faster.

10 years agoAdd test for component destructor called when entity is destroyed.
Alec Thomas [Tue, 21 Oct 2014 03:04:51 +0000 (14:04 +1100)]
Add test for component destructor called when entity is destroyed.

10 years agoAdd test case for component destruction.
Alec Thomas [Mon, 20 Oct 2014 23:46:38 +0000 (10:46 +1100)]
Add test case for component destruction.

10 years agoActually call component destructors on reset().
Alec Thomas [Mon, 20 Oct 2014 23:40:44 +0000 (10:40 +1100)]
Actually call component destructors on reset().