完成交互逻辑
This commit is contained in:
@@ -1,8 +1,147 @@
|
||||
namespace NBF
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class InteractiveData
|
||||
{
|
||||
public UIDef.InteractiveType Type;
|
||||
public string Icon = "op-door";
|
||||
public string Name;
|
||||
public string Use1;
|
||||
public string Use2;
|
||||
public string Use1Title = "进入";
|
||||
public string Use2Title;
|
||||
}
|
||||
|
||||
public class GameDef
|
||||
{
|
||||
public const int NormalFOV = 50;
|
||||
public const int ZoomedFOV = 25;
|
||||
|
||||
public static List<InteractiveData> InteractiveDataList = new List<InteractiveData>()
|
||||
{
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Boat,
|
||||
Name = "船",
|
||||
Icon = "op-boat",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "上船"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Bank,
|
||||
Name = "银行",
|
||||
Icon = "op-bank",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Canteen,
|
||||
Name = "餐厅",
|
||||
Icon = "op-door",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "热饭"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Oven,
|
||||
Name = "烤箱",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "使用"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Tent,
|
||||
Name = "帐篷",
|
||||
Icon = "op-tent",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "打开"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Drying,
|
||||
Name = "晾干器",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "使用"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Bonfire,
|
||||
Name = "篝火",
|
||||
Icon = "op-fire",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "使用"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Fumigate,
|
||||
Name = "烟熏箱",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "使用"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.FoodShop,
|
||||
Name = "食品商店",
|
||||
Icon = "op-door",
|
||||
Use1 = "1,1",
|
||||
Use2 = "1,1",
|
||||
Use1Title = "进入",
|
||||
Use2Title = "退货"
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.FishingShop,
|
||||
Name = "钓鱼商店",
|
||||
Icon = "op-door",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入",
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.ToolsShop,
|
||||
Name = "工业品店",
|
||||
Icon = "op-door",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入",
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.VendingMachine,
|
||||
Name = "自动贩卖机",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入",
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.Wharf,
|
||||
Name = "码头",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入",
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.FishBazaar,
|
||||
Name = "鱼市",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入",
|
||||
},
|
||||
new InteractiveData()
|
||||
{
|
||||
Type = UIDef.InteractiveType.ReserveBazaar,
|
||||
Name = "订购市场",
|
||||
Icon = "op-use",
|
||||
Use1 = "1,1",
|
||||
Use1Title = "进入",
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace NBF
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class UIDef
|
||||
{
|
||||
@@ -50,5 +52,38 @@
|
||||
/// </summary>
|
||||
public const int Max = 3100;
|
||||
}
|
||||
|
||||
public enum InteractiveType
|
||||
{
|
||||
[InspectorName("船")] Boat = 1,
|
||||
|
||||
[InspectorName("银行")] Bank = 2,
|
||||
|
||||
[InspectorName("餐厅")] Canteen = 3,
|
||||
|
||||
[InspectorName("烤箱")] Oven = 4,
|
||||
|
||||
[InspectorName("帐篷")] Tent = 5,
|
||||
|
||||
[InspectorName("晾干器")] Drying = 6,
|
||||
|
||||
[InspectorName("篝火")] Bonfire = 7,
|
||||
|
||||
[InspectorName("烟熏箱")] Fumigate = 8,
|
||||
|
||||
[InspectorName("食品商店")] FoodShop = 11,
|
||||
|
||||
[InspectorName("钓鱼商店")] FishingShop = 12,
|
||||
|
||||
[InspectorName("工业品店")] ToolsShop = 13,
|
||||
|
||||
[InspectorName("自动贩卖机")] VendingMachine = 14,
|
||||
|
||||
[InspectorName("码头")] Wharf = 15,
|
||||
|
||||
[InspectorName("鱼市")] FishBazaar = 21,
|
||||
|
||||
[InspectorName("订购市场")] ReserveBazaar = 22
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user