载入中...
搜索中...
未找到
eve::dialogue::Dialogue类 参考

Visual-novel style dialogue stage. Script: dlg <- eve.Dialogue(); 更多...

#include <Dialogue.h>

类 eve::dialogue::Dialogue 继承关系图:
eve::Module

Public 类型

using DataValue = eve::Value
 
using VarValue = eve::Value
 

Public 成员函数

 Module_REG (Dialogue)
 
 Dialogue ()
 Dialogue.
 
 ~Dialogue () override
 Dialogue.
 
bool registerCharacter (const std::string &id, const std::string &displayName)
 角色:注册 / 查询 / 绑定 Avatar。
 
bool hasCharacter (const std::string &id) const
 True when character.
 
std::string getDisplayName (const std::string &id) const
 Returns the display name.
 
bool bindAvatar (const std::string &id, avatar::AvatarInstance *av)
 Binds avatar.
 
avatar::AvatarInstance * getAvatar (const std::string &id) const
 Returns the avatar.
 
int getCharacterCount () const
 Returns the character count.
 
std::string getCharacterId (int index) const
 Returns the character id.
 
bool show (const std::string &id, const std::string &slot)
 舞台:显示/隐藏角色、槽位与表情/动作。
 
bool hide (const std::string &id)
 Hide.
 
bool isShown (const std::string &id) const
 True when shown.
 
std::string getSlot (const std::string &id) const
 Returns the slot.
 
void setSlotX (const std::string &slot, float xNorm)
 Sets the slot x.
 
float getSlotX (const std::string &slot) const
 Returns the slot x.
 
bool setExpression (const std::string &id, const std::string &expression)
 Sets the expression.
 
bool setMotion (const std::string &id, const std::string &motion)
 Sets the motion.
 
void syncStage (float stageWidth, float stageHeight)
 Synchronizes stage.
 
void say (const std::string &speakerId, const std::string &text)
 台词:说话/旁白、打字机效果与推进。
 
void narrate (const std::string &text)
 Narrate.
 
void setTypeSpeed (float charsPerSecond)
 Sets the type speed.
 
float getTypeSpeed () const
 Returns the type speed.
 
void skipTyping ()
 Skip typing.
 
bool isTyping () const
 True when typing.
 
bool isWaitingAdvance () const
 True when waiting advance.
 
bool isIdle () const
 True when idle.
 
void advance ()
 Advance.
 
std::string getSpeakerId () const
 Returns the speaker id.
 
std::string getSpeakerName () const
 Returns the speaker name.
 
std::string getFullText () const
 Returns the full text.
 
std::string getVisibleText () const
 Returns the visible text.
 
std::string getPhase () const
 Returns the phase.
 
void setLipSyncEnabled (bool enabled)
 口型同步:打字时驱动说话者 Avatar 参数。
 
bool isLipSyncEnabled () const
 True when lip sync enabled.
 
void setLipSyncParameter (const std::string &name)
 Sets the lip sync parameter.
 
std::string getLipSyncParameter () const
 Returns the lip sync parameter.
 
void setLipSyncAmplitude (float amplitude)
 Sets the lip sync amplitude.
 
float getLipSyncAmplitude () const
 Returns the lip sync amplitude.
 
float getLipSyncValue () const
 Returns the lip sync value.
 
void clearChoices ()
 选项:清空/添加/展示与选择。
 
bool addChoice (const std::string &id, const std::string &label)
 Adds choice.
 
void presentChoices ()
 Present choices.
 
bool isWaitingChoice () const
 True when waiting choice.
 
int getChoiceCount () const
 Returns the choice count.
 
std::string getChoiceId (int index) const
 Returns the choice id.
 
std::string getChoiceLabel (int index) const
 Returns the choice label.
 
bool selectChoice (int index)
 Select choice.
 
std::string getSelectedChoiceId () const
 Returns the selected choice id.
 
bool setVar (const std::string &name, ssq::Object value, const std::string &scope)
 Sets the var.
 
bool setVarValue (const std::string &name, const VarValue &value, const std::string &scope)
 Sets the var value.
 
VarValue getVarValue (const std::string &name, const std::string &scope) const
 Returns the var value.
 
std::string getVarType (const std::string &name, const std::string &scope) const
 Returns the var type.
 
int getVarInt (const std::string &name, int defaultValue, const std::string &scope) const
 Returns the var int.
 
float getVarFloat (const std::string &name, float defaultValue, const std::string &scope) const
 Returns the var float.
 
bool getVarBool (const std::string &name, bool defaultValue, const std::string &scope) const
 Returns the var bool.
 
std::string getVarString (const std::string &name, const std::string &defaultValue, const std::string &scope) const
 Returns the var string.
 
bool hasVar (const std::string &name, const std::string &scope) const
 True when var.
 
bool clearVar (const std::string &name, const std::string &scope)
 Clears var.
 
void clearVars (const std::string &scope)
 Clears vars.
 
bool registerCondition (const std::string &name, ssq::Object fn)
 Registers condition.
 
bool unregisterCondition (const std::string &name)
 Unregisters condition.
 
bool evalCondition (ssq::Object table)
 Eval condition.
 
bool evalConditionData (const DataValue &cond)
 Eval condition data.
 
int loadPoolsFromTable (ssq::Object table)
 Loads pools from table.
 
int loadPoolsFromData (const DataValue &root)
 Loads pools from data.
 
int replacePoolsFromData (const DataValue &root)
 Atomically replace all pools from a validated unified dnut workspace.
 
void clearPools ()
 Clears pools.
 
int getPoolCount () const
 Returns the pool count.
 
std::string getPoolId (int index) const
 Returns the pool id.
 
bool hasPool (const std::string &id) const
 True when pool.
 
std::string getLastPoolsError () const
 Returns the last pools error.
 
void setRandomSeed (int seed)
 Sets the random seed.
 
int getRandomSeed () const
 Returns the random seed.
 
std::string pickLine (const std::string &poolId, ssq::Object params)
 Pick line.
 
std::string pickLineWithParams (const std::string &poolId, const std::unordered_map< std::string, VarValue > &params)
 Pick line with params.
 
bool playLine (const std::string &lineId, ssq::Object params)
 Play line.
 
bool playLineWithParams (const std::string &lineId, const std::unordered_map< std::string, VarValue > &params)
 Play line with params.
 
bool playPool (const std::string &poolId, ssq::Object params)
 Play pool.
 
bool playPoolWithParams (const std::string &poolId, const std::unordered_map< std::string, VarValue > &params)
 Play pool with params.
 
std::string getCurrentLineId () const
 Returns the current line id.
 
std::string getCurrentLineMeta (const std::string &field) const
 Returns the current line meta.
 
std::vector< std::string > getCurrentLineTags () const
 Returns the current line tags.
 
void update (float dt)
 推进打字机 / 口型同步 / 阶段机;每帧调用。
 
void reset ()
 重置舞台与台词状态。
 
bool captureState (StateValue &out) const
 Serialize conversation state (vars, rng, phase, choices, stage).
 
bool restoreState (const StateValue &in, std::string *err=nullptr)
 Restore conversation state captured by captureState().
 
bool resetToDefaults ()
 Reset stage and line state (restore fallback).
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Visual-novel style dialogue stage. Script: dlg <- eve.Dialogue();

Dialogue scripts remain Squirrel (functions / generators). This module only owns speaker lines, typewriter, choices, and avatar stage slots.

在文件 Dialogue.h 第 47 行定义.

成员类型定义说明

◆ DataValue

在文件 Dialogue.h 第 50 行定义.

◆ VarValue

在文件 Dialogue.h 第 51 行定义.

构造及析构函数说明

◆ Dialogue()

eve::dialogue::Dialogue::Dialogue ( )

◆ ~Dialogue()

eve::dialogue::Dialogue::~Dialogue ( )
override

成员函数说明

◆ addChoice()

bool eve::dialogue::Dialogue::addChoice ( const std::string &  id,
const std::string &  label 
)

Adds choice.

在文件 Dialogue.cpp 第 1090 行定义.

引用了 id , 以及 label.

◆ advance()

void eve::dialogue::Dialogue::advance ( )

Advance.

在文件 Dialogue.cpp 第 1049 行定义.

引用了 skipTyping().

◆ bindAvatar()

bool eve::dialogue::Dialogue::bindAvatar ( const std::string &  id,
avatar::AvatarInstance *  av 
)

Binds avatar.

在文件 Dialogue.cpp 第 910 行定义.

引用了 eve::avatar::AvatarInstance::addDestroyHook(), c , 以及 key.

◆ captureState()

bool eve::dialogue::Dialogue::captureState ( StateValue &  out) const

◆ clearChoices()

void eve::dialogue::Dialogue::clearChoices ( )

选项:清空/添加/展示与选择。

在文件 Dialogue.cpp 第 1085 行定义.

◆ clearPools()

void eve::dialogue::Dialogue::clearPools ( )

Clears pools.

在文件 Dialogue.cpp 第 659 行定义.

◆ clearVar()

bool eve::dialogue::Dialogue::clearVar ( const std::string &  name,
const std::string &  scope 
)

Clears var.

在文件 Dialogue.cpp 第 269 行定义.

引用了 m, name , 以及 scope.

◆ clearVars()

void eve::dialogue::Dialogue::clearVars ( const std::string &  scope)

Clears vars.

在文件 Dialogue.cpp 第 274 行定义.

引用了 scope.

◆ evalCondition()

bool eve::dialogue::Dialogue::evalCondition ( ssq::Object  table)

Eval condition.

在文件 Dialogue.cpp 第 312 行定义.

引用了 evalConditionData() , 以及 v.

◆ evalConditionData()

bool eve::dialogue::Dialogue::evalConditionData ( const DataValue &  cond)

Eval condition data.

在文件 Dialogue.cpp 第 463 行定义.

引用了 c , 以及 error.

被这些函数引用 evalCondition().

◆ getAvatar()

avatar::AvatarInstance * eve::dialogue::Dialogue::getAvatar ( const std::string &  id) const

Returns the avatar.

在文件 Dialogue.cpp 第 929 行定义.

引用了 c.

◆ getCharacterCount()

int eve::dialogue::Dialogue::getCharacterCount ( ) const

Returns the character count.

在文件 Dialogue.cpp 第 934 行定义.

◆ getCharacterId()

std::string eve::dialogue::Dialogue::getCharacterId ( int  index) const

Returns the character id.

在文件 Dialogue.cpp 第 936 行定义.

引用了 index.

◆ getChoiceCount()

int eve::dialogue::Dialogue::getChoiceCount ( ) const

Returns the choice count.

在文件 Dialogue.cpp 第 1113 行定义.

◆ getChoiceId()

std::string eve::dialogue::Dialogue::getChoiceId ( int  index) const

Returns the choice id.

在文件 Dialogue.cpp 第 1115 行定义.

引用了 index.

◆ getChoiceLabel()

std::string eve::dialogue::Dialogue::getChoiceLabel ( int  index) const

Returns the choice label.

在文件 Dialogue.cpp 第 1120 行定义.

引用了 index.

◆ getCurrentLineId()

std::string eve::dialogue::Dialogue::getCurrentLineId ( ) const
inline

Returns the current line id.

在文件 Dialogue.h 第 238 行定义.

◆ getCurrentLineMeta()

std::string eve::dialogue::Dialogue::getCurrentLineMeta ( const std::string &  field) const

Returns the current line meta.

在文件 Dialogue.cpp 第 847 行定义.

◆ getCurrentLineTags()

std::vector< std::string > eve::dialogue::Dialogue::getCurrentLineTags ( ) const

Returns the current line tags.

在文件 Dialogue.cpp 第 852 行定义.

◆ getDisplayName()

std::string eve::dialogue::Dialogue::getDisplayName ( const std::string &  id) const

Returns the display name.

在文件 Dialogue.cpp 第 905 行定义.

引用了 c.

被这些函数引用 getSpeakerName().

◆ getFullText()

std::string eve::dialogue::Dialogue::getFullText ( ) const
inline

Returns the full text.

在文件 Dialogue.h 第 118 行定义.

◆ getLastPoolsError()

std::string eve::dialogue::Dialogue::getLastPoolsError ( ) const
inline

Returns the last pools error.

在文件 Dialogue.h 第 212 行定义.

被这些函数引用 eve::dialogue::DialogueFlow::removeSourceChecked().

◆ getLipSyncAmplitude()

float eve::dialogue::Dialogue::getLipSyncAmplitude ( ) const
inline

Returns the lip sync amplitude.

在文件 Dialogue.h 第 135 行定义.

◆ getLipSyncParameter()

std::string eve::dialogue::Dialogue::getLipSyncParameter ( ) const
inline

Returns the lip sync parameter.

在文件 Dialogue.h 第 131 行定义.

◆ getLipSyncValue()

float eve::dialogue::Dialogue::getLipSyncValue ( ) const
inline

Returns the lip sync value.

在文件 Dialogue.h 第 137 行定义.

◆ getPhase()

std::string eve::dialogue::Dialogue::getPhase ( ) const

Returns the phase.

在文件 Dialogue.cpp 第 1071 行定义.

被这些函数引用 captureState().

◆ getPoolCount()

int eve::dialogue::Dialogue::getPoolCount ( ) const

Returns the pool count.

在文件 Dialogue.cpp 第 661 行定义.

◆ getPoolId()

std::string eve::dialogue::Dialogue::getPoolId ( int  index) const

Returns the pool id.

在文件 Dialogue.cpp 第 663 行定义.

引用了 index.

◆ getRandomSeed()

int eve::dialogue::Dialogue::getRandomSeed ( ) const
inline

Returns the random seed.

在文件 Dialogue.h 第 219 行定义.

◆ getSelectedChoiceId()

std::string eve::dialogue::Dialogue::getSelectedChoiceId ( ) const
inline

Returns the selected choice id.

在文件 Dialogue.h 第 156 行定义.

◆ getSlot()

std::string eve::dialogue::Dialogue::getSlot ( const std::string &  id) const

Returns the slot.

在文件 Dialogue.cpp 第 963 行定义.

引用了 c.

◆ getSlotX()

float eve::dialogue::Dialogue::getSlotX ( const std::string &  slot) const

Returns the slot x.

在文件 Dialogue.cpp 第 973 行定义.

引用了 slot.

被这些函数引用 syncStage().

◆ getSpeakerId()

std::string eve::dialogue::Dialogue::getSpeakerId ( ) const
inline

Returns the speaker id.

在文件 Dialogue.h 第 114 行定义.

◆ getSpeakerName()

std::string eve::dialogue::Dialogue::getSpeakerName ( ) const

Returns the speaker name.

在文件 Dialogue.cpp 第 1057 行定义.

引用了 getDisplayName().

◆ getTypeSpeed()

float eve::dialogue::Dialogue::getTypeSpeed ( ) const
inline

Returns the type speed.

在文件 Dialogue.h 第 101 行定义.

◆ getVarBool()

bool eve::dialogue::Dialogue::getVarBool ( const std::string &  name,
bool  defaultValue,
const std::string &  scope 
) const

Returns the var bool.

在文件 Dialogue.cpp 第 249 行定义.

引用了 eve::Value::Bool, defaultValue, eve::Value::Float, getVarValue(), eve::Value::Int, name, scope , 以及 v.

◆ getVarFloat()

float eve::dialogue::Dialogue::getVarFloat ( const std::string &  name,
float  defaultValue,
const std::string &  scope 
) const

Returns the var float.

在文件 Dialogue.cpp 第 240 行定义.

引用了 eve::Value::Bool, defaultValue, eve::Value::Float, getVarValue(), eve::Value::Int, name, scope , 以及 v.

◆ getVarInt()

int eve::dialogue::Dialogue::getVarInt ( const std::string &  name,
int  defaultValue,
const std::string &  scope 
) const

Returns the var int.

在文件 Dialogue.cpp 第 232 行定义.

引用了 eve::Value::Bool, defaultValue, eve::Value::Float, getVarValue(), eve::Value::Int, name, scope , 以及 v.

◆ getVarString()

std::string eve::dialogue::Dialogue::getVarString ( const std::string &  name,
const std::string &  defaultValue,
const std::string &  scope 
) const

Returns the var string.

在文件 Dialogue.cpp 第 258 行定义.

引用了 defaultValue, getVarValue(), name, scope, eve::Value::String , 以及 v.

◆ getVarType()

std::string eve::dialogue::Dialogue::getVarType ( const std::string &  name,
const std::string &  scope 
) const

Returns the var type.

在文件 Dialogue.cpp 第 228 行定义.

引用了 getVarValue(), hasVar(), name, scope , 以及 eve::Value::typeName().

◆ getVarValue()

Dialogue::VarValue eve::dialogue::Dialogue::getVarValue ( const std::string &  name,
const std::string &  scope 
) const

Returns the var value.

在文件 Dialogue.cpp 第 221 行定义.

引用了 m, name, scope , 以及 eve::Value::string().

被这些函数引用 getVarBool(), getVarFloat(), getVarInt(), getVarString() , 以及 getVarType().

◆ getVisibleText()

std::string eve::dialogue::Dialogue::getVisibleText ( ) const

Returns the visible text.

在文件 Dialogue.cpp 第 1062 行定义.

引用了 n, eve::utf8_byte_offset_for_codepoints() , 以及 eve::utf8_codepoint_count().

◆ hasCharacter()

bool eve::dialogue::Dialogue::hasCharacter ( const std::string &  id) const

True when character.

在文件 Dialogue.cpp 第 903 行定义.

◆ hasPool()

bool eve::dialogue::Dialogue::hasPool ( const std::string &  id) const

True when pool.

在文件 Dialogue.cpp 第 668 行定义.

◆ hasVar()

bool eve::dialogue::Dialogue::hasVar ( const std::string &  name,
const std::string &  scope 
) const

True when var.

在文件 Dialogue.cpp 第 264 行定义.

引用了 m, name , 以及 scope.

被这些函数引用 getVarType().

◆ hide()

bool eve::dialogue::Dialogue::hide ( const std::string &  id)

Hide.

在文件 Dialogue.cpp 第 950 行定义.

引用了 c.

◆ isIdle()

bool eve::dialogue::Dialogue::isIdle ( ) const

True when idle.

在文件 Dialogue.cpp 第 1047 行定义.

◆ isLipSyncEnabled()

bool eve::dialogue::Dialogue::isLipSyncEnabled ( ) const
inline

True when lip sync enabled.

在文件 Dialogue.h 第 127 行定义.

◆ isShown()

bool eve::dialogue::Dialogue::isShown ( const std::string &  id) const

True when shown.

在文件 Dialogue.cpp 第 958 行定义.

引用了 c.

◆ isTyping()

bool eve::dialogue::Dialogue::isTyping ( ) const

True when typing.

在文件 Dialogue.cpp 第 1043 行定义.

◆ isWaitingAdvance()

bool eve::dialogue::Dialogue::isWaitingAdvance ( ) const

True when waiting advance.

在文件 Dialogue.cpp 第 1045 行定义.

◆ isWaitingChoice()

bool eve::dialogue::Dialogue::isWaitingChoice ( ) const

True when waiting choice.

在文件 Dialogue.cpp 第 1111 行定义.

◆ loadPoolsFromData()

int eve::dialogue::Dialogue::loadPoolsFromData ( const DataValue &  root)

Loads pools from data.

在文件 Dialogue.cpp 第 599 行定义.

引用了 root.

被这些函数引用 loadPoolsFromTable().

◆ loadPoolsFromTable()

int eve::dialogue::Dialogue::loadPoolsFromTable ( ssq::Object  table)

Loads pools from table.

在文件 Dialogue.cpp 第 518 行定义.

引用了 loadPoolsFromData() , 以及 root.

◆ Module_REG()

eve::dialogue::Dialogue::Module_REG ( Dialogue  )

◆ narrate()

void eve::dialogue::Dialogue::narrate ( const std::string &  text)

Narrate.

在文件 Dialogue.cpp 第 1032 行定义.

引用了 text.

被这些函数引用 playLineWithParams().

◆ pickLine()

std::string eve::dialogue::Dialogue::pickLine ( const std::string &  poolId,
ssq::Object  params 
)

Pick line.

在文件 Dialogue.cpp 第 757 行定义.

引用了 p, params , 以及 pickLineWithParams().

◆ pickLineWithParams()

std::string eve::dialogue::Dialogue::pickLineWithParams ( const std::string &  poolId,
const std::unordered_map< std::string, VarValue > &  params 
)

Pick line with params.

在文件 Dialogue.cpp 第 763 行定义.

引用了 candidates, line, out, params , 以及 roll.

被这些函数引用 pickLine() , 以及 playPoolWithParams().

◆ playLine()

bool eve::dialogue::Dialogue::playLine ( const std::string &  lineId,
ssq::Object  params 
)

Play line.

在文件 Dialogue.cpp 第 805 行定义.

引用了 p, params , 以及 playLineWithParams().

◆ playLineWithParams()

bool eve::dialogue::Dialogue::playLineWithParams ( const std::string &  lineId,
const std::unordered_map< std::string, VarValue > &  params 
)

Play line with params.

在文件 Dialogue.cpp 第 811 行定义.

引用了 line, narrate(), params, say() , 以及 text.

被这些函数引用 playLine() , 以及 playPoolWithParams().

◆ playPool()

bool eve::dialogue::Dialogue::playPool ( const std::string &  poolId,
ssq::Object  params 
)

Play pool.

在文件 Dialogue.cpp 第 835 行定义.

引用了 p, params , 以及 playPoolWithParams().

◆ playPoolWithParams()

bool eve::dialogue::Dialogue::playPoolWithParams ( const std::string &  poolId,
const std::unordered_map< std::string, VarValue > &  params 
)

Play pool with params.

在文件 Dialogue.cpp 第 841 行定义.

引用了 params, pickLineWithParams() , 以及 playLineWithParams().

被这些函数引用 playPool().

◆ presentChoices()

void eve::dialogue::Dialogue::presentChoices ( )

Present choices.

在文件 Dialogue.cpp 第 1102 行定义.

引用了 skipTyping().

◆ registerCharacter()

bool eve::dialogue::Dialogue::registerCharacter ( const std::string &  id,
const std::string &  displayName 
)

角色:注册 / 查询 / 绑定 Avatar。

在文件 Dialogue.cpp 第 890 行定义.

引用了 c , 以及 id.

◆ registerCondition()

bool eve::dialogue::Dialogue::registerCondition ( const std::string &  name,
ssq::Object  fn 
)

Registers condition.

Register a Squirrel predicate: fn(ctx) -> bool, ctx = {vars, params, lineId}.

在文件 Dialogue.cpp 第 289 行定义.

引用了 fn, name, raw , 以及 unregisterCondition().

◆ replacePoolsFromData()

int eve::dialogue::Dialogue::replacePoolsFromData ( const DataValue &  root)

Atomically replace all pools from a validated unified dnut workspace.

在文件 Dialogue.cpp 第 601 行定义.

引用了 root.

被这些函数引用 eve::dialogue::DialogueFlow::removeSourceChecked().

◆ reset()

void eve::dialogue::Dialogue::reset ( )

重置舞台与台词状态。

在文件 Dialogue.cpp 第 1181 行定义.

引用了 c.

被这些函数引用 resetToDefaults().

◆ resetToDefaults()

bool eve::dialogue::Dialogue::resetToDefaults ( )

Reset stage and line state (restore fallback).

在文件 Dialogue.cpp 第 1345 行定义.

引用了 reset().

◆ restoreState()

bool eve::dialogue::Dialogue::restoreState ( const StateValue &  in,
std::string *  err = nullptr 
)

Restore conversation state captured by captureState().

返回
false when the captured state is malformed; the reload session then falls back to resetToDefaults().

在文件 Dialogue.cpp 第 1247 行定义.

引用了 eve::StateValue::at(), c, choices, eve::StateValue::find(), id, eve::StateValue::isArray(), eve::StateValue::isBool(), eve::StateValue::isInt(), eve::StateValue::isObject(), eve::StateValue::isString(), key, label, name, phase, slot, slots , 以及 v.

◆ say()

void eve::dialogue::Dialogue::say ( const std::string &  speakerId,
const std::string &  text 
)

台词:说话/旁白、打字机效果与推进。

在文件 Dialogue.cpp 第 1028 行定义.

引用了 text.

被这些函数引用 playLineWithParams().

◆ selectChoice()

bool eve::dialogue::Dialogue::selectChoice ( int  index)

Select choice.

在文件 Dialogue.cpp 第 1125 行定义.

引用了 index.

◆ setExpression()

bool eve::dialogue::Dialogue::setExpression ( const std::string &  id,
const std::string &  expression 
)

Sets the expression.

在文件 Dialogue.cpp 第 982 行定义.

引用了 c.

◆ setLipSyncAmplitude()

void eve::dialogue::Dialogue::setLipSyncAmplitude ( float  amplitude)

Sets the lip sync amplitude.

在文件 Dialogue.cpp 第 1139 行定义.

◆ setLipSyncEnabled()

void eve::dialogue::Dialogue::setLipSyncEnabled ( bool  enabled)

口型同步:打字时驱动说话者 Avatar 参数。

在文件 Dialogue.cpp 第 1133 行定义.

引用了 enabled.

◆ setLipSyncParameter()

void eve::dialogue::Dialogue::setLipSyncParameter ( const std::string &  name)

Sets the lip sync parameter.

在文件 Dialogue.cpp 第 1135 行定义.

引用了 name.

◆ setMotion()

bool eve::dialogue::Dialogue::setMotion ( const std::string &  id,
const std::string &  motion 
)

Sets the motion.

在文件 Dialogue.cpp 第 989 行定义.

引用了 c.

◆ setRandomSeed()

void eve::dialogue::Dialogue::setRandomSeed ( int  seed)

Sets the random seed.

Reseed the weighted picker; also resets per-pool no-repeat history.

在文件 Dialogue.cpp 第 752 行定义.

引用了 p , 以及 seed.

◆ setSlotX()

void eve::dialogue::Dialogue::setSlotX ( const std::string &  slot,
float  xNorm 
)

Sets the slot x.

在文件 Dialogue.cpp 第 968 行定义.

引用了 slot.

◆ setTypeSpeed()

void eve::dialogue::Dialogue::setTypeSpeed ( float  charsPerSecond)

Sets the type speed.

在文件 Dialogue.cpp 第 1034 行定义.

◆ setVar()

bool eve::dialogue::Dialogue::setVar ( const std::string &  name,
ssq::Object  value,
const std::string &  scope 
)

Sets the var.

Squirrel-facing setter: value may be int/float/bool/string.

在文件 Dialogue.cpp 第 210 行定义.

引用了 name, ok, scope, setVarValue(), top, v , 以及 value.

◆ setVarValue()

bool eve::dialogue::Dialogue::setVarValue ( const std::string &  name,
const VarValue &  value,
const std::string &  scope 
)

Sets the var value.

C++ core setter (also used by unit tests).

在文件 Dialogue.cpp 第 202 行定义.

引用了 m, name, scope , 以及 value.

被这些函数引用 setVar().

◆ show()

bool eve::dialogue::Dialogue::show ( const std::string &  id,
const std::string &  slot 
)

舞台:显示/隐藏角色、槽位与表情/动作。

在文件 Dialogue.cpp 第 941 行定义.

引用了 c , 以及 slot.

◆ skipTyping()

void eve::dialogue::Dialogue::skipTyping ( )

Skip typing.

在文件 Dialogue.cpp 第 1036 行定义.

引用了 eve::utf8_codepoint_count().

被这些函数引用 advance() , 以及 presentChoices().

◆ syncStage()

void eve::dialogue::Dialogue::syncStage ( float  stageWidth,
float  stageHeight 
)

Synchronizes stage.

Place visible avatars using normalized slot X * stageWidth.

在文件 Dialogue.cpp 第 996 行定义.

引用了 c, getSlotX() , 以及 x.

◆ unregisterCondition()

bool eve::dialogue::Dialogue::unregisterCondition ( const std::string &  name)

Unregisters condition.

在文件 Dialogue.cpp 第 304 行定义.

引用了 name.

被这些函数引用 registerCondition().

◆ update()

void eve::dialogue::Dialogue::update ( float  dt)

推进打字机 / 口型同步 / 阶段机;每帧调用。

在文件 Dialogue.cpp 第 1167 行定义.

引用了 dt , 以及 eve::utf8_codepoint_count().


该类的文档由以下文件生成: