Struct StatId
Stat 식별자. Framework 는 Stat 종류를 알지 못한다. 실제 정의는 Game 프로젝트에서 수행한다.
public readonly struct StatId
Examples
public static class GameStats
{
public static readonly StatId Health = new StatId("Health");
public static readonly StatId Attack = new StatId("Attack");
public static readonly StatId MoveSpeed = new StatId("MoveSpeed");
}
Constructors
StatId(string)
public StatId(string value)
Parameters
valuestring
Properties
Value
public string Value { get; }
Property Value
- string
Methods
Equals(StatId)
public bool Equals(StatId other)
Parameters
otherStatId
Returns
- bool
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(StatId, StatId)
public static bool operator ==(StatId a, StatId b)
Parameters
Returns
- bool
operator !=(StatId, StatId)
public static bool operator !=(StatId a, StatId b)
Parameters
Returns
- bool