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 references #102

Merged
merged 15 commits into from
May 6, 2024
Merged

Map references #102

merged 15 commits into from
May 6, 2024

Conversation

snipercup
Copy link
Collaborator

@snipercup snipercup commented May 4, 2024

Requires #101

References are now set between a map and it's elements. Map elements include furniture, tiles and mobs

  • When making changes to a map and saving your changes, the entities that were added will get a reference to the map added to their data. Entities that were removed from the map will have the reference to that map removed
  • When furniture, tile or mob is deleted from the game data, all instances of it will be removed from each map in it's reference
  • Added code for duplication of entities. That means that if you duplicate a furniture and it has an itemgroup set in it's container property, the itemgroup will get a reference to this newly duplicated furniture.

Example of furniture having a reference to a map called "udoad":

image

Example of a tile having a reference to a map called "udoad":

image

@snipercup snipercup mentioned this pull request May 6, 2024
@snipercup snipercup marked this pull request as ready for review May 6, 2024 18:32
@snipercup snipercup merged commit 45c9730 into Khaligufzel:main May 6, 2024
@snipercup snipercup deleted the map-references branch May 6, 2024 18:32
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