Added basic lists

This commit is contained in:
Brychan Dempsey 2021-03-25 19:38:22 +13:00
parent 0974d86000
commit 85c3470569

View File

@ -0,0 +1,30 @@
/**
* ECS root file
*
* Contributors:
* Brychan Dempsey - brychand@hotmail.com
*/
import java.util.*;
public class ECS {
// Entities in an ECS are just a unique integer
List<Integer> entities = new ArrayList<>();
// Components are either primitive types or class/struct definitions, with an additional list associating
// the entities the component is assigned to
List<Object> components = new ArrayList<>();
// Systems are user-defined functions that are called by the game engine, usually at a regular interval such
// as between every render frame. It must be able to find all instances of a specific component, in order
// to update/read its data. A component
List<Object> systems = new ArrayList<>();
int entityIndex = 0;
int componentIndex = 0;
int systemIndex = 0;
Integer createEntity(){
}
}