M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative Class Reference

Inherits TaleWorlds.MountAndBlade.MissionRepresentativeBase.

Public Member Functions

override void Initialize ()
 
void AddRemoveMessageHandlers (GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode mode)
 
void OnInteraction ()
 
void DuelRequested (Agent requesterAgent, TroopType selectedAreaTroopType)
 
bool CheckHasRequestFromAndRemoveRequestIfNeeded (MissionPeer requestOwner)
 
void OnDuelPreparation (MissionPeer requesterPeer, MissionPeer requesteePeer)
 
void OnObjectFocused (IFocusable focusedObject)
 
void OnObjectFocusLost ()
 
override void OnAgentSpawned ()
 
void ResetBountyAndNumberOfWins ()
 
void OnDuelWon (float gainedScore)
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.MissionRepresentativeBase
void SetAgent (Agent agent)
 
virtual void OnAgentSpawned ()
 
virtual void Tick (float dt)
 
void UpdateGold (int gold)
 
- Public Member Functions inherited from TaleWorlds.Core.PeerComponent
virtual void Initialize ()
 
GetComponent< T > ()
 
virtual void OnInitialize ()
 
virtual void OnFinalize ()
 
void OnInitialize ()
 
void OnFinalize ()
 

Public Attributes

Action< MissionPeer, TroopTypeOnDuelRequestedEvent
 
Action< MissionPeerOnDuelRequestSentEvent
 
Action< MissionPeer, int > OnDuelPrepStartedEvent
 
Action OnAgentSpawnedWithoutDuelEvent
 
Action< MissionPeer, MissionPeer, int > OnDuelPreparationStartedForTheFirstTimeEvent
 
Action< MissionPeerOnDuelEndedEvent
 
Action< MissionPeerOnDuelRoundEndedEvent
 
Action< TroopTypeOnMyPreferredZoneChanged
 
- Public Attributes inherited from TaleWorlds.MountAndBlade.MissionRepresentativeBase
Action OnGoldUpdated
 

Static Public Attributes

const int DuelPrepTime = 3
 

Properties

int Bounty [get]
 
int Score [get]
 
int NumberOfWins [get]
 
- Properties inherited from TaleWorlds.MountAndBlade.MissionRepresentativeBase
PlayerTypes PlayerType [get]
 
Agent ControlledAgent [get]
 
int Gold [get]
 
MissionPeer MissionPeer [get]
 
- Properties inherited from TaleWorlds.Core.PeerComponent
VirtualPlayer Peer [get, set]
 
string Name [get]
 Platform provided (GDK, Steam, etc.) name of the peer. Used in logging. MissionPeer.DisplayedName is used to display the name in game.
 
bool IsMine [get]
 
uint TypeId [get, set]
 

Additional Inherited Members

- Protected Types inherited from TaleWorlds.MountAndBlade.MissionRepresentativeBase
enum  PlayerTypes {
  Bot ,
  Client ,
  Server
}
 
- Protected Member Functions inherited from TaleWorlds.MountAndBlade.MissionRepresentativeBase
 MissionRepresentativeBase ()
 

Member Function Documentation

◆ Initialize()

override void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.Initialize ( )
virtual

Reimplemented from TaleWorlds.Core.PeerComponent.

◆ AddRemoveMessageHandlers()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.AddRemoveMessageHandlers ( GameNetwork::NetworkMessageHandlerRegisterer::RegisterMode  mode)

◆ OnInteraction()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnInteraction ( )

◆ DuelRequested()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.DuelRequested ( Agent  requesterAgent,
TroopType  selectedAreaTroopType 
)

◆ CheckHasRequestFromAndRemoveRequestIfNeeded()

bool TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.CheckHasRequestFromAndRemoveRequestIfNeeded ( MissionPeer  requestOwner)

◆ OnDuelPreparation()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelPreparation ( MissionPeer  requesterPeer,
MissionPeer  requesteePeer 
)

◆ OnObjectFocused()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnObjectFocused ( IFocusable  focusedObject)

◆ OnObjectFocusLost()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnObjectFocusLost ( )

◆ OnAgentSpawned()

override void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnAgentSpawned ( )
virtual

◆ ResetBountyAndNumberOfWins()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.ResetBountyAndNumberOfWins ( )

◆ OnDuelWon()

void TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelWon ( float  gainedScore)

Member Data Documentation

◆ DuelPrepTime

const int TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.DuelPrepTime = 3
static

◆ OnDuelRequestedEvent

Action<MissionPeer, TroopType> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelRequestedEvent

◆ OnDuelRequestSentEvent

Action<MissionPeer> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelRequestSentEvent

◆ OnDuelPrepStartedEvent

Action<MissionPeer, int> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelPrepStartedEvent

◆ OnAgentSpawnedWithoutDuelEvent

Action TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnAgentSpawnedWithoutDuelEvent

◆ OnDuelPreparationStartedForTheFirstTimeEvent

Action<MissionPeer, MissionPeer, int> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelPreparationStartedForTheFirstTimeEvent

◆ OnDuelEndedEvent

Action<MissionPeer> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelEndedEvent

◆ OnDuelRoundEndedEvent

Action<MissionPeer> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnDuelRoundEndedEvent

◆ OnMyPreferredZoneChanged

Action<TroopType> TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.OnMyPreferredZoneChanged

Property Documentation

◆ Bounty

int TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.Bounty
get

◆ Score

int TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.Score
get

◆ NumberOfWins

int TaleWorlds.MountAndBlade.MissionRepresentatives.DuelMissionRepresentative.NumberOfWins
get