コード例 #1
0
ファイル: Actor.cs プロジェクト: hallongrotta/VNEngine-Sharp
            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;
                 */
            }
コード例 #2
0
 public static void SetExtendedDataById(this ChaFileClothes messagePackObject, string id, PluginData data) => SetExtendedData(messagePackObject, id, data);
コード例 #3
0
 public static bool TryGetExtendedDataById(this ChaFileClothes messagePackObject, string id, out PluginData data) => GetExtendedData(messagePackObject, id, out data);
コード例 #4
0
 private static void MemberInit(ChaFileClothes __instance) => Traverse.Create(__instance).Property(ExtendedSaveDataPropertyName).SetValue(null);