游戏定义
8 个节点
本页内容 8
检查游戏
函数Checks a definition: its story against its files.
签名
检查游戏(游戏: Game Definition) -> 文本数组
string[] CheckGame(GameDefinition game)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — |
返回
| 问题 | 文本数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
创建游戏定义
函数Makes a game definition from a story.
签名
创建游戏定义 -> Game Definition
标题: 文本
故事: Story
宽度: 整数
高度: 整数GameDefinition MakeGameDefinition(
string title,
Story story,
int width = 1280,
int height = 720)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 标题 | 文本 | — | The game's name. |
| 故事 | Story | — | The story. |
| 宽度 | 整数 | 1280 | The resolution's width. |
| 高度 | 整数 | 720 | The resolution's height. |
返回
| 游戏 | Game Definition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
运行游戏定义
函数Runs a definition in a window until it is closed. The procedural end of a functional description.
签名
运行游戏定义(游戏: Game Definition)
void RunGameDefinition(GameDefinition game)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
设置素材文件夹
函数A definition that reads files from a folder on disk.
签名
设置素材文件夹 -> Game Definition
游戏: Game Definition
文件夹: 文本GameDefinition WithAssetFolder(
GameDefinition game,
string folder)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — | |
| 文件夹 | 文本 | — |
返回
| 游戏 | Game Definition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
设置配置
函数A definition with a configuration setting changed, as define config.key does.
签名
设置配置 -> Game Definition
游戏: Game Definition
键: 文本
值: 文本GameDefinition WithConfig(
GameDefinition game,
string key,
string value)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — | |
| 键 | 文本 | — | |
| 值 | 文本 | — |
返回
| 游戏 | Game Definition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
设置库素材
函数A definition that reads its files from the document's library: the images, sounds and scripts embedded in the document.
签名
设置库素材 -> Game Definition
游戏: Game Definition
_library: IDivookaAssetLibrary
加载脚本: 真否GameDefinition WithLibraryAssets(
GameDefinition game,
IDivookaAssetLibrary _library,
bool loadScripts = false)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — | The definition. |
| _library | IDivookaAssetLibrary | — | The document's library (supplied automatically). |
| 加载脚本 | 真否 | False | Also add the library's .novella scripts to the story. |
返回
| 游戏 | Game Definition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
设置故事
函数A definition with another story's content added.
签名
设置故事(游戏: Game Definition, 故事: Story) -> Game Definition
GameDefinition WithStory(GameDefinition game, Story story)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — | |
| 故事 | Story | — |
返回
| 游戏 | Game Definition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说
设置主题
函数A definition with a theme setting changed, as define theme.key does: a colour, a size, an image, a font.
签名
设置主题 -> Game Definition
游戏: Game Definition
键: 文本
值: 文本GameDefinition WithTheme(
GameDefinition game,
string key,
string value)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 游戏 | Game Definition | — | |
| 键 | 文本 | — | |
| 值 | 文本 | — |
返回
| 游戏 | Game Definition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 游戏定义
- 所属包
- Novella 视觉小说