public ActorData(Actor a) : base(a) { if (visible) { tuya = a.SkinGloss; wetness = a.SkinWetness; tearLevel = a.TearLevel; clothesCoordinate = a.ClothCoordinate; accessoryCoordinate = a.AccessoryCoordinate; try { //aipedata = a.aipedata; if (!(a.xxpeblendshapes is null)) { aipeblendshapes = a.xxpeblendshapes; } } catch (Exception e) { Console.WriteLine("Error during get aipedata"); Console.WriteLine(e.Message); } } /* * // ext data, enable by ini setting * if (Utils.is_ini_value_true("ExportChara_CurClothesCoord")) * { * fs["ext_curclothcoord"] = a.curcloth_coordinate; * } * if (Utils.is_ini_value_true("ExportChara_BodyShapes")) * { * fs["ext_bodyshapes"] = a.body_shapes_all; * } * if (Utils.is_ini_value_true("ExportChara_FaceShapes")) * { * fs["ext_faceshapes"] = a.face_shapes_all; * } * if (Utils.is_ini_value_true("ExportChara_AnimeAuxParam")) * { * fs["anim_optprm"] = a.anime_option_param; * } * // plugin data, enable by ini setting * if (Utils.is_ini_value_true("ExportChara_AIPE")) * { * try * { * fs["pl_aipedata"] = a.aipedata; * } * catch (Exception) * { * Console.WriteLine("Error during get aipedata"); * } * } * return fs; */ }
public static void SetExtendedDataById(this ChaFileClothes messagePackObject, string id, PluginData data) => SetExtendedData(messagePackObject, id, data);
public static bool TryGetExtendedDataById(this ChaFileClothes messagePackObject, string id, out PluginData data) => GetExtendedData(messagePackObject, id, out data);
private static void MemberInit(ChaFileClothes __instance) => Traverse.Create(__instance).Property(ExtendedSaveDataPropertyName).SetValue(null);