75 lines
2.1 KiB
C#
75 lines
2.1 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
|
|
{
|
|
|
|
/// <summary>
|
|
/// AB 类型,具有多态
|
|
/// </summary>
|
|
public abstract partial class MMTHub : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public MMTHub(JSONNode _json)
|
|
{
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public MMTHub()
|
|
{
|
|
PostInit();
|
|
}
|
|
|
|
public static MMTHub DeserializeMMTHub(JSONNode _json)
|
|
{
|
|
string type = _json["$type"];
|
|
switch (type)
|
|
{
|
|
case "MMTFixedFish": return new MMTFixedFish(_json);
|
|
case "MMTNoFail": return new MMTNoFail(_json);
|
|
case "MMTMapID": return new MMTMapID(_json);
|
|
case "MMTConstructionID": return new MMTConstructionID(_json);
|
|
case "MMTEventID": return new MMTEventID(_json);
|
|
case "MMCollectingTargetNovice": return new MMCollectingTargetNovice(_json);
|
|
case "MMAdWheelNoChargeSeconds": return new MMAdWheelNoChargeSeconds(_json);
|
|
case "MMTFailParam": return new MMTFailParam(_json);
|
|
case "MMTNoviceProtection": return new MMTNoviceProtection(_json);
|
|
case "MMTEventTargetID": return new MMTEventTargetID(_json);
|
|
case "MMTFastAutoBuildSwitch": return new MMTFastAutoBuildSwitch(_json);
|
|
default: throw new SerializationException();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public virtual void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public virtual void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|