Class PhoneCallDefinition
- Namespace
- S1API.PhoneCalls
- Assembly
- S1API.dll
Abstract base class for defining phone calls in Schedule One. Provides methods to create and configure phone call data including caller information and call stages.
public abstract class PhoneCallDefinition
- Inheritance
-
PhoneCallDefinition
- Inherited Members
- Extension Methods
Constructors
PhoneCallDefinition(NPC?)
Creates a new phone call definition using an NPC as the caller. Initializes the underlying PhoneCallData and sets up the caller information from the NPC.
protected PhoneCallDefinition(NPC? npcCallerID)
Parameters
PhoneCallDefinition(string, Sprite?)
Public constructor used for instancing a new ScheduleOne.ScriptableObjects.PhoneCallData
protected PhoneCallDefinition(string name, Sprite? profilePicture = null)
Parameters
namestringThe name of the caller
profilePictureSpriteThe sprite of the caller
Fields
Caller
The caller of the PhoneCallDefinition instance
public CallerDefinition? Caller
Field Value
S1PhoneCallData
The original ScheduleOne.ScriptableObjects.PhoneCallData instance
public readonly PhoneCallData S1PhoneCallData
Field Value
- PhoneCallData
StageEntries
A list of all stage entries added to this phone call.
protected readonly List<CallStageEntry> StageEntries
Field Value
Methods
AddCallerID(NPC?)
Set's a new CallerID definition based of an existing NPC instance.
protected CallerDefinition AddCallerID(NPC? npc)
Parameters
Returns
- CallerDefinition
A reference to the CallerID definition
AddCallerID(string, Sprite?)
Set's a new CallerID definition to the PhoneCall
protected CallerDefinition AddCallerID(string name, Sprite? profilePicture = null)
Parameters
namestringThe name of the caller
profilePictureSpriteThe sprite of the caller
Returns
- CallerDefinition
A reference to the CallerID definition
AddStage(string)
Add's a CallStageEntry instance to the S1PhoneCallData
protected CallStageEntry AddStage(string text)
Parameters
textstringThe text to display in this stage
Returns
- CallStageEntry
A reference to the Stage entry
Completed()
Completes the ScheduleOne.ScriptableObjects.PhoneCallData instance.
public void Completed()