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

Map System Code Refactor #796

Merged
merged 15 commits into from
Apr 20, 2019
Merged

Conversation

Acruid
Copy link
Contributor

@Acruid Acruid commented Apr 20, 2019

  • Removes static IoCManager service locator calls from Robust.Shared.Map namespace.
  • Misc code cleanup and filling out doc comments for Map classes.
  • Added Union and Intersect methods to Box2.

Removed unused property TileRef.TileSize.
Removed unused property TileRef.Tile, made the field public with the same name.
Made the TileRef struct readonly.
Removed property TileRef.TileDef.
Removed property TileRef.LocalPos.
Renamed GridTile to GridIndices.
Implemented IEquatable on TileRef.
Implemented Equality operators on TileRef.
Added PublicAPI attribute to TileRef.
Added doc comments to TileRef.
Added the PublicApi annotation.
Made struct readonly.
Filled out doc comments.
Changed auto properties to readonly fields.
Renamed TileId to TypeId.
Added a static Empty tile to the struct.
Implemented IEquatable.
Added PublicApi attribute.
Implemented IEquatable.
Filled out doc comments.
Removed Map property.
Filled out doc comments.
Added the PublicApi attribute.
Implemented IEquatable.
Removed method IsValidLocation.
Removed constructors taking a MapId.
Added attribute PublicApi.
Filled out doc comments.
Filled out doc comments for MapIndices.
Misc refactors for both.
Added method Box2.Union.
Placement manager now spawns new grids to place tiles not connected to an existing grid.
@Acruid Acruid added Issue: Needs Cleanup This issue needs general code cleanup. Project: Shared Issue: Needs Refactor This issue needs a refactor to be solved. labels Apr 20, 2019
@ghost ghost assigned Acruid Apr 20, 2019
@ghost ghost added the W: In Progress label Apr 20, 2019
@ghost ghost assigned PJB3005 Apr 20, 2019
@PJB3005 PJB3005 merged commit 7053fb1 into space-wizards:master Apr 20, 2019
@ghost ghost removed the W: In Progress label Apr 20, 2019
PJB3005 pushed a commit to space-wizards/space-station-14 that referenced this pull request Apr 20, 2019
* Removes static `IoCManager` service locator calls from `Robust.Shared.Map` namespace.
* Misc code cleanup and filling out doc comments for Map classes.
* Added Union and Intersect methods to Box2.
* Any touched component was converted from static IoC calls to field injection.

Sibling PR to space-wizards/RobustToolbox#796.
SweptWasTaken pushed a commit to SweptWasTaken/RobustToolbox that referenced this pull request Jun 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Needs Cleanup This issue needs general code cleanup. Issue: Needs Refactor This issue needs a refactor to be solved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants