TilePlus Version 5
Unity3D Tilemap Extension
Loading...
Searching...
No Matches
TilePlus.ZoneReg Class Reference

Specification for individual items in the "breadcrumbs" list. Info in here is used for TileFab loading/persistence and for Chunking. There is one of these for each TileFab loaded. The names may seem odd but they're short in order to keep the file size shorter. More...

Collaboration diagram for TilePlus.ZoneReg:

Public Member Functions

 ZoneReg ()
 Ctor.
 ZoneReg (ulong index, RectInt locator, string assetGuid, string assetName, Vector3Int offset, TpTileBundle.TilemapRotation rotation, Dictionary< Vector3Int, string >[] posToGuidMaps, string[] bundleGuids, string[] bundleNames, BoundsInt largestBounds, List< GameObject >? spawnedPrefabs)
 Ctor.
override string ToString ()

Public Attributes

ulong dex
 An index for this registration. An ascending #, zeroed when this TpZoneManager is initialized.
bool imm
 A flag that this is region should not be deleted if moved out of camera range. Note that this is NOT set in the constructor.
BoundsInt lb
 The BoundsInt from any of the loaded Bundles of the TileFab (they're all the same when a Fab is a Chunk)
string g
 The GUID of the TileFab.
string aNam
 Name of the asset (mostly useful for diagnostics)
Vector3Int offs
 The offset applied.
bool m_Reserved
 Denotes that this is a reserved zone. That means that the Zone is empty, but reserved. NONSERIALIZED.
RectInt m_MyLocator
 The locator RectInt for this instance. NONSERIALIZED.
TpTileBundle.TilemapRotation rot
 The rotation applied.
BundleGuidMap[] ptgm
 Position to GUID mapping.
List< GameObject >? m_Prefabs
 Array of all prefabs spawned when TileFab is loaded. NOTE that you SHOULD add other prefabs to this list in the unload filter unless you're managing deleting them yourself.
NOT SERIALIZED NOR SAVED. CAN BE NULL.
object? m_CustomData
 A spot for custom data you may wish to add when filtering. NOT SERIALIZED NOR SAVED.

Detailed Description

Specification for individual items in the "breadcrumbs" list. Info in here is used for TileFab loading/persistence and for Chunking. There is one of these for each TileFab loaded. The names may seem odd but they're short in order to keep the file size shorter.

Constructor & Destructor Documentation

◆ ZoneReg() [1/2]

TilePlus.ZoneReg.ZoneReg ( )

Ctor.

◆ ZoneReg() [2/2]

TilePlus.ZoneReg.ZoneReg ( ulong index,
RectInt locator,
string assetGuid,
string assetName,
Vector3Int offset,
TpTileBundle.TilemapRotation rotation,
Dictionary< Vector3Int, string >[] posToGuidMaps,
string[] bundleGuids,
string[] bundleNames,
BoundsInt largestBounds,
List< GameObject >? spawnedPrefabs )

Ctor.

Parameters
indexindex of this instance
locatorthe RectInt locator for this instance. Not serialized.
assetGuidThe GUID of the TileFab or Bundle asset
assetNamethe asset's name
offsetthe offset that used to place the Bundles
rotationthe rotation
posToGuidMapsAn array of tile position to GUID maps. For tilefabs, collect these during loading Bundles. For Bundles, supply directly
bundleGuidsMatching array of bundle GUIDs, in the same order as posToGuidMaps
bundleNamesMatching array of bundle names, in the same order as posToGuidMaps
largestBoundsThe largest bounds found in the Bundles
spawnedPrefabsList of prefabs spawned when the TileFab was loaded. Note: not serialized in the AssetRegistration class instance created herein. Can be used when TileFabs unloaded.

Member Function Documentation

◆ ToString()

override string TilePlus.ZoneReg.ToString ( )

Member Data Documentation

◆ aNam

string TilePlus.ZoneReg.aNam

Name of the asset (mostly useful for diagnostics)

◆ dex

ulong TilePlus.ZoneReg.dex

An index for this registration. An ascending #, zeroed when this TpZoneManager is initialized.

◆ g

string TilePlus.ZoneReg.g

The GUID of the TileFab.

◆ imm

bool TilePlus.ZoneReg.imm

A flag that this is region should not be deleted if moved out of camera range. Note that this is NOT set in the constructor.

◆ lb

BoundsInt TilePlus.ZoneReg.lb

The BoundsInt from any of the loaded Bundles of the TileFab (they're all the same when a Fab is a Chunk)

◆ m_CustomData

object? TilePlus.ZoneReg.m_CustomData

A spot for custom data you may wish to add when filtering. NOT SERIALIZED NOR SAVED.

◆ m_MyLocator

RectInt TilePlus.ZoneReg.m_MyLocator

The locator RectInt for this instance. NONSERIALIZED.

◆ m_Prefabs

List<GameObject>? TilePlus.ZoneReg.m_Prefabs

Array of all prefabs spawned when TileFab is loaded. NOTE that you SHOULD add other prefabs to this list in the unload filter unless you're managing deleting them yourself.
NOT SERIALIZED NOR SAVED. CAN BE NULL.

◆ m_Reserved

bool TilePlus.ZoneReg.m_Reserved

Denotes that this is a reserved zone. That means that the Zone is empty, but reserved. NONSERIALIZED.

◆ offs

Vector3Int TilePlus.ZoneReg.offs

The offset applied.

◆ ptgm

BundleGuidMap [] TilePlus.ZoneReg.ptgm

Position to GUID mapping.

◆ rot

TpTileBundle.TilemapRotation TilePlus.ZoneReg.rot

The rotation applied.


The documentation for this class was generated from the following file:
  • /Users/jms/Documents/Tpt_55/TPT55/Assets/Plugins/TilePlus/Runtime/FabAndZone/ClassesEnums/TpZoneManagerClasses.cs