元编程参考文档

游戏定义

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.
宽度整数1280The resolution's width.
高度整数720The 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.
_libraryIDivookaAssetLibrary—The document's library (supplied automatically).
加载脚本真否FalseAlso 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 视觉小说