IdTag
Class in ChivalrousGames.Common
Description
Identifier tag. Helper class to keep and generate simple ids.
Properties
Id | int | ReadOnly The identifier. |
ExtraId | int | Gets or sets the extra identifier. Optional, use it to store another part of the Id that you supply. |
Constructors
Constructor
public IdTag() {;
Return
IdTag | A new instance of the IdTag class |
Description
Initializes a new instance of the IdTag class.
Methods
GenerateNewId
public void GenerateNewId();
Description
Generates a new identifier, replacing the old one.
Static Methods
GetStandardizedVector3Id
public static int GetStandardizedVector3Id(Vector3 value);
Parameters
value | Vector3 | Value to get an id for |
Return
int | The standardized vector3 identifier. |
Description
Gets a simple standardized vector3 identifier.
GetStandardizedFloatId
public static int GetStandardizedFloatId(float value);
Parameters
value | float | Value to get an id for |
Return
int | The standardized float identifier. |
Description
Gets a simple standardized float identifier.
GetStandardizedStringId
public static int GetStandardizedStringId(string value);
Parameters
value | string | Value to get an id for |
Return
int | The standardized string identifier. |
Description
Gets a simple standardized string identifier.