From 41b86ccf729932b431f401c9dd7e9dbb07e9ac46 Mon Sep 17 00:00:00 2001
From: Mikhail <99481254+DCFApixels@users.noreply.github.com>
Date: Thu, 11 Apr 2024 01:20:09 +0800
Subject: [PATCH] Update README.md
---
README.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index d90b5ca..732ad14 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ The framework can also be added to the project as source code.
# Code Example
```csharp
-class VelocitySystemDI : IEcsRunProcess
+class VelocitySystemDI : IEcsRun
{
class Aspect : EcsAspectAuto
{
@@ -60,9 +60,9 @@ class VelocitySystemDI : IEcsRunProcess
public void Run()
{
- foreach (var e in _world.Where(out Aspect s))
+ foreach (var e in _world.Where(out Aspect a))
{
- s.poses.Write(e).position += s.velocities.Read(e).value * _time.DeltaTime;
+ a.poses.Get(e).position += a.velocities.Read(e).value * _time.DeltaTime;
}
}
}
@@ -71,7 +71,7 @@ class VelocitySystemDI : IEcsRunProcess
Same code but without AutoInjections
```csharp
-class VelocitySystem : IEcsRunProcess, IEcsInject, IEcsInject
+class VelocitySystem : IEcsRun, IEcsInject, IEcsInject
{
class Aspect : EcsAspect
{
@@ -93,9 +93,9 @@ class VelocitySystem : IEcsRunProcess, IEcsInject, IEcsInject