Compare commits

..
4 Commits
15 changed files with 187 additions and 1 deletions

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
mod_items_base_name = Base de objetos
mod_items_base_desc = Definiciones y fábricas de objetos, estado del inventario y de las recetas, la interfaz del inventario y su guardado.
+2
View File
@@ -0,0 +1,2 @@
mod_items_base_name = アイテム基盤
mod_items_base_desc = アイテムの定義とファクトリー、インベントリとレシピの状態、インベントリ UI とそのセーブ状態。
+2
View File
@@ -0,0 +1,2 @@
mod_items_base_name = 아이템 기반
mod_items_base_desc = 아이템 정의와 팩토리, 인벤토리와 레시피 상태, 인벤토리 UI와 그 저장 상태.
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = Give an item
items/schema/builtin/item_add_desc = A chest, a gift, something found on the map
items/schema/field/item = Item
items/schema/field/count = Count
items/schema/kind/item = Items
items/schema/kind/item_desc = Everything in the bag: food, potions, gear
items/schema/field/name = Name
items/schema/field/description = Description
items/schema/field/cost = Cost
items/schema/field/picture = Picture
items/schema/field/item_type = Item types
items/schema/field/item_type_desc = Comma separated: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop
items/schema/field/item_action = Item action
items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… or null
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = Dar un objeto
items/schema/builtin/item_add_desc = Un cofre, un regalo, algo hallado en el mapa
items/schema/field/item = Objeto
items/schema/field/count = Cantidad
items/schema/kind/item = Objetos
items/schema/kind/item_desc = Todo lo de la bolsa: comida, pociones, equipo
items/schema/field/name = Nombre
items/schema/field/description = Descripción
items/schema/field/cost = Coste
items/schema/field/picture = Imagen
items/schema/field/item_type = Tipos de objeto
items/schema/field/item_type_desc = Separados por comas: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop
items/schema/field/item_action = Acción del objeto
items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… o null
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = アイテムを渡す
items/schema/builtin/item_add_desc = 宝箱、贈り物、マップでの拾い物
items/schema/field/item = アイテム
items/schema/field/count = 個数
items/schema/kind/item = アイテム
items/schema/kind/item_desc = かばんの中身すべて:食べ物、薬、装備
items/schema/field/name = 名前
items/schema/field/description = 説明
items/schema/field/cost = コスト
items/schema/field/picture = 画像
items/schema/field/item_type = アイテムの種類
items/schema/field/item_type_desc = カンマ区切り:Resource、Food、Used、TargetUsed、Quest、Recipe、CantDrop
items/schema/field/item_action = アイテムの行動
items/schema/field/item_action_desc = action/heal、action/equip、action/stat_up… または null
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = 아이템 지급
items/schema/builtin/item_add_desc = 상자, 선물, 맵에서 찾은 것
items/schema/field/item = 아이템
items/schema/field/count = 개수
items/schema/kind/item = 아이템
items/schema/kind/item_desc = 가방 속 모든 것: 음식, 물약, 장비
items/schema/field/name = 이름
items/schema/field/description = 설명
items/schema/field/cost = 비용
items/schema/field/picture = 그림
items/schema/field/item_type = 아이템 종류
items/schema/field/item_type_desc = 쉼표로 구분: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop
items/schema/field/item_action = 아이템 행동
items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… 또는 null
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = Дать предмет
items/schema/builtin/item_add_desc = Сундук, подарок, находка на карте
items/schema/field/item = Предмет
items/schema/field/count = Количество
items/schema/kind/item = Предметы
items/schema/kind/item_desc = Всё, что лежит в сумке: еда, зелья, снаряжение
items/schema/field/name = Название
items/schema/field/description = Описание
items/schema/field/cost = Цена
items/schema/field/picture = Картинка
items/schema/field/item_type = Типы предмета
items/schema/field/item_type_desc = Через запятую: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop
items/schema/field/item_action = Действие предмета
items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… или null
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = Cho vật phẩm
items/schema/builtin/item_add_desc = Rương, quà, thứ nhặt được trên bản đồ
items/schema/field/item = Vật phẩm
items/schema/field/count = Số lượng
items/schema/kind/item = Vật phẩm
items/schema/kind/item_desc = Mọi thứ trong túi: đồ ăn, thuốc, trang bị
items/schema/field/name = Tên
items/schema/field/description = Mô tả
items/schema/field/cost = Chi phí
items/schema/field/picture = Hình ảnh
items/schema/field/item_type = Loại vật phẩm
items/schema/field/item_type_desc = Cách nhau bằng dấu phẩy: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop
items/schema/field/item_action = Hành động vật phẩm
items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… hoặc null
+14
View File
@@ -0,0 +1,14 @@
items/schema/builtin/item_add = 给予物品
items/schema/builtin/item_add_desc = 宝箱、礼物、地图上的发现
items/schema/field/item = 物品
items/schema/field/count = 数量
items/schema/kind/item = 物品
items/schema/kind/item_desc = 背包里的一切:食物、药水、装备
items/schema/field/name = 名称
items/schema/field/description = 描述
items/schema/field/cost = 消耗
items/schema/field/picture = 图片
items/schema/field/item_type = 物品类型
items/schema/field/item_type_desc = 逗号分隔:Resource、Food、Used、TargetUsed、Quest、Recipe、CantDrop
items/schema/field/item_action = 物品动作
items/schema/field/item_action_desc = action/heal、action/equip、action/stat_up……或 null
+2
View File
@@ -0,0 +1,2 @@
mod_items_base_name = Nền tảng vật phẩm
mod_items_base_desc = Định nghĩa và factory vật phẩm, trạng thái túi đồ và công thức, giao diện túi đồ và trạng thái lưu của chúng.
+2
View File
@@ -0,0 +1,2 @@
mod_items_base_name = 物品基础
mod_items_base_desc = 物品定义与工厂、背包和配方状态、背包界面及其存档状态。
+75
View File
@@ -0,0 +1,75 @@
{
"Actions": [
{
"Id": "item.add",
"Name": "items/schema/builtin/item_add",
"Description": "items/schema/builtin/item_add_desc",
"Category": "items",
"Params": [
{
"Key": "id",
"Type": "ref",
"Kind": "item",
"Required": true,
"Name": "items/schema/field/item"
},
{
"Key": "count",
"Type": "int",
"Default": "1",
"Name": "items/schema/field/count"
}
]
}
],
"Kinds": [
{
"Kind": "item",
"Name": "items/schema/kind/item",
"Description": "items/schema/kind/item_desc",
"Folder": "items",
"NewId": "{mod}/new_item",
"Order": 10,
"Fields": [
{
"Key": "Name",
"Type": "locale",
"KeyPattern": "{mod}/item/{id}/name",
"Name": "items/schema/field/name"
},
{
"Key": "Description",
"Type": "locale",
"KeyPattern": "{mod}/item/{id}/desc",
"Name": "items/schema/field/description"
},
{
"Key": "Cost",
"Type": "int",
"Default": "1",
"Name": "items/schema/field/cost"
},
{
"Key": "Sprite",
"Type": "picture",
"Group": "items",
"Name": "items/schema/field/picture"
},
{
"Key": "ItemType",
"Type": "text",
"Default": "Resource",
"Name": "items/schema/field/item_type",
"Description": "items/schema/field/item_type_desc"
},
{
"Key": "ItemAction",
"Type": "text",
"Default": "null",
"Name": "items/schema/field/item_action",
"Description": "items/schema/field/item_action_desc"
}
]
}
]
}
+3
View File
@@ -31,6 +31,9 @@ namespace Cthangover.Core.Factories.Impls
{ {
} }
/// <summary>Ids of the registered actions, for editors that offer them (<c>"null"</c>, no effect, is not among them).</summary>
public IEnumerable<string> Ids => data.Keys;
/// <summary>Registers a single action under its <see cref="IItemAction.ID"/>; the first action of an id wins, null/empty ids are ignored.</summary> /// <summary>Registers a single action under its <see cref="IItemAction.ID"/>; the first action of an id wins, null/empty ids are ignored.</summary>
public void Register(IItemAction action) public void Register(IItemAction action)
{ {
@@ -45,7 +45,7 @@ namespace Mods.InventoryTest
// Deferred: сцена ещё не готова; драйвер сам ждёт Boot.IsReady и // Deferred: сцена ещё не готова; драйвер сам ждёт Boot.IsReady и
// появления CurrentScene, поэтому порядок с загрузкой сцены не важен. // появления CurrentScene, поэтому порядок с загрузкой сцены не важен.
(Godot.Engine.GetMainLoop() as SceneTree)?.Root?.CallDeferred("add_child", new InventoryTestDriverNode(timeout)); ModRoot.AddDeferred(new InventoryTestDriverNode(timeout));
} }
private static float? ParseTimeout(string[] args) private static float? ParseTimeout(string[] args)