95 lines
3.4 KiB
C#
95 lines
3.4 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
using Bright.Serialization;
|
|
using System.Collections.Generic;
|
|
using SimpleJSON;
|
|
|
|
|
|
|
|
namespace cfg
|
|
{
|
|
|
|
public sealed partial class EventPartnerInit : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPartnerInit(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["Npc"].IsString) { throw new SerializationException(); } Npc = _json["Npc"]; }
|
|
{ if(!_json["Train"].IsString) { throw new SerializationException(); } Train = _json["Train"]; }
|
|
{ if(!_json["Tool"].IsString) { throw new SerializationException(); } Tool = _json["Tool"]; }
|
|
{ if(!_json["Resource00"].IsString) { throw new SerializationException(); } Resource00 = _json["Resource00"]; }
|
|
{ if(!_json["Resource01"].IsString) { throw new SerializationException(); } Resource01 = _json["Resource01"]; }
|
|
{ if(!_json["Resource02"].IsString) { throw new SerializationException(); } Resource02 = _json["Resource02"]; }
|
|
{ if(!_json["Resource03"].IsString) { throw new SerializationException(); } Resource03 = _json["Resource03"]; }
|
|
{ if(!_json["Trophy"].IsString) { throw new SerializationException(); } Trophy = _json["Trophy"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPartnerInit(int ID, string Npc, string Train, string Tool, string Resource00, string Resource01, string Resource02, string Resource03, string Trophy )
|
|
{
|
|
this.ID = ID;
|
|
this.Npc = Npc;
|
|
this.Train = Train;
|
|
this.Tool = Tool;
|
|
this.Resource00 = Resource00;
|
|
this.Resource01 = Resource01;
|
|
this.Resource02 = Resource02;
|
|
this.Resource03 = Resource03;
|
|
this.Trophy = Trophy;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPartnerInit DeserializeEventPartnerInit(JSONNode _json)
|
|
{
|
|
return new EventPartnerInit(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
public string Npc { get; private set; }
|
|
public string Train { get; private set; }
|
|
public string Tool { get; private set; }
|
|
public string Resource00 { get; private set; }
|
|
public string Resource01 { get; private set; }
|
|
public string Resource02 { get; private set; }
|
|
public string Resource03 { get; private set; }
|
|
public string Trophy { get; private set; }
|
|
|
|
public const int __ID__ = -365050082;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Npc:" + Npc + ","
|
|
+ "Train:" + Train + ","
|
|
+ "Tool:" + Tool + ","
|
|
+ "Resource00:" + Resource00 + ","
|
|
+ "Resource01:" + Resource01 + ","
|
|
+ "Resource02:" + Resource02 + ","
|
|
+ "Resource03:" + Resource03 + ","
|
|
+ "Trophy:" + Trophy + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|