]>
code.bitgloo.com Git - clyne/entityx.git/log
Conrad Mercer [Thu, 14 Jun 2018 01:07:48 +0000 (10:37 +0930)]
Update to brace initialisation to allow for easy aggregate use
domdom [Tue, 11 Jul 2017 23:39:10 +0000 (09:39 +1000)]
Fix typo
lyout -> layout
Alec Thomas [Tue, 21 Feb 2017 02:35:03 +0000 (13:35 +1100)]
Link to Gitter and benchmarks by @abeimler
Alec Thomas [Wed, 8 Feb 2017 01:59:53 +0000 (17:59 -0800)]
Merge pull request #174 from jarrettchisholm/master
Fix C++11 feature checking for Microsoft Visual C++ Build Tools 2015
Alec Thomas [Sun, 5 Feb 2017 03:39:03 +0000 (19:39 -0800)]
Gitter link
Jarrett Chisholm [Mon, 16 Jan 2017 04:12:50 +0000 (23:12 -0500)]
turn off extensions (so that it uses c++11 instead of gnu++11)
Jarrett Chisholm [Mon, 16 Jan 2017 04:07:58 +0000 (23:07 -0500)]
syntax error fix (for real this time)
Jarrett Chisholm [Mon, 16 Jan 2017 04:06:22 +0000 (23:06 -0500)]
Revert "try different cmake ppa"
This reverts commit
e1429b611d89d35b145a808e5c6debf7d94a8584 .
Jarrett Chisholm [Mon, 16 Jan 2017 04:02:50 +0000 (23:02 -0500)]
try different cmake ppa
Jarrett Chisholm [Mon, 16 Jan 2017 04:00:51 +0000 (23:00 -0500)]
syntax error
Jarrett Chisholm [Mon, 16 Jan 2017 03:57:09 +0000 (22:57 -0500)]
update cmake
Jarrett Chisholm [Mon, 16 Jan 2017 03:49:42 +0000 (22:49 -0500)]
We don't need to specify c++11 flag
Jarrett Chisholm [Mon, 16 Jan 2017 03:45:02 +0000 (22:45 -0500)]
fix C++11 feature checking for Microsoft Visual C++ Build Tools 2015
Alec Thomas [Sat, 7 Jan 2017 12:06:00 +0000 (23:06 +1100)]
Updates to example.
- Fade in bodies.
- Spin particles per their rotation (this fell by the wayside when
translated to a vertex array).
Alec Thomas [Thu, 5 Jan 2017 23:36:28 +0000 (10:36 +1100)]
Use std::shared_ptr<sf::Shape> directly as component in example.
Alec Thomas [Wed, 28 Dec 2016 21:39:24 +0000 (08:39 +1100)]
Merge pull request #167 from jarrettchisholm/master
Fix for issue #145
Alec Thomas [Wed, 28 Dec 2016 21:38:36 +0000 (08:38 +1100)]
Merge pull request #169 from lethal-guitar/component-operator-star
Add dereference operator to ComponentHandle
lethal-guitar [Wed, 28 Dec 2016 14:50:28 +0000 (15:50 +0100)]
Add dereference operator to ComponentHandle
This makes it possible to write code like this:
auto& componentRef = *someEntity.component<Position>();
This was already possible previously, but required calling .get() on the
component handle.
Jarrett Chisholm [Sun, 25 Dec 2016 05:55:33 +0000 (00:55 -0500)]
fix compile issue with gcc 6
Alec Thomas [Sat, 24 Dec 2016 13:30:20 +0000 (00:30 +1100)]
Merge pull request #166 from sjaustirni/patch-1
Fix copy&paste mistake in CMakeLists.txt
sjaustirni [Thu, 22 Dec 2016 16:43:23 +0000 (17:43 +0100)]
Fix copy&paste mistake in CMakeLists.txt
A one-word fix in copy&paste mistake in the section for checking C++11 features.
Alec Thomas [Mon, 31 Oct 2016 03:51:16 +0000 (14:51 +1100)]
Merge pull request #157 from lethal-guitar/cmake-messages-use-status
CMake: Use 'STATUS' message type for non-error messages
lethal-guitar [Sat, 29 Oct 2016 08:18:49 +0000 (10:18 +0200)]
Use 'STATUS' message type for non-error messages
Using the message() command without the mode keyword makes those messages
appear in red when using cmake-gui, which makes them look like errors.
By specifying the type as STATUS, they look like regular informative
messages.
Alec Thomas [Sun, 23 Oct 2016 23:55:22 +0000 (10:55 +1100)]
Merge pull request #156 from asmw/cmake_includes
Set build_interface directories for integrated builds
Sumedha Widyadharma [Sun, 23 Oct 2016 13:56:18 +0000 (15:56 +0200)]
Set build_interface directories for integrated builds
This makes it very easy to integrate entityx into a build.
I.e:
add_subdirectories(3rdparty/entityx)
target_link_libraries(my_target entityx[_shared])
This makes #include entityx/entityx.h just work.
Alec Thomas [Sun, 23 Oct 2016 13:29:55 +0000 (00:29 +1100)]
Merge pull request #155 from asmw/master
Fix a typo
Sumedha Widyadharma [Sun, 23 Oct 2016 13:27:48 +0000 (15:27 +0200)]
Fix a typo
Alec Thomas [Sat, 22 Oct 2016 23:12:00 +0000 (10:12 +1100)]
Merge pull request #154 from FrankStain/master
std::hash for const Entity implemented. #153
Frank Stein [Fri, 21 Oct 2016 22:04:15 +0000 (00:04 +0200)]
std::hash for const Entity implemented.
Alec Thomas [Wed, 13 Apr 2016 00:59:24 +0000 (10:59 +1000)]
Add appveyor.yml
Alec Thomas [Wed, 13 Apr 2016 00:58:33 +0000 (10:58 +1000)]
Merge pull request #142 from roig/master
Fixed shared library compilation and Function to retrieve the entity from ComponentHandle
Daniel Guzmán [Wed, 13 Apr 2016 00:12:53 +0000 (02:12 +0200)]
Fix running tests
Daniel Guzmán [Wed, 13 Apr 2016 00:05:20 +0000 (02:05 +0200)]
Dependencies for test projects added
Daniel Guzman [Tue, 12 Apr 2016 22:26:34 +0000 (00:26 +0200)]
Fix ident.
Daniel Guzman [Sun, 10 Apr 2016 20:43:35 +0000 (22:43 +0200)]
Minor fix due to copy-paste of entity() function
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.
Alec Thomas [Fri, 8 Apr 2016 11:25:16 +0000 (21:25 +1000)]
Merge pull request #140 from zackthehuman/copy_construct_entities
Enable Entity cloning via EntityManager::create_from_copy
Zack Mulgrew [Mon, 29 Feb 2016 09:22:57 +0000 (01:22 -0800)]
Allow Entity cloning via EntityManager::create_from_copy
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
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.
Frank Stein [Wed, 16 Mar 2016 19:08:41 +0000 (21:08 +0200)]
Removing of copy-paste issue.
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
Zack Mulgrew [Sat, 27 Feb 2016 10:03:50 +0000 (02:03 -0800)]
Trigger ComponentRemovedEvent on Entity::destroy
Zack Mulgrew [Sat, 27 Feb 2016 09:51:08 +0000 (01:51 -0800)]
Add ComponentHelper and base class, no functionality
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 .
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 .
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 .
Alec Thomas [Fri, 26 Feb 2016 00:27:15 +0000 (11:27 +1100)]
Fix apt-get line
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()
Zack Mulgrew [Sat, 6 Feb 2016 04:14:39 +0000 (20:14 -0800)]
Revert change made regarding component inheritance
Zack Mulgrew [Thu, 4 Feb 2016 08:04:46 +0000 (00:04 -0800)]
Fix method name to be consistent with others
Zack Mulgrew [Thu, 4 Feb 2016 07:50:09 +0000 (23:50 -0800)]
Update README to reflect how components are removed before entity destruction
Zack Mulgrew [Thu, 4 Feb 2016 07:49:41 +0000 (23:49 -0800)]
Trigger ComponentRemovedEvent for each component before destroying
Zack Mulgrew [Thu, 4 Feb 2016 07:27:35 +0000 (23:27 -0800)]
Split Entity and ComponentHandle into their own headers
Zack Mulgrew [Thu, 4 Feb 2016 06:28:00 +0000 (22:28 -0800)]
Add test 'TestComponentRemovedEventOnEntityDestroyed'
Alec Thomas [Sat, 2 Jan 2016 23:15:17 +0000 (10:15 +1100)]
Use update_all() in example.
Alec Thomas [Sat, 26 Dec 2015 01:26:35 +0000 (12:26 +1100)]
Merge pull request #123 from Bablawn3d5/pr-uint64fix
Pr uint64fix
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.
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.
Stephen Ma [Sat, 19 Dec 2015 22:56:05 +0000 (14:56 -0800)]
Organize CMake generated projects into solution folders.
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.
Stephen Ma [Sun, 20 Dec 2015 00:20:32 +0000 (16:20 -0800)]
Generate seperate debug postfix dll for building in debug.
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
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'.
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.
Stephen Ma [Sun, 20 Dec 2015 00:20:32 +0000 (16:20 -0800)]
Generate seperate debug postfix dll for building in debug.
Alec Thomas [Thu, 10 Dec 2015 22:08:49 +0000 (09:08 +1100)]
Merge pull request #112 from adtennant/patch-1
Update 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.
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.
Rupert Steel [Wed, 16 Sep 2015 07:46:50 +0000 (19:46 +1200)]
Fix size downcast warning on 64 bit builds.
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.
Alec Thomas [Tue, 15 Sep 2015 01:16:19 +0000 (11:16 +1000)]
Fix spurious warning from VC.
Fixes #109.
Alec Thomas [Sun, 19 Jul 2015 01:22:10 +0000 (21:22 -0400)]
Remove ambiguity that old compilers can't resolve.
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.
Alec Thomas [Sun, 5 Jul 2015 22:31:47 +0000 (18:31 -0400)]
Document requirement for VS2015.
Fixes #105.
Alec Thomas [Tue, 23 Jun 2015 15:28:49 +0000 (17:28 +0200)]
Update example.
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.
Alec Thomas [Mon, 22 Jun 2015 13:30:19 +0000 (15:30 +0200)]
Add std::hash<Entity>.
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
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
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;
Sven-Hendrik Haase [Sat, 13 Jun 2015 00:37:25 +0000 (02:37 +0200)]
Fix code example in README.md
Alec Thomas [Sat, 25 Apr 2015 09:13:43 +0000 (19:13 +1000)]
Don't require CMake 3.0.
Alec Thomas [Sat, 25 Apr 2015 03:04:29 +0000 (13:04 +1000)]
Bump to 1.1.2.
Alec Thomas [Fri, 24 Apr 2015 10:43:12 +0000 (20:43 +1000)]
Update example with a vertex array-based particle system.
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.
Alec Thomas [Thu, 23 Apr 2015 04:27:01 +0000 (14:27 +1000)]
Add AppVeyor master status badge.
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
Jason Pleau [Sun, 19 Apr 2015 16:08:38 +0000 (12:08 -0400)]
update versions in CMakeLists.txt
Alec Thomas [Mon, 30 Mar 2015 00:53:41 +0000 (11:53 +1100)]
Test that components aren't reused on deleted entities.
See #92.
Alec Thomas [Thu, 19 Mar 2015 03:15:09 +0000 (14:15 +1100)]
Test for multiple event subscriptions.
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
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.
Alec Thomas [Mon, 16 Feb 2015 03:17:15 +0000 (14:17 +1100)]
More examples projects.
Alec Thomas [Mon, 9 Feb 2015 00:59:48 +0000 (11:59 +1100)]
More README udpates.
Alec Thomas [Mon, 9 Feb 2015 00:57:23 +0000 (11:57 +1100)]
Update README+example for inheritance-free change.
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.
Alec Thomas [Mon, 9 Feb 2015 00:30:14 +0000 (11:30 +1100)]
Components no longer need to be inherited from Component<>.
See #85.
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.
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.