Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.ConversationSystem.SimpleConversationCamera Class Reference

Simple conversation camera definition. More...

Inheritance diagram for Dragengine.ConversationSystem.SimpleConversationCamera:

Public Member Functions

void addShot (SimpleConversationCameraShot shot)
 Add shot.
 
void forEachShot (Block ablock)
 Visit shots with block.
 
float getDelay ()
 Delay in seconds before activating action.
 
SimpleConversationCameraShot getShotAt (int index)
 Shot at index.
 
int getShotCount ()
 Count of shots.
 
SimpleConversationCamera new (SimpleConversationCamera camera)
 Create deep copy simple conversation camera definition.
 
SimpleConversationCamera new (StringID id)
 Create simple conversation camera definition.
 
SimpleConversationCameraShot randomShot ()
 Random shot or null if no shots are present.
 
void setDelay (float delay)
 Set delay in seconds before activating action.
 

Public Attributes

float pDelay
 
StringID pId
 
Array pShots
 

Detailed Description

Simple conversation camera definition.

Version
1.25

Defines a list of camera shots to select from.

Member Function Documentation

◆ addShot()

void Dragengine.ConversationSystem.SimpleConversationCamera.addShot ( SimpleConversationCameraShot  shot)

Add shot.

◆ forEachShot()

void Dragengine.ConversationSystem.SimpleConversationCamera.forEachShot ( Block  ablock)

Visit shots with block.

Block is required to have signature void(SimpleConversationCameraShot shot) or void(int index, SimpleConversationCameraShot shot).

◆ getDelay()

float Dragengine.ConversationSystem.SimpleConversationCamera.getDelay ( )

Delay in seconds before activating action.

Default value is 0.25.

◆ getShotAt()

SimpleConversationCameraShot Dragengine.ConversationSystem.SimpleConversationCamera.getShotAt ( int  index)

Shot at index.

◆ getShotCount()

int Dragengine.ConversationSystem.SimpleConversationCamera.getShotCount ( )

Count of shots.

◆ new() [1/2]

SimpleConversationCamera Dragengine.ConversationSystem.SimpleConversationCamera.new ( SimpleConversationCamera  camera)

Create deep copy simple conversation camera definition.

◆ new() [2/2]

SimpleConversationCamera Dragengine.ConversationSystem.SimpleConversationCamera.new ( StringID  id)

Create simple conversation camera definition.

◆ randomShot()

SimpleConversationCameraShot Dragengine.ConversationSystem.SimpleConversationCamera.randomShot ( )

Random shot or null if no shots are present.

◆ setDelay()

void Dragengine.ConversationSystem.SimpleConversationCamera.setDelay ( float  delay)

Set delay in seconds before activating action.

Member Data Documentation

◆ pDelay

float Dragengine.ConversationSystem.SimpleConversationCamera.pDelay

◆ pId

StringID Dragengine.ConversationSystem.SimpleConversationCamera.pId

◆ pShots

Array Dragengine.ConversationSystem.SimpleConversationCamera.pShots

The documentation for this class was generated from the following file: