Class Tileset
Contains tile types by name. The names can be used to associate them with a named color.
Inheritance
object
UnityEngine.Object
UnityEngine.ScriptableObject
DataSetScriptableObject<TileType, OpenObjectTypeSet<TileType, TileTypeEntry, UnityEngine.Tilemaps.TileBase>>
Tileset
Implements
UnityEngine.ISerializationCallbackReceiver
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(string)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, bool)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, bool)
UnityEngine.Object.Destroy(UnityEngine.Object, float)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, bool)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, float)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: InsaneScatterbrain.MapGraph
Syntax
public class Tileset : ObjectTypeSetScriptableObject<TileType, TileTypeEntry, TileBase>, IVersioned, IObjectTypeSet<TileType, TileBase>, IDataSet<TileType>, IDataSet, IPreparable, ISerializationCallbackReceiver
Properties
OpenSet
Declaration
protected override OpenObjectTypeSet<TileType, TileTypeEntry, TileBase> OpenSet { get; }
Property Value
Type | Description |
---|---|
OpenObjectTypeSet<TileType, TileTypeEntry, UnityEngine.Tilemaps.TileBase> |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.OpenObjectTypeSet<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.TileTypeEntry, UnityEngine.Tilemaps.TileBase>>.OpenSet
Methods
Add(TileType)
Adds a tile type.
Declaration
public override void Add(TileType type)
Parameters
Type | Name | Description |
---|---|---|
TileType | type | The tile type to add. |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.OpenObjectTypeSet<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.TileTypeEntry, UnityEngine.Tilemaps.TileBase>>.Add(InsaneScatterbrain.MapGraph.TileType)
GetTypeName(TileBase)
Get the type the given tile belongs to.
Declaration
public string GetTypeName(TileBase tile)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Tilemaps.TileBase | tile | The tile to find the type for. |
Returns
Type | Description |
---|---|
string | The tile type, tile is a part of. |
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
Remove(string)
Removes a tile type by name.
Declaration
public override void Remove(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The ID of the tile type to remove. |
Overrides
InsaneScatterbrain.ScriptGraph.DataSetScriptableObject<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.OpenObjectTypeSet<InsaneScatterbrain.MapGraph.TileType, InsaneScatterbrain.MapGraph.TileTypeEntry, UnityEngine.Tilemaps.TileBase>>.Remove(string)
Implements
UnityEngine.ISerializationCallbackReceiver