Skip to content

Refactor(?) SpawnNextToOrDrop, allow DropNextTo to take an offset#6605

Open
SnappingOpossum wants to merge 3 commits into
space-wizards:masterfrom
SnappingOpossum:EngineSpawnNextToOrDrop
Open

Refactor(?) SpawnNextToOrDrop, allow DropNextTo to take an offset#6605
SnappingOpossum wants to merge 3 commits into
space-wizards:masterfrom
SnappingOpossum:EngineSpawnNextToOrDrop

Conversation

@SnappingOpossum
Copy link
Copy Markdown

@SnappingOpossum SnappingOpossum commented Jun 1, 2026

Requires space-wizards/space-station-14#44204

Made it use Entity<T>, allowed spawns to be offset, had it spawn with the overrides on fail, and made it only run mapinit after putting the entity in place and use a CreateEntityUnitialized like some other spawn methods do.

Initially did this just because I wanted to be able to offset things and use SpawnNextToOrDrop, and felt like I might as well make it Entity<T> and fix the issues caused by its early initialisation while I'm at it. The conversion to Entity<TransformComponent?> does mean some other Entity<T> uses have to be explicitly converted to an EntityUid first, but given how little it's used that was only three files in content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant