Commit Graph

21 Commits

Author SHA1 Message Date
Trevor Slocum a391b14ff3 Add Query 2023-02-08 17:22:03 -08:00
Trevor Slocum d6e9439273 Update README 2022-06-13 14:51:18 -07:00
Trevor Slocum 945186bd28 Update GOHAN_DEBUG documentation 2022-06-13 02:47:42 -07:00
Trevor Slocum d6caa67781 Propagate entity changes before each system update and draw 2022-06-13 02:36:37 -07:00
Trevor Slocum c66dd322f9 Remove secondary component cache 2022-06-11 01:05:47 -07:00
Trevor Slocum 09892c0524 Rename variable 'entity' to 'e' 2022-06-10 17:44:51 -07:00
Trevor Slocum 249d547332 Add Entity.With 2022-02-10 12:21:03 -08:00
Trevor Slocum 5cd926a1b2 Rename example components 2022-02-02 22:27:29 -08:00
Trevor Slocum 193532a951 Refactor System interface
Systems now specify their components via public fields.
2022-01-31 20:10:24 -08:00
Trevor Slocum 0231e09ad7 Update README 2022-01-05 17:55:15 -08:00
Trevor Slocum 263cd48bca Add World.Entities
World.Entities returns all active entities.
2021-12-29 12:59:12 -08:00
Trevor Slocum e08cfe7970 Print Component name when debugging 2021-12-11 21:04:15 -08:00
Trevor Slocum 5e7318e6a2 Optimize removing an Entity from a slice of entities
Avoid creating a new slice.
2021-12-09 20:21:25 -08:00
Trevor Slocum 3c7785e5e5 Add World.Preallocate
This function creates and immediately removes the specified number of entities.
2021-12-09 19:49:51 -08:00
Trevor Slocum 21d6f53dcc Rename statistics functions 2021-12-08 19:47:34 -08:00
Trevor Slocum 62caf1bdd2 Add additional benchmarks and optimize
Allocate memory less often.
2021-12-07 19:57:02 -08:00
Trevor Slocum 83c9c1fb0c Refactor System
Systems must now specify required and optional components separately.
2021-12-06 21:03:09 -08:00
Trevor Slocum 039863b55b Add World
This enables applications to use multiple instances.
2021-12-05 17:17:18 -08:00
Trevor Slocum 8d4dabd62e Add benchmarks and optimize
Store all data in slices rather than maps.
2021-11-22 11:18:28 -08:00
Trevor Slocum a820927a43 Add ActiveEntities, UpdatedEntities and DrawnEntities
These functions return information particularly useful when debugging
and profiling an application.
2021-11-21 18:58:41 -08:00
Trevor Slocum 33ec0b1d86 Initial commit 2021-11-18 21:06:07 -08:00