Interface IPetController
Interface for controllers that manage pet entities, including summoning and destruction events.
public interface IPetController : ICharacterBehaviour
- Inherited Members
Fields
OnPetDestroyed
Event triggered when a pet is destroyed.
public static Action OnPetDestroyed
Field Value
OnPetOrdersChanged
Event triggered when the server confirms a change to the pet's stance or movement order. Carries the pet, which may be null if it was dismissed in the meantime.
public static Action<Pet> OnPetOrdersChanged
Field Value
OnPetSummoned
Event triggered when a pet is summoned. Provides the summoned pet instance.
public static Action<Pet> OnPetSummoned
Field Value
Properties
MovementOrder
The pet's movement order as this peer currently understands it.
PetMovementOrder MovementOrder { get; set; }
Property Value
OnPetDismissTriggers
Triggers invoked when a pet is dismissed or destroyed.
List<Trigger> OnPetDismissTriggers { get; }
Property Value
OnPetSummonTriggers
Triggers invoked when a pet is summoned.
List<Trigger> OnPetSummonTriggers { get; }
Property Value
Pet
The pet instance managed by this controller.
Pet Pet { get; set; }
Property Value
Stance
The pet's combat stance as this peer currently understands it. Server-authoritative; clients only ever request a change.
PetStance Stance { get; set; }
Property Value
Events
OnOwnerAttacked
Raised on the server when this controller's owner is damaged by a hostile character, so a defensive pet can come to their aid.
event Action<IPetController, ICharacter> OnOwnerAttacked
Event Type
Remarks
The first argument is the controller that raised it. Carrying it means a single shared handler can service every player without having to search the scene for whose pet just heard about an attack.