// Code generated by excel export. DO NOT EDIT. using System; using ProtoBuf; using System.Collections.Generic; using Newtonsoft.Json; using GameConfig.ConfigBase; #if UNITY_2017_1_OR_NEWER using UnityEngine; #elif BattleServer using UnityEngineCompatible; #endif #pragma warning disable CS0169 namespace GameConfig.ConfigGen { [ProtoContract] public sealed partial class {{ .ClassName }} : ASerialize, IConfigTable, IProto { {{- range .ClassFields }} [ProtoMember({{ .ID }})] [JsonProperty("{{ .Name }}")] {{- if .Attr }} {{ .Attr }} {{- end }} public {{ .Type }} {{ .CapsName }} { get; set; } // {{ .Desc }} {{- end }} private static {{ .ClassName }} s_instance = null; public static {{ .ClassName }} Instance { get { if (s_instance == null) { s_instance = ConfigTableHelper.Load<{{ .ClassName }}>(); } return s_instance; } private set => s_instance = value; } public override void Dispose() { s_instance = null; } } }