Struct EffectId
상태 효과 식별자. Framework 는 효과 종류를 알지 못한다. 실제 정의는 Game 프로젝트에서 수행한다.
public readonly struct EffectId
Examples
public static class GameEffects
{
public static readonly EffectId Poison = new EffectId("Poison");
public static readonly EffectId Burn = new EffectId("Burn");
public static readonly EffectId Slow = new EffectId("Slow");
public static readonly EffectId Shield = new EffectId("Shield");
}
Constructors
EffectId(string)
public EffectId(string value)
Parameters
valuestring
Properties
Value
public string Value { get; }
Property Value
- string
Methods
Equals(EffectId)
public bool Equals(EffectId other)
Parameters
otherEffectId
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 ==(EffectId, EffectId)
public static bool operator ==(EffectId a, EffectId b)
Parameters
Returns
- bool
operator !=(EffectId, EffectId)
public static bool operator !=(EffectId a, EffectId b)
Parameters
Returns
- bool