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 TileType instance with a given identifier.
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
Type | Name | Description |
---|---|---|
Object | obj | The Object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
Equals(TileType)
Equalses the specified other.
Declaration
public bool Equals(TileType other)
Parameters
Type | Name | Description |
---|---|---|
TileType | 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
Type | Name | Description |
---|---|---|
TileType | left | The left. |
TileType | right | The right. |
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
Type | Name | Description |
---|---|---|
TileType | left | The left. |
TileType | right | The right. |
Returns
Type | Description |
---|---|
Boolean | The result of the operator. |