From f7da32ae7a6aaa08e99e84d07584375601af56a5 Mon Sep 17 00:00:00 2001 From: Cheelax Date: Sat, 7 Oct 2023 11:23:43 +0200 Subject: [PATCH] change typo --- src/cairo/systems.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/cairo/systems.md b/src/cairo/systems.md index 15b9ed60..ba7b5560 100644 --- a/src/cairo/systems.md +++ b/src/cairo/systems.md @@ -3,10 +3,11 @@ > **IMPORTANT:** Before defining your systems, prioritize permissions. Plan carefully to ensure proper access and security. _tldr;_ -- Systems are just contract functions -- Contracts which contain Systems are given permissions to write to models -- Systems pass a `world` address as their first parameter -- Systems invoke the world contract to mutate the state of models + +- Systems are just contract functions +- Contracts which contain Systems are given permissions to write to models +- Systems pass a `world` address as their first parameter +- Systems invoke the world contract to mutate the state of models ### What are Systems? @@ -48,10 +49,10 @@ mod player_actions { set!( world, ( - Moves { - player, - remaining: 10, - last_direction: Direction::None(()) + Moves { + player, + remaining: 10, + last_direction: Direction::None(()) } ) ); @@ -68,6 +69,6 @@ As you can see a System is like a regular Starknet contract. It can include stor #### `Spawn` function -The spawn function is currently the only function that exists in a system. It is called when a player spawns into the world. It is responsible for setting up the player's initial state. +The spawn function is currently the only function that exists in this system. It is called when a player spawns into the world. It is responsible for setting up the player's initial state. -Read more in the [sozo](../toolchain/sozo/overview.md) docs. \ No newline at end of file +Read more in the [sozo](../toolchain/sozo/overview.md) docs.