//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Bright.Serialization; using System.Collections.Generic; namespace GameConfig.Battle { public sealed partial class BuffConfig : Bright.Config.BeanBase { public BuffConfig(ByteBuf _buf) { BuffID = _buf.ReadInt(); Name = _buf.ReadString(); PrefId = _buf.ReadInt(); Desc = _buf.ReadString(); Icon = _buf.ReadString(); TimeType = (Battle.BuffTimeType)_buf.ReadInt(); ReplaceType = (Battle.BuffReplaceType)_buf.ReadInt(); State = Battle.BuffTriggleState.DeserializeBuffTriggleState(_buf); PostInit(); } public static BuffConfig DeserializeBuffConfig(ByteBuf _buf) { return new Battle.BuffConfig(_buf); } /// /// BuffID /// public int BuffID { get; private set; } /// /// 名字 /// public string Name { get; private set; } /// /// 表现ID /// public int PrefId { get; private set; } /// /// 描述 /// public string Desc { get; private set; } /// /// 图标 /// public string Icon { get; private set; } /// /// 持续类型 /// public Battle.BuffTimeType TimeType { get; private set; } /// /// 叠加类型 /// public Battle.BuffReplaceType ReplaceType { get; private set; } public Battle.BuffTriggleState State { get; private set; } public const int __ID__ = 1807662187; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { State?.Resolve(_tables); PostResolve(); } public void TranslateText(System.Func translator) { State?.TranslateText(translator); } public override string ToString() { return "{ " + "BuffID:" + BuffID + "," + "Name:" + Name + "," + "PrefId:" + PrefId + "," + "Desc:" + Desc + "," + "Icon:" + Icon + "," + "TimeType:" + TimeType + "," + "ReplaceType:" + ReplaceType + "," + "State:" + State + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }