Quellcode durchsuchen

Update README.md

pull/72/head
Sebastiano Mandalà GitHub vor 2 Jahren
Ursprung
Commit
138b30c748
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
1 geänderte Dateien mit 15 neuen und 15 gelöschten Zeilen
  1. +15
    -15
      README.md

+ 15
- 15
README.md Datei anzeigen

@@ -54,27 +54,27 @@ your first entity descriptor:
your first engine to apply behaviours to entities:

```csharp
public class BehaviourForEntityClassEngine : IQueryingEntitiesEngine
public class BehaviourForEntityClassEngine : IQueryingEntitiesEngine
{
public BehaviourForEntityClassEngine(IEntityFunctions entityFunctions)
{
public BehaviourForEntityClassEngine(IEntityFunctions entityFunctions)
{
_entityFunctions = entityFunctions;
}
_entityFunctions = entityFunctions;
}

public EntitiesDB entitiesDB { get; set; }
public EntitiesDB entitiesDB { get; set; }

public void Ready() { }
public void Ready() { }

public void Update()
{
var (components, count) = entitiesDB.QueryEntities<EntityComponent>(ExclusiveGroups.group0);
public void Update()
{
var (components, count) = entitiesDB.QueryEntities<EntityComponent>(ExclusiveGroups.group0);

for (var i = 0; i < count; i++)
components[i].counter++;
}
readonly IEntityFunctions _entityFunctions;
for (var i = 0; i < count; i++)
components[i].counter++;
}
readonly IEntityFunctions _entityFunctions;
}
```

## Why using Svelto.ECS with Unity?


Laden…
Abbrechen
Speichern