Table of Contents

Interface IArchetypeController

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

Interface for a character's archetype controller, providing access to the current archetype template and events for archetype changes.

public interface IArchetypeController : ICharacterBehaviour
Inherited Members

Properties

OnArchetypeChangeTriggers

Triggers invoked when the character's archetype changes.

List<Trigger> OnArchetypeChangeTriggers { get; }

Property Value

List<Trigger>

Template

The archetype template currently assigned to this character.

ArchetypeTemplate Template { get; }

Property Value

ArchetypeTemplate

Methods

SetArchetype(ArchetypeTemplate)

Sets the character's archetype by template reference.

void SetArchetype(ArchetypeTemplate template)

Parameters

template ArchetypeTemplate

The archetype template to assign.

SetArchetype(int)

Sets the character's archetype by template ID. Looks up the template from the cache and assigns it.

void SetArchetype(int templateID)

Parameters

templateID int

The cached ID of the archetype template to assign.

Events

OnArchetypeChanged

Event triggered when the character's archetype changes. Provides the old and new archetype templates. The old template may be null if no archetype was previously assigned.

event Action<ArchetypeTemplate, ArchetypeTemplate> OnArchetypeChanged

Event Type

Action<ArchetypeTemplate, ArchetypeTemplate>