Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Renamed Entity::new to Entity::from_raw #3465

Closed
wants to merge 4 commits into from
Closed

[Merged by Bors] - Renamed Entity::new to Entity::from_raw #3465

wants to merge 4 commits into from

Conversation

r4gus
Copy link
Contributor

@r4gus r4gus commented Dec 28, 2021

Objective

Solution

  • Renamed Entity::new(id: u32) to Entity::from_raw(id: u32).
  • Docs extended.

I derived the examples from the discussion of issue #3108 .

The first case mentioned in the linked issue is quite obvious but the second one probably needs further explanation.

@github-actions github-actions bot added the S-Needs-Triage This issue needs to be labelled label Dec 28, 2021
@alice-i-cecile alice-i-cecile added A-Scenes Serialized ECS data stored on the disk C-Code-Quality A section of code that is hard to understand or change C-Docs An addition or correction to our documentation A-ECS Entities, components, systems, and events and removed S-Needs-Triage This issue needs to be labelled A-Scenes Serialized ECS data stored on the disk labels Dec 29, 2021
r4gus and others added 3 commits December 29, 2021 01:58
…hin benches/bevy_ecs/commands.rs and benches/bevy_ecs/world_get.rs
…hin benches/bevy_ecs/commands.rs and benches/bevy_ecs/world_get.rs
@cart
Copy link
Member

cart commented Dec 29, 2021

Yup I'm on board for this. Good work!

@cart
Copy link
Member

cart commented Dec 29, 2021

bors r+

bors bot pushed a commit that referenced this pull request Dec 29, 2021
# Objective

- Rename `Entity::new(id: u32)` to `Entity::from_raw(id: u32)`.
- Add further documentation.
- fixes #3108

## Solution

- Renamed `Entity::new(id: u32)` to `Entity::from_raw(id: u32)`.
- Docs extended.

I derived the examples from the discussion of issue #3108 .

The [first case](#3108 (comment)) mentioned in the linked issue is quite obvious but the [second one](#3108 (comment)) probably needs further explanation.


Co-authored-by: r4gus <david@thesugar.de>
@bors bors bot changed the title Renamed Entity::new to Entity::from_raw [Merged by Bors] - Renamed Entity::new to Entity::from_raw Dec 29, 2021
@bors bors bot closed this Dec 29, 2021
mockersf pushed a commit to mockersf/bevy that referenced this pull request Jan 1, 2022
# Objective

- Rename `Entity::new(id: u32)` to `Entity::from_raw(id: u32)`.
- Add further documentation.
- fixes bevyengine#3108

## Solution

- Renamed `Entity::new(id: u32)` to `Entity::from_raw(id: u32)`.
- Docs extended.

I derived the examples from the discussion of issue bevyengine#3108 .

The [first case](bevyengine#3108 (comment)) mentioned in the linked issue is quite obvious but the [second one](bevyengine#3108 (comment)) probably needs further explanation.


Co-authored-by: r4gus <david@thesugar.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change C-Docs An addition or correction to our documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remame Entity::new(id: u32) to from_raw
3 participants