From eee4eec1bb946871a6948c06010cc459962f7c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastiano=20Mandal=C3=A0?= Date: Tue, 12 Apr 2022 13:45:06 +0100 Subject: [PATCH] Update README.md --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 6d5e08a..e08b994 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,9 @@ Svelto.ECS is easy to start with, but full of tricks for expert users. The harde _enginesRoot = new EnginesRoot(simpleSubmissionEntityViewScheduler); var entityFactory = _enginesRoot.GenerateEntityFactory(); - var entityFunctions = _enginesRoot.GenerateEntityFunctions(); //Add an Engine to the enginesRoot to manage the SimpleEntities - var behaviourForEntityClassEngine = new BehaviourForEntityClassEngine(entityFunctions); + var behaviourForEntityClassEngine = new BehaviourForEntityClassEngine(); _enginesRoot.AddEngine(behaviourForEntityClassEngine); //build a new Entity with ID 0 in group0 @@ -56,11 +55,6 @@ your first engine to apply behaviours to entities: ```csharp public class BehaviourForEntityClassEngine : IQueryingEntitiesEngine { - public BehaviourForEntityClassEngine(IEntityFunctions entityFunctions) - { - _entityFunctions = entityFunctions; - } - public EntitiesDB entitiesDB { get; set; } public void Ready() { } @@ -72,8 +66,6 @@ your first engine to apply behaviours to entities: for (var i = 0; i < count; i++) components[i].counter++; } - - readonly IEntityFunctions _entityFunctions; } ```