Heroic Lands Heroic Lands
Home Thalorna Blog
Projects
Song of Heroic Lands HârnMaster 3 Modules API Documentation KnowledgeBase
License
  • Preparing search index...
  • The search index is not available
Song of Heroic Lands API - v0.8.2
  • Song of Heroic Lands API
  • sohl
  • document
  • actor
  • logic
  • selectMoveProfile

Function selectMoveProfile

  • selectMoveProfile(
        profiles: undefined | MovementProfile[],
        currentMoveMedium: MovementMedium,
    ): MovementProfile
  • Select the active movement profile for an actor by its current medium.

    MOVEMENT_MEDIUM.NONE always resolves to the shared NONE_MOVE_PROFILE (actors never author a NONE profile). Any other medium selects the matching authored profile, or falls back to a fresh NONE_MOVE_PROFILE copy when the actor has no profile for it.

    Parameters

    • profiles: undefined | MovementProfile[]

      The actor's persisted per-medium movement profiles.

    • currentMoveMedium: MovementMedium

      The medium the actor is currently moving in.

    Returns MovementProfile

    The active MovementProfile.

    • Defined in src/document/actor/logic/movement.ts:74

Settings

Member Visibility
Song of Heroic Lands API - v0.8.2
  • Loading...

Generated using TypeDoc with typedoc-github-theme

© 2020–2026 Tom Rodriguez. Content under The World of Thalorna and Song of Heroic Lands is licensed under CC BY-SA 4.0; all other content is © Tom Rodriguez, all rights reserved. See License.

CC BY-SA 4.0 Discord