元編程參考文件

遊戲定義

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 視覺小說