Actor Category 白名單
以下列出主系統為各 Actor category 提供的預設配置,供編寫 Catalog 時查閱。程式表示分類提供的配置,不是完整的資源 Catalog;未列出的屬性表示分類未指定預設值。目前系統定義的分類為 human。
human:人類角色
用於人類角色資源,分類提供頭像表情圖集、初始背包、行為及對話的預設配置。
const categoryDefaults = {
category: 'human',
bustSheet: {
columns: 4,
rows: 2,
emotions: {
normal: [0, 0],
happy: [1, 0],
thinking: [2, 0],
surprise: [3, 0],
angry: [0, 1],
sad: [1, 1],
moved: [2, 1],
determined: [3, 1]
}
},
gameplay: {
inventory: [],
behavior: {
mode: 'idle'
},
dialog: {
entry: 'greet',
nodes: {
greet: {
message: '你好!'
}
}
}
}
};
預設值整理
| 屬性 | 預設值 |
|---|---|
category | 'human' |
bustSheet.columns | 4 |
bustSheet.rows | 2 |
bustSheet.emotions.normal | [0, 0] |
bustSheet.emotions.happy | [1, 0] |
bustSheet.emotions.thinking | [2, 0] |
bustSheet.emotions.surprise | [3, 0] |
bustSheet.emotions.angry | [0, 1] |
bustSheet.emotions.sad | [1, 1] |
bustSheet.emotions.moved | [2, 1] |
bustSheet.emotions.determined | [3, 1] |
gameplay.inventory | [] |
gameplay.behavior.mode | 'idle' |
gameplay.dialog.entry | 'greet' |
gameplay.dialog.nodes.greet.message | '你好!' |
角色配置的說明見Actor資源的Catalog。