private void ReceiveFactionChangeRequest(byte[] body, ulong senderId)
        {
            Log.Trace("Receiving Faction Change Request", "ReceiveFactionChangeRequest");
            FactionChangeRequest request = new FactionChangeRequest(body);

            Session.Manager.Revealed.PlayerChangedFactions(
                request.PlayerId, request.OldFactionId, request.NewFactionId);
        }
Ejemplo n.º 2
0
        private void UpdateFaction()
        {
            long newFactionId = GetFactionId();

            if (newFactionId != FactionId)
            {
                FactionChangeRequest request = new FactionChangeRequest(
                    Id, FactionId, newFactionId);
                request.SendToServer();
                FactionId = newFactionId;
            }
        }