diff options
| author | Arne Dußin | 2021-02-03 16:26:59 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-02-03 16:26:59 +0100 |
| commit | 9ab689527b3ede7750579b1a926cf0cf88813463 (patch) | |
| tree | 959894450512ebb10e86ed62058da1d7039614ef /src/client/map/room_mark.rs | |
| parent | d4c1c7ecb5688ef64f45425d9ac8e7ddeb8e8602 (diff) | |
| download | graf_karto-9ab689527b3ede7750579b1a926cf0cf88813463.tar.gz graf_karto-9ab689527b3ede7750579b1a926cf0cf88813463.zip | |
Add capability to draw rooms
Diffstat (limited to 'src/client/map/room_mark.rs')
| -rw-r--r-- | src/client/map/room_mark.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/map/room_mark.rs b/src/client/map/room_mark.rs index a9777fb..5c0ca98 100644 --- a/src/client/map/room_mark.rs +++ b/src/client/map/room_mark.rs @@ -29,6 +29,12 @@ impl RoomMark { } } + /// Replace the room this mark describes with the new room. + pub fn set_room(&mut self, room: Room) { + self.room = room; + self.retriangulate(); + } + /* When the internal polygon changes, it must be retriangulated to be drawn on the screen * properly, so this function must be called any time that happens. */ |
