//------------------------------------------------------------------------------ // // 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; using SimpleJSON; namespace cfg.CharacterCfg { public sealed partial class DataCharacterSkin : Bright.Config.BeanBase { public DataCharacterSkin(JSONNode _json) { { if(!_json["SkinID"].IsNumber) { throw new SerializationException(); } SkinID = _json["SkinID"]; } { if(!_json["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _json["RoleID"]; } { if(!_json["NameID"].IsString) { throw new SerializationException(); } NameID = _json["NameID"]; } { if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; } { if(!_json["NickName"].IsString) { throw new SerializationException(); } NickName = _json["NickName"]; } { if(!_json["Cultivate"].IsString) { throw new SerializationException(); } Cultivate = _json["Cultivate"]; } { if(!_json["Favorable"].IsString) { throw new SerializationException(); } Favorable = _json["Favorable"]; } { if(!_json["LevelUp"].IsString) { throw new SerializationException(); } LevelUp = _json["LevelUp"]; } { if(!_json["SelectCharacter"].IsString) { throw new SerializationException(); } SelectCharacter = _json["SelectCharacter"]; } { if(!_json["Poster"].IsString) { throw new SerializationException(); } Poster = _json["Poster"]; } { if(!_json["PrefabPath"].IsString) { throw new SerializationException(); } PrefabPath = _json["PrefabPath"]; } { if(!_json["DisplayPrefabPath"].IsString) { throw new SerializationException(); } DisplayPrefabPath = _json["DisplayPrefabPath"]; } PostInit(); } public DataCharacterSkin(int SkinID, int RoleID, string NameID, string Name, string NickName, string Cultivate, string Favorable, string LevelUp, string SelectCharacter, string Poster, string PrefabPath, string DisplayPrefabPath ) { this.SkinID = SkinID; this.RoleID = RoleID; this.NameID = NameID; this.Name = Name; this.NickName = NickName; this.Cultivate = Cultivate; this.Favorable = Favorable; this.LevelUp = LevelUp; this.SelectCharacter = SelectCharacter; this.Poster = Poster; this.PrefabPath = PrefabPath; this.DisplayPrefabPath = DisplayPrefabPath; PostInit(); } public static DataCharacterSkin DeserializeDataCharacterSkin(JSONNode _json) { return new CharacterCfg.DataCharacterSkin(_json); } /// /// 皮肤索引ID /// public int SkinID { get; private set; } /// /// 配置id /// public int RoleID { get; private set; } /// /// 角色ID(策划用) /// public string NameID { get; private set; } /// /// 角色名 /// public string Name { get; private set; } /// /// 外号 /// public string NickName { get; private set; } /// /// Cultivate(养成主界面)Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/Cutivate /// public string Cultivate { get; private set; } /// /// Favorable(好感度界面)Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/Favorate /// public string Favorable { get; private set; } /// /// LevelUp(考核、进阶、人物)所有升级界面 Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/LevelUp /// public string LevelUp { get; private set; } /// /// SelectCharacter(干员一览界面)Assets/Art/UI/Texture/UI_Pic_Main/UI_Poster/Select /// public string SelectCharacter { get; private set; } /// /// Poster(立绘查看界面)Assets/Art/UI/Texture/Poster/Poster_Default /// public string Poster { get; private set; } /// /// 3d预制件位置 /// public string PrefabPath { get; private set; } /// /// 非战斗内用的prefab路径 /// public string DisplayPrefabPath { get; private set; } public const int __ID__ = -1982049783; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "SkinID:" + SkinID + "," + "RoleID:" + RoleID + "," + "NameID:" + NameID + "," + "Name:" + Name + "," + "NickName:" + NickName + "," + "Cultivate:" + Cultivate + "," + "Favorable:" + Favorable + "," + "LevelUp:" + LevelUp + "," + "SelectCharacter:" + SelectCharacter + "," + "Poster:" + Poster + "," + "PrefabPath:" + PrefabPath + "," + "DisplayPrefabPath:" + DisplayPrefabPath + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }