示例#1
0
 private static bool ChaFileParameterFullnamePrefix(ChaFileParameter __instance, ref string __result)
 {
     if (!TranslationHelper.ShowGivenNameFirst)
     {
         return(true);
     }
     __result = string.Join(TranslationHelper.SpaceJoiner, new[] { __instance.firstname, __instance.lastname });
     return(false);
 }
 public static bool voicePitchHook(ChaFileParameter __instance, ref float __result)
 {
     // Replace line return Mathf.Lerp(0.94f, 1.06f, this.voiceRate);
     __result = VanillaPitchLower + __instance.voiceRate * VanillaPitchRange;
     return(false);
 }
示例#3
0
 public static void SetExtendedDataById(this ChaFileParameter messagePackObject, string id, PluginData data) => SetExtendedData(messagePackObject, id, data);
示例#4
0
 public static bool TryGetExtendedDataById(this ChaFileParameter messagePackObject, string id, out PluginData data) => GetExtendedData(messagePackObject, id, out data);
 private static void Copy(ChaFileParameter __instance, ChaFileParameter src) => Traverse.Create(__instance).Property(ExtendedSaveDataPropertyName).SetValue(Traverse.Create(src).Property(ExtendedSaveDataPropertyName).GetValue());
 private static void MemberInit(ChaFileParameter __instance) => Traverse.Create(__instance).Property(ExtendedSaveDataPropertyName).SetValue(null);