From 9ab689527b3ede7750579b1a926cf0cf88813463 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Wed, 3 Feb 2021 16:26:59 +0100 Subject: Add capability to draw rooms --- src/net/cargo.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/net/cargo.rs') diff --git a/src/net/cargo.rs b/src/net/cargo.rs index 34e6bb4..6e6ee41 100644 --- a/src/net/cargo.rs +++ b/src/net/cargo.rs @@ -16,11 +16,14 @@ pub enum Cargo { /// Client -> Server: Request to add a wall to the map AddWall(Wall), /// Client <-> Server: Update the info of the icon with the given id. - UpdateIcon((usize, Icon)), + /// Server -> Client can also create an item with this id. + SetIcon((usize, Icon)), /// Client <-> Server: Update the info of the room with the given id. - UpdateRoom((usize, Room)), + /// Server -> Client can also create an item with this id. + SetRoom((usize, Room)), /// Client <-> Server: Update the info of the wall with the given id. - UpdateWall((usize, Wall)), + /// Server -> Client can also create an item with this id. + SetWall((usize, Wall)), /// Client -> Server: Request to apply the given matrix to the item with the provided id. /// If the matrix cannot be applied to an item with the given id, it will do nothing. ApplyMatrix((usize, Matrix3)), -- cgit v1.2.3-70-g09d2