Struct TileType
Type that defines the type of a tile. Will in turn determine how the tile will look once rendered.
Namespace: TycoonTerrain.Core
Assembly: TycoonTerrainAssembly.dll
Syntax
public struct TileType : IEquatable<TileType>
Constructors
TileType(UInt16)
Creates a new Tile
Declaration
public TileType(ushort id)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt16 | id | The identifier. |
Methods
Equals(Object)
Determines whether the specified Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Returns
Overrides
Equals(TileType)
Equalses the specified other.
Declaration
public bool Equals(TileType other)
Parameters
| Type | Name | Description |
|---|---|---|
| Tile |
other | The other. |
Returns
| Type | Description |
|---|---|
| Boolean |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
Operators
Equality(TileType, TileType)
Implements the operator ==.
Declaration
public static bool operator ==(TileType left, TileType right)
Parameters
Returns
| Type | Description |
|---|---|
| Boolean | The result of the operator. |
Inequality(TileType, TileType)
Implements the operator !=.
Declaration
public static bool operator !=(TileType left, TileType right)
Parameters
Returns
| Type | Description |
|---|---|
| Boolean | The result of the operator. |