From d5bc3447b5b33f1d07b39fb13c8f48957f0e8cc9 Mon Sep 17 00:00:00 2001 From: Brychan Dempsey Date: Sun, 6 Jun 2021 14:00:27 +1200 Subject: [PATCH] Rename `entity.md` to `Entity.md` Fixed other page references --- docs/entity/{entity.md => Entity.md} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename docs/entity/{entity.md => Entity.md} (87%) diff --git a/docs/entity/entity.md b/docs/entity/Entity.md similarity index 87% rename from docs/entity/entity.md rename to docs/entity/Entity.md index 2c66def..6930a91 100644 --- a/docs/entity/entity.md +++ b/docs/entity/Entity.md @@ -1,4 +1,4 @@ -*| [JavaECS](../../README.md) | [docs](../overview.md) | [entity](./dir.md) | entity[]().md* +*| [JavaECS](../../README.md) | [docs](../overview.md) | [entity](./dir.md) | Entity[]().md* # Entity ### Contents @@ -22,7 +22,7 @@ e.g. character, vehicle, effect etc. ___An entity contains no further data.___ -In order to be useful, its identifier must be registered to one or more [components](../component/component.md). +In order to be useful, its identifier must be registered to one or more [components](../component/Component.md). Entities are also initialised with a Java [BitSet](https://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html). Each bit represents the index of a component, to determine which component an entity is registered to. @@ -34,6 +34,6 @@ void todo(); ``` ## Notes -* The only requirement for a Entity is that it has a unique ID. A more advanced [entity manager](../manager/entity_manager.md) could implement an ID system with ID regions, or using named IDs. +* The only requirement for a Entity is that it has a unique ID. A more advanced [entity manager](../manager/EntityManager.md) could implement an ID system with ID regions, or using named IDs. Another approach could be to use the first byte as a grouping, in a similar way to how Bethesda Softworks' Skyrim utilises the first byte as a mod index * The maximum number of entities is limited by the size of the container used to store it. E.g., for a 32-bit unsigned integer, there are ~4.3 billion ID's available. But keep in mind that such a large amount of IDs will take significant time for each system to consider.