Skip to content

Commit

Permalink
Little tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Dec 30, 2023
1 parent 26e5820 commit 5374853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Unreleased
==========

### Breaking:

- Remove `HasNativeId`, `MaybeHasNativeId`, `HasTypedId`, and `MaybeHasTypedId` traits, adding
their functions to the `HasId` and `MaybeHasId` traits
- Renamed `native_id`/`try_native_id` to `js_raw_id`/`try_js_raw_id` for consistency with the
Expand Down
3 changes: 3 additions & 0 deletions src/objects/impls/creep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ impl HasHits for Creep {
}

impl MaybeHasId<Creep> for Creep {
/// The Object ID of the [`Creep`], or `None` if it began spawning this tick.
///
/// [Screeps documentation](https://docs.screeps.com/api/#Creep.id)
fn try_js_raw_id(&self) -> Option<JsString> {
self.id_internal()
}
Expand Down

0 comments on commit 5374853

Please sign in to comment.