Skip to content

Commit 8c914e0

Browse files
Updated readme
1 parent cfdbee0 commit 8c914e0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@ public class MainController : Controller {
142142
public class MovementComponent : Component<MovementComponent, MovementSystem> { }
143143
```
144144

145+
**Component properties:** Public properties are the heart of your Components, and are here to provide data for the Systems to use. Properties can be added to components like in any other class and can consist of any kind of type.
146+
147+
```csharp
148+
public class MovementComponent : Component<MovementComponent, MovementSystem> {
149+
public float speed;
150+
public Vector3 targetPosition;
151+
public int[] ids;
152+
public NpcDialog dialog;
153+
}
154+
```
155+
145156
_This section of the documentation is in process!_
146157

147158
### Systems

0 commit comments

Comments
 (0)