VPet/VPet-Simulator.Windows/MainWindow_Property.cs

106 lines
3.2 KiB
C#
Raw Permalink Normal View History

2024-04-01 17:24:29 +00:00
using LinePutScript.Dictionary;
using LinePutScript.Localization.WPF;
2024-04-17 10:11:06 +00:00
using Steamworks;
2024-04-01 17:24:29 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using VPet_Simulator.Core;
using VPet_Simulator.Windows.Interface;
using static VPet_Simulator.Windows.Interface.ScheduleTask;
2024-04-01 17:24:29 +00:00
namespace VPet_Simulator.Windows;
public partial class MainWindow
{//主窗口部分数据
public List<Food> Foods { get; } = new List<Food>();
/// <summary>
/// 版本号
/// </summary>
2024-08-22 17:26:10 +00:00
public int version { get; } = 11025;
2024-04-01 17:24:29 +00:00
/// <summary>
/// 版本号
/// </summary>
public string Version => $"{version / 10000}.{version % 10000 / 100}.{version % 100:00}";
2024-04-17 10:11:06 +00:00
/// <summary>
/// SteamID
/// </summary>
public ulong SteamID => IsSteamUser ? SteamClient.SteamId.Value : 0;
2024-04-01 17:24:29 +00:00
public List<LowText> LowFoodText { get; set; } = new List<LowText>();
public List<LowText> LowDrinkText { get; set; } = new List<LowText>();
public List<SelectText> SelectTexts { get; set; } = new List<SelectText>();
public List<ClickText> ClickTexts { get; set; } = new List<ClickText>();
public GameSave_v2 GameSavesData { get; set; }
public readonly string ModPath = ExtensionValue.BaseDirectory + @"\mod";
public bool IsSteamUser { get; }
public LPS_D Args { get; }
public string PrefixSave { get; } = "";
private string prefixsavetrans = null;
public string PrefixSaveTrans
{
get
{
if (prefixsavetrans == null)
{
if (PrefixSave == "")
prefixsavetrans = "";
else
prefixsavetrans = '-' + PrefixSave.TrimStart('-').Translate();
}
return prefixsavetrans;
}
}
internal Setting Set { get; set; }
ISetting IMainWindow.Set => Set;
public List<PetLoader> Pets { get; set; } = new List<PetLoader>();
internal List<CoreMOD> CoreMODs = new List<CoreMOD>();
public GameCore Core { get; set; } = new GameCore();
public List<Window> Windows { get; set; } = new List<Window>();
public Main Main { get; set; }
public UIElement TalkBox;
public winGameSetting winSetting { get; set; }
public winBetterBuy winBetterBuy { get; set; }
public winWorkMenu winWorkMenu { get; set; }
//public ChatGPTClient CGPTClient;
public ImageResources ImageSources { get; set; } = new ImageResources();
public Resources FileSources { get; set; } = new Resources();
2024-04-01 17:24:29 +00:00
/// <summary>
/// 所有三方插件
/// </summary>
public List<MainPlugin> Plugins { get; } = new List<MainPlugin>();
/// <summary>
/// 所有字体(位置)
/// </summary>
public List<IFont> Fonts { get; } = new List<IFont>();
/// <summary>
/// 所有主题
/// </summary>
public List<Theme> Themes = new List<Theme>();
/// <summary>
/// 当前启用主题
/// </summary>
public Theme Theme = null;
2024-05-25 16:52:42 +00:00
/// <summary>
/// 日程表
/// </summary>
public ScheduleTask ScheduleTask { get; set; }
/// <summary>
/// 所有可用套餐
/// </summary>
public List<PackageFull> SchedulePackage { get; set; } = new List<PackageFull>();
2024-04-01 17:24:29 +00:00
}