Table of Contents

Interface IPetController

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

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

Action

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

Action<Pet>

OnPetSummoned

Event triggered when a pet is summoned. Provides the summoned pet instance.

public static Action<Pet> OnPetSummoned

Field Value

Action<Pet>

Properties

MovementOrder

The pet's movement order as this peer currently understands it.

PetMovementOrder MovementOrder { get; set; }

Property Value

PetMovementOrder

OnPetDismissTriggers

Triggers invoked when a pet is dismissed or destroyed.

List<Trigger> OnPetDismissTriggers { get; }

Property Value

List<Trigger>

OnPetSummonTriggers

Triggers invoked when a pet is summoned.

List<Trigger> OnPetSummonTriggers { get; }

Property Value

List<Trigger>

Pet

The pet instance managed by this controller.

Pet Pet { get; set; }

Property Value

Pet

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

PetStance

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

Action<IPetController, ICharacter>

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.