Table of Contents

Interface IScheduleActionSpec

Namespace
S1API.Entities.Schedule
Assembly
S1API.dll

Defines a specification for a schedule action that can be applied to an NPC's schedule. This interface provides a modder-facing, game-type-free way to define schedule actions that can be used during prefab configuration.

public interface IScheduleActionSpec
Extension Methods

Methods

ApplyTo(NPCSchedule)

Applies this action specification to the given NPC schedule.

void ApplyTo(NPCSchedule schedule)

Parameters

schedule NPCSchedule

The NPC schedule to apply this action to.

Remarks

This method should create and configure the appropriate schedule action on the provided schedule instance. The implementation should handle any necessary object resolution, validation, and error handling.