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); }
public static void SetExtendedDataById(this ChaFileParameter messagePackObject, string id, PluginData data) => SetExtendedData(messagePackObject, id, data);
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);