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
  • entity
  • action
  • upsertActionDef

Function upsertActionDef

  • upsertActionDef(
        list: undefined | sohl.entity.action.SohlAction.Data[],
        def: sohl.entity.action.SohlAction.Data,
    ): sohl.entity.action.SohlAction.Data[]
  • Insert or replace (by shortcode) an action def, returning a new array — the whole array is written back to the document (never by index). Pre-existing defs (e.g. intrinsic actions) are preserved in place. Pure.

    Parameters

    • list: undefined | sohl.entity.action.SohlAction.Data[]

      The current system.actionDefs.

    • def: sohl.entity.action.SohlAction.Data

      The def to upsert.

    Returns sohl.entity.action.SohlAction.Data[]

    The updated defs.

    • Defined in src/entity/action/script-action-attach.ts:148

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