Base-class for Chunk Selectors as used by TpZoneLayout. This just returns the same TileFab each time.
More...
|
| override TileFabLoadParams | Selector (RectInt locator, TpZoneLayout _, Dictionary< string, Tilemap > monitoredMaps) |
| | Basic selector that only uses one TileFab for filling in empty areas.
|
| override bool | Initialize (TpZoneManager zoneManager, object? obj=null) |
| | Use for any initialization.
|
| override BoundsInt | SelectorTotalSize (TpZoneLayout layout) |
| | Get the largest bounds from all Fabs used by a selector.
|
| override bool | Release () |
| | Release caches, etc.
|
| virtual void | OnEnable () |
| | OnEnable handler: add a GUID if not present. Typically this occurs when the SO is created from Unity's Create Asset menu.
|
| virtual List< TemplateSelectorQueryResults< T > > | GetTilePlusTilesOfType< T > (Func< T, string, bool >? filter=null, int size=16, object? options=null) |
| | Query the TileFab for TPT tiles of a certrain type.
|
| void | AddGuid () |
| | Add/Change GUID for this asset.
|
Base-class for Chunk Selectors as used by TpZoneLayout. This just returns the same TileFab each time.
◆ Initialize()
| override bool TilePlus.TpSingleFabChunkSelector.Initialize |
( |
TpZoneManager | zoneManager, |
|
|
object? | obj = null ) |
|
virtual |
Use for any initialization.
- Parameters
-
| zoneManager | A Zone manager instance |
| obj | Arbitrary data you provide |
- Returns
true if XXXX, false otherwise.
Initialization.
- Parameters
-
| zm | The Zone Manager this Selector is using |
| obj | Arbitrary data |
- Returns
true if XXXX, false otherwise.
Reimplemented from TilePlus.TpChunkSelectorBase.
◆ Release()
| override bool TilePlus.TpSingleFabChunkSelector.Release |
( |
| ) |
|
|
virtual |
◆ Selector()
| override TileFabLoadParams TilePlus.TpSingleFabChunkSelector.Selector |
( |
RectInt | locator, |
|
|
TpZoneLayout | _, |
|
|
Dictionary< string, Tilemap > | monitoredMaps ) |
|
virtual |
Basic selector that only uses one TileFab for filling in empty areas.
- Parameters
-
| locator | the locator |
| _ | the ZoneLayout instance |
| monitoredMaps | maps for this layout |
- Returns
- TileFab load params
Reimplemented from TilePlus.TpChunkSelectorBase.
◆ SelectorTotalSize()
| override BoundsInt TilePlus.TpSingleFabChunkSelector.SelectorTotalSize |
( |
TpZoneLayout | layout | ) |
|
|
virtual |
◆ m_TileFab
| TpTileFab TilePlus.TpSingleFabChunkSelector.m_TileFab |
The single tilefab to return to the caller.
◆ UsedTileFabs
| override List<TpTileFab> TilePlus.TpSingleFabChunkSelector.UsedTileFabs |
|
get |
The documentation for this class was generated from the following file: