Struct Skillset
[JsonConverter(typeof(SkillsetConverter))]
public readonly struct Skillset : IEquatable<Skillset>, ITranslationArgument
- Implements
- Inherited Members
- Extension Methods
Constructors
Skillset(EPlayerDefense, byte)
public Skillset(EPlayerDefense skill, byte level)
Parameters
skillEPlayerDefenselevelbyte
Skillset(EPlayerOffense, byte)
public Skillset(EPlayerOffense skill, byte level)
Parameters
skillEPlayerOffenselevelbyte
Skillset(EPlayerSupport, byte)
public Skillset(EPlayerSupport skill, byte level)
Parameters
skillEPlayerSupportlevelbyte
Fields
DefaultSkillsets
public static readonly Skillset[] DefaultSkillsets
Field Value
- Skillset[]
FormatNoLevel
public static readonly SpecialFormat FormatNoLevel
Field Value
Level
public readonly byte Level
Field Value
SkillIndex
public readonly byte SkillIndex
Field Value
SkillSqlEnumType
public static readonly string SkillSqlEnumType
Field Value
Speciality
public readonly EPlayerSpeciality Speciality
Field Value
- EPlayerSpeciality
Properties
Defense
public EPlayerDefense Defense { get; }
Property Value
- EPlayerDefense
Offense
public EPlayerOffense Offense { get; }
Property Value
- EPlayerOffense
SpecialityIndex
public byte SpecialityIndex { get; }
Property Value
Support
public EPlayerSupport Support { get; }
Property Value
- EPlayerSupport
Methods
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
Equals(Skillset)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Skillset other)
Parameters
otherSkillsetAn object to compare with this object.
Returns
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
GetSkillsetFromEnglishName(string, out EPlayerSpeciality)
public static int GetSkillsetFromEnglishName(string name, out EPlayerSpeciality speciality)
Parameters
namestringspecialityEPlayerSpeciality
Returns
- int
-1 if parse failure.
Read(ByteReader)
public static Skillset Read(ByteReader reader)
Parameters
readerByteReader
Returns
Read(ref Utf8JsonReader)
public static Skillset Read(ref Utf8JsonReader reader)
Parameters
readerUtf8JsonReader
Returns
ServerSet(WarfarePlayer)
public void ServerSet(WarfarePlayer player)
Parameters
playerWarfarePlayer
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
TypeEquals(in Skillset)
public bool TypeEquals(in Skillset skillset)
Parameters
skillsetSkillset
Returns
Write(ByteWriter, Skillset)
public static void Write(ByteWriter writer, Skillset skillset)
Parameters
writerByteWriterskillsetSkillset
Write(Utf8JsonWriter, in Skillset)
public static void Write(Utf8JsonWriter writer, in Skillset skillset)
Parameters
writerUtf8JsonWriterskillsetSkillset
Operators
operator ==(Skillset, Skillset)
public static bool operator ==(Skillset a, Skillset b)
Parameters
Returns
operator !=(Skillset, Skillset)
public static bool operator !=(Skillset a, Skillset b)