Namespace GoRogue.MapGeneration.Steps.Translation
Classes
AppendItemLists<TItem>
Appends an item list onto another one, optionally removing the one that was appended from the context. Context Components Required:
- ItemList<TItem> (tag BaseListTag): The base list onto which the other list is appended
- ItemList<TItem> (tag ListToAppendTag: The list whose items are appended onto the base list. This component will be removed from the context if RemoveAppendedComponent is true.
RectanglesToAreas
"Translation" step that takes as input an ItemList<TItem>, and transforms it into an ItemList<TItem>. Can optionally remove the ItemList<TItem> from the context. Context Components Required:
- ItemList<TItem> (tag RectanglesComponentTag): The list of rectangles to translate to areas Context Components Added/Used
- ItemList<TItem> (tag AreasComponentTag): The list of areas to add the areas representing the rectangles to. If it does not exist, it will be created.
RemoveDuplicatePoints
Removes all points from an area list that are in any of the areas present in another list. Context Components Required:
- ItemList<TItem> (tag UnmodifiedAreaListTag: The list of areas that will not be modified, but will serve as a basis for points to remove from areas in the other list.
- ItemList<TItem> (tag ModifiedAreaListTag: The list of areas that will be modified; all areas in this list will have any points that also appear in areas in the other list removed. If an area ends up with no remaining points, it is removed from the list.