diff --git a/javaecs/src/main/java/nz/ac/massey/programming_project_159333_s1_2021/ECS.java b/javaecs/src/main/java/nz/ac/massey/programming_project_159333_s1_2021/ECS.java new file mode 100644 index 0000000..88a9f5e --- /dev/null +++ b/javaecs/src/main/java/nz/ac/massey/programming_project_159333_s1_2021/ECS.java @@ -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 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 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 systems = new ArrayList<>(); + + + int entityIndex = 0; + int componentIndex = 0; + int systemIndex = 0; + + Integer createEntity(){ + + } + +} \ No newline at end of file