MMConstants.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using MyRoomCustom;
  5. using UnityEngine;
  6. namespace MeidoPhotoStudio.Converter.MultipleMaids;
  7. public static class MMConstants
  8. {
  9. public static readonly Vector3 DefaultSoftG = new(0f, -3f / 1000f, 0f);
  10. public static readonly string[] FaceKeys =
  11. {
  12. "eyeclose", "eyeclose2", "eyeclose3", "eyeclose6", "hitomih", "hitomis", "mayuha", "mayuup", "mayuv",
  13. "mayuvhalf", "moutha", "mouths", "mouthdw", "mouthup", "tangout", "tangup", "eyebig", "eyeclose5", "mayuw",
  14. "mouthhe", "mouthc", "mouthi", "mouthuphalf", "tangopen", "namida", "tear1", "tear2", "tear3", "shock",
  15. "yodare", "hoho", "hoho2", "hohos", "hohol", "toothoff", "nosefook",
  16. };
  17. public static readonly string[] MpnAttachProps =
  18. {
  19. // NOTE: MPS only allows a subset of attached MPN props because MPS has a better method of attaching props.
  20. // "", "", "", "", "", "", "", "", "",
  21. "kousokuu_tekaseone_i_.menu", "kousokuu_tekasetwo_i_.menu", "kousokul_ashikaseup_i_.menu",
  22. "kousokuu_tekasetwo_i_.menu", "kousokul_ashikasedown_i_.menu", "kousokuu_tekasetwodown_i_.menu",
  23. "kousokuu_ushirode_i_.menu", "kousokuu_smroom_haritsuke_i_.menu",
  24. };
  25. private static Dictionary<string, PlacementData.Data>? myrAssetNameToData;
  26. public static Dictionary<string, PlacementData.Data> MyrAssetNameToData =>
  27. myrAssetNameToData ??= PlacementData.GetAllDatas(false)
  28. .ToDictionary(
  29. data => string.IsNullOrEmpty(data.assetName) ? data.resourceName : data.assetName,
  30. data => data,
  31. StringComparer.InvariantCultureIgnoreCase);
  32. }