Commit bd14a7f
Add getter for SystemMeta::last_run field. (#22516)
# Objective
Add `SytemMeta::get_last_run`.
Full description in issue:
#22487
## Solution
I added the getter. Since `Tick` is `Copy`, I just returned it by value.
Pretty simple.
## Testing
implemented for:
https://github.com/stinkytoe/shieldtank/blob/04d216a8db91749c9975c2756dc1a987e80b8aea/src/query/by_iid.rs#L117
example usages:
-
https://github.com/stinkytoe/axe_man_adventure/blob/77f070add41f99cef92f9db9e5e6269339476911/src/main.rs#L426
-
https://github.com/stinkytoe/dungeon_of_madness/blob/3ec5db4fe7b0b942e3dcd2037814a8717506bbc3/src/main.rs#L200
Co-authored-by: Alice Cecile <[email protected]>1 parent d58d57e commit bd14a7f
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
| |||
0 commit comments