Ejemplo n.º 1
0
 // Methods
 public PlayerRelationship(byte[] data)
     : base(data)
 {
     this.subjectUID = BitConverter.ToUInt32(data, 1);
     this.objectUID = BitConverter.ToUInt32(data, 5);
     this.relations = (PlayerRelationshipType) BitConverter.ToUInt16(data, 9);
 }
Ejemplo n.º 2
0
 public PlayerRelationship(int relationshipId, int playerId, PlayerRelationshipType relationshipType)
 {
     _relationshipId   = relationshipId;
     _playerId         = playerId;
     _relationshipType = relationshipType;
 }
Ejemplo n.º 3
0
 // Methods
 public AboutPlayer(byte[] data)
     : base(data)
 {
     this.uid = BitConverter.ToUInt32(data, 1);
     this.partyID = BitConverter.ToInt16(data, 5);
     this.level = BitConverter.ToUInt16(data, 7);
     this.relationship = (PlayerRelationshipType) BitConverter.ToUInt16(data, 9);
     this.isInMyParty = BitConverter.ToBoolean(data, 11);
     this.unknown12 = data[12];
 }