123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- using System;
- using I2.Loc;
- public static class Product
- {
- public static Product.Type type { get; private set; }
- public static bool SPP
- {
- get
- {
- return Product.type != Product.Type.AAA && Product.type != Product.Type.BBB;
- }
- }
- public static bool VBA
- {
- get
- {
- return Product.type == Product.Type.BBB || Product.type == Product.Type.DDD;
- }
- }
- public static bool PIEQ
- {
- get
- {
- return Product.type == Product.Type.AAA || Product.type == Product.Type.BBB;
- }
- }
- public static bool SIBD
- {
- get
- {
- return Product.type == Product.Type.CCC || Product.type == Product.Type.DDD;
- }
- }
- public static Product.Language WMZI
- {
- get
- {
- if (!Product.SPP)
- {
- return Product.Language.INKD;
- }
- string currentLanguage = LocalizationManager.CurrentLanguage;
- return (!(currentLanguage == "English")) ? Product.Language.INKD : Product.Language.QBED;
- }
- set
- {
- if (!Product.SPP)
- {
- LocalizationManager.CurrentLanguage = Product.EnumConvert.ToI2LocalizeLanguageName(Product.Language.INKD);
- return;
- }
- LocalizationManager.CurrentLanguage = Product.EnumConvert.ToI2LocalizeLanguageName(value);
- }
- }
- public static Product.Language OOWU
- {
- get
- {
- return (!Product.SPP) ? Product.Language.INKD : Product.Language.QBED;
- }
- }
- public static string gameTitle
- {
- get
- {
- return LocalizationManager.GetTranslation("System/カスタムオーダーメイド3D 2", true, 0, true, false, null, null);
- }
- }
- public static string gameDataPath
- {
- get
- {
- return string.Empty;
- }
- }
- public static bool enabeldAdditionalRelation
- {
- get
- {
- return Product.type != Product.Type.AAA;
- }
- }
- public static void Initialize(AFileSystemBase fileSystem)
- {
- Product.type = Product.Type.AAA;
- Product.WMZI = Product.OOWU;
- }
- public static void OnApplicationQuit()
- {
- }
- public enum Type
- {
- AAA,
- BBB,
- CCC,
- DDD
- }
- public enum Language
- {
- INKD,
- QBED
- }
- public static class EnumConvert
- {
- public static string GetString(Product.Language language)
- {
- if (language == Product.Language.INKD)
- {
- return "日本語";
- }
- return "英語";
- }
- public static string ToI2LocalizeLanguageName(Product.Language language)
- {
- if (language == Product.Language.INKD)
- {
- return "Japanese";
- }
- if (language != Product.Language.QBED)
- {
- return "Japanese";
- }
- return "English";
- }
- public static string GetTerm(Product.Language language)
- {
- return "System/言語/" + Product.EnumConvert.GetString(language);
- }
- }
- }
|