元编程参考文档

Novella 应用

6 个节点

本页内容 6

创建 Novella 应用

函数

此节点没有文档说明。

签名
创建 Novella 应用() -> Novella Application
NovellaApplication NovellaApplication()

返回

Novella ApplicationNovella Application
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
Novella Application
所属包
Novella 视觉小说

命令

事件

Implements a run command the game did not register by name; answer with NovellaGame.SetResult, which the story reads as _return.

签名
命令(名称: 文本, 参数: 文本数组)
void Command(string name, string[] arguments)

参数

名称类型默认值说明
名称文本—The command's name.
参数文本数组—The arguments, as text.
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 状态机状态
声明于
Novella 游戏
所属包
Novella 视觉小说

游戏结束时

事件

Called when a story ends, before the main menu returns.

签名
游戏结束时()
void GameEnded()
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 状态机状态
声明于
Novella 游戏
所属包
Novella 视觉小说

进入标签时

事件

Called when the story enters a label.

签名
进入标签时(标签: 文本)
void LabelEntered(string label)

参数

名称类型默认值说明
标签文本—
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 状态机状态
声明于
Novella 游戏
所属包
Novella 视觉小说

脚本

事件

A live script: if implemented, starting the game runs this instead of the story's start label, and every Say, Show, Menu and the rest called from it plays immediately.

签名
脚本()
void Script()

备注

A live script cannot be saved or rolled back part-way, because its position is in a running procedure rather than in the story.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 状态机状态
声明于
Novella 游戏
所属包
Novella 视觉小说

设置

事件

Configures the game before it opens: the place for definitions, settings and content.

签名
设置()
void Setup()
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 状态机状态
声明于
Novella 游戏
所属包
Novella 视觉小说