Class AvatarChange
Information about a nearby player's appearance changing
[Generated]
public class AvatarChange : ISerializable
- Inheritance
-
AvatarChange
- Implements
- Inherited Members
Constructors
AvatarChange()
public AvatarChange()
Properties
ByteSize
Gets the size of the data that this object was deserialized from, or 0 for an object that was not deserialized.
public int ByteSize { get; }
Property Value
ChangeType
public AvatarChangeType ChangeType { get; set; }
Property Value
ChangeTypeData
public AvatarChange.IChangeTypeData ChangeTypeData { get; set; }
Property Value
PlayerId
public int PlayerId { get; set; }
Property Value
Sound
public bool Sound { get; set; }
Property Value
Methods
Deserialize(EoReader)
Deserialize the EO binary data representation of this object from an EoReader.
public void Deserialize(EoReader reader)
Parameters
readerEoReaderThe reader from which this object should be read.
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
ForEquipment(ChangeTypeDataEquipment)
Creates a new AvatarChange with ChangeType set to Equipment and ChangeTypeData set to data.
public static AvatarChange ForEquipment(AvatarChange.ChangeTypeDataEquipment data)
Parameters
dataAvatarChange.ChangeTypeDataEquipmentThe data for the case.
Returns
- AvatarChange
The new AvatarChange.
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForHair(ChangeTypeDataHair)
Creates a new AvatarChange with ChangeType set to Hair and ChangeTypeData set to data.
public static AvatarChange ForHair(AvatarChange.ChangeTypeDataHair data)
Parameters
dataAvatarChange.ChangeTypeDataHairThe data for the case.
Returns
- AvatarChange
The new AvatarChange.
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForHairColor(ChangeTypeDataHairColor)
Creates a new AvatarChange with ChangeType set to HairColor and ChangeTypeData set to data.
public static AvatarChange ForHairColor(AvatarChange.ChangeTypeDataHairColor data)
Parameters
dataAvatarChange.ChangeTypeDataHairColorThe data for the case.
Returns
- AvatarChange
The new AvatarChange.
Exceptions
- ArgumentNullException
Thrown when
datais null.
GetHashCode()
public override int GetHashCode()
Returns
Serialize(EoWriter)
Serialize this object to an EoWriter in the EO binary data representation.
public void Serialize(EoWriter writer)
Parameters
writerEoWriterThe writer to which this object should be written.
ToString()
public override string ToString()