完成配件安装和拆卸

This commit is contained in:
2025-11-16 22:40:56 +08:00
parent fd3c6ec38d
commit 32dadfcfad
172 changed files with 269 additions and 10128 deletions

View File

@@ -11,15 +11,20 @@ using NBF.ConfigTable;
namespace NBF
{
[ProtoContract]
public sealed partial class BobberConfig : ASerialize, IConfigTable
public sealed partial class BobberConfig : ASerialize, IConfigTable
{
[ProtoMember(1)] public uint Id { get; set; } // Id
[ProtoMember(2)] public uint Displacement { get; set; } // 位移
[ProtoMember(3)] public uint NightLight { get; set; } // 是否夜光
[ProtoIgnore] public uint Key => Id;
[ProtoMember(1)]
public uint Id { get; set; } // Id
[ProtoMember(2)]
public uint Displacement { get; set; } // 位移
[ProtoMember(3)]
public uint NightLight { get; set; } // 是否夜光
[ProtoIgnore]
public uint Key => Id;
#region Static
private static ConfigContext<BobberConfig> Context => ConfigTableHelper.Table<BobberConfig>();
public static BobberConfig Get(uint key)
@@ -31,7 +36,7 @@ namespace NBF
{
return Context.Get(match);
}
public static BobberConfig Fist()
{
return Context.Fist();
@@ -51,7 +56,7 @@ namespace NBF
{
return Context.Last(match);
}
public static int Count()
{
return Context.Count();
@@ -71,12 +76,10 @@ namespace NBF
{
return Context.GetList(match);
}
public static void ParseJson(Newtonsoft.Json.Linq.JArray arr)
{
ConfigTableHelper.ParseLine<BobberConfig>(arr);
}
#endregion
}
}

View File

@@ -19,7 +19,7 @@ namespace NBF
[ProtoMember(2)]
public string Model { get; set; } // 模型
[ProtoMember(3)]
public uint Type { get; set; } // 类型
public uint Type { get; set; } // 类型
[ProtoMember(4)]
public uint Quality { get; set; } // 品质
[ProtoMember(5)]

View File

@@ -19,6 +19,8 @@ namespace NBF
[ProtoMember(2)]
public uint[] Hook { get; set; } = Array.Empty<uint>(); // 勾
[ProtoMember(3)]
public uint HookNum { get; set; } // 装配鱼钩数量
[ProtoMember(4)]
public uint EfficacyBase { get; set; } // 吸引力
[ProtoIgnore]
public uint Key => Id;