69 lines
1.7 KiB
C#
69 lines
1.7 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>
|
|
/// 目标类活动特殊掉落,具有多态
|
|
/// </summary>
|
|
public abstract partial class EventTargetExtraDrop : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventTargetExtraDrop(JSONNode _json)
|
|
{
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventTargetExtraDrop()
|
|
{
|
|
PostInit();
|
|
}
|
|
|
|
public static EventTargetExtraDrop DeserializeEventTargetExtraDrop(JSONNode _json)
|
|
{
|
|
string type = _json["$type"];
|
|
switch (type)
|
|
{
|
|
case "ETChangeMaterial": return new ETChangeMaterial(_json);
|
|
case "ETDropAfterDrop": return new ETDropAfterDrop(_json);
|
|
case "ETDropByFish": return new ETDropByFish(_json);
|
|
case "ETNewItem": return new ETNewItem(_json);
|
|
case "ETKeepsake": return new ETKeepsake(_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();
|
|
}
|
|
}
|