2024-05-07 11:36:06 +00:00
|
|
|
|
using ColdMint.scripts.character;
|
|
|
|
|
using ColdMint.scripts.inventory;
|
2024-09-06 14:56:36 +00:00
|
|
|
|
using ColdMint.scripts.map.miniMap;
|
2024-06-19 14:33:00 +00:00
|
|
|
|
using ColdMint.scripts.utils;
|
2024-04-28 13:55:19 +00:00
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-09-01 15:24:35 +00:00
|
|
|
|
/// <para>Dependencies on the runtime of the game scene</para>
|
|
|
|
|
/// <para>游戏场景运行时的依赖</para>
|
2024-04-28 13:55:19 +00:00
|
|
|
|
/// </summary>
|
2024-09-01 15:24:35 +00:00
|
|
|
|
public static class GameSceneDepend
|
2024-04-28 13:55:19 +00:00
|
|
|
|
{
|
2024-09-01 15:24:35 +00:00
|
|
|
|
/// <summary>
|
2024-09-06 14:56:36 +00:00
|
|
|
|
/// <para>MiniMap</para>
|
|
|
|
|
/// <para>迷你地图</para>
|
2024-09-01 15:24:35 +00:00
|
|
|
|
/// </summary>
|
2024-09-06 14:56:36 +00:00
|
|
|
|
public static MiniMap? MiniMap { get; set; }
|
2024-10-09 02:21:26 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>MiniMapAnimationPlayer</para>
|
|
|
|
|
/// <para>迷你地图的动画节点</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static AnimationPlayer? MiniMapAnimationPlayer { get; set; }
|
2024-09-06 14:56:36 +00:00
|
|
|
|
|
2024-06-12 15:42:35 +00:00
|
|
|
|
private static Player? _player;
|
|
|
|
|
|
2024-04-28 13:55:19 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Player instances within the game scene</para>
|
|
|
|
|
/// <para>游戏场景内的玩家实例</para>
|
|
|
|
|
/// </summary>
|
2024-06-12 15:42:35 +00:00
|
|
|
|
public static Player? Player
|
|
|
|
|
{
|
|
|
|
|
get => _player;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_player = value;
|
2024-09-06 14:56:36 +00:00
|
|
|
|
if (MiniMap != null)
|
2024-06-12 15:42:35 +00:00
|
|
|
|
{
|
2024-09-06 14:56:36 +00:00
|
|
|
|
MiniMap.OwnerNode = _player;
|
|
|
|
|
}
|
2024-06-12 15:42:35 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
2024-08-18 08:09:31 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>When the mouse enters the scope of a character, it is considered a target</para>
|
|
|
|
|
/// <para>鼠标进入到某个角色的范围内时,会将其视作目标</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Node2D? TemporaryTargetNode { get; set; }
|
2024-09-06 14:56:36 +00:00
|
|
|
|
|
2024-07-24 13:03:24 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>ProjectileContainer</para>
|
|
|
|
|
/// <para>抛射体容器</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Node2D? ProjectileContainer { get; set; }
|
2024-10-04 12:53:34 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-10-05 01:13:14 +00:00
|
|
|
|
/// <para>SpellContainer</para>
|
2024-10-04 12:53:34 +00:00
|
|
|
|
/// <para>法术容器</para>
|
|
|
|
|
/// </summary>
|
2024-10-05 01:13:14 +00:00
|
|
|
|
public static Node2D? SpellContainer { get; set; }
|
2024-08-18 08:09:31 +00:00
|
|
|
|
|
2024-04-28 13:55:19 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>WeaponContainer</para>
|
|
|
|
|
/// <para>武器容器</para>
|
|
|
|
|
/// </summary>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
public static Node2D? WeaponContainer { get; set; }
|
2024-06-12 15:42:35 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>PacksackContainer</para>
|
|
|
|
|
/// <para>背包容器</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Node2D? PacksackContainer { get; set; }
|
|
|
|
|
|
2024-06-05 13:38:45 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>PlayerContainer</para>
|
|
|
|
|
/// <para>玩家容器</para>
|
|
|
|
|
/// </summary>
|
2024-05-31 14:26:38 +00:00
|
|
|
|
public static Node2D? PlayerContainer { get; set; }
|
2024-10-06 04:04:59 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>PickAbleContainer</para>
|
|
|
|
|
/// <para>可拾捡物容器</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static Node2D? PickAbleContainer { get; set; }
|
2024-06-12 15:42:35 +00:00
|
|
|
|
|
2024-06-03 14:58:59 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>AICharacterContainer</para>
|
|
|
|
|
/// <para>AICharacter角色</para>
|
|
|
|
|
/// </summary>
|
2024-06-05 13:38:45 +00:00
|
|
|
|
public static Node2D? AiCharacterContainer { get; set; }
|
2024-06-12 15:42:35 +00:00
|
|
|
|
|
2024-06-05 13:38:45 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>HotBar</para>
|
|
|
|
|
/// <para>快捷栏</para>
|
|
|
|
|
/// </summary>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
public static HotBar? HotBar { get; set; }
|
2024-04-28 13:55:19 +00:00
|
|
|
|
|
|
|
|
|
|
2024-06-05 13:38:45 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Health Bar UI</para>
|
|
|
|
|
/// <para>健康条UI</para>
|
|
|
|
|
/// </summary>
|
2024-05-08 10:22:04 +00:00
|
|
|
|
public static HealthBarUi? HealthBarUi { get; set; }
|
2024-09-18 12:20:02 +00:00
|
|
|
|
|
2024-06-16 12:18:44 +00:00
|
|
|
|
/// <summary>
|
2024-09-18 12:20:02 +00:00
|
|
|
|
/// <para>DynamicUiGroup</para>
|
|
|
|
|
/// <para>动态生成的Ui组</para>
|
2024-06-16 12:18:44 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
2024-09-18 12:20:02 +00:00
|
|
|
|
///<para>Dynamically generated Ui objects will be placed under this node</para>
|
|
|
|
|
///<para>动态生成的Ui对象将放置在此节点下</para>
|
2024-06-16 12:18:44 +00:00
|
|
|
|
/// </remarks>
|
2024-09-18 12:20:02 +00:00
|
|
|
|
public static UiGroup? DynamicUiGroup { get; set; }
|
2024-10-10 06:11:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Whether the player's mouse is hovering over GUI furniture</para>
|
|
|
|
|
/// <para>玩家的鼠标是否悬浮在GUI家具上</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool IsMouseOverFurnitureGui;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Whether the mouse is suspended over the item slot</para>
|
|
|
|
|
/// <para>鼠标是否悬浮在物品槽上</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static bool IsMouseOverItemSlotNode;
|
2024-04-28 13:55:19 +00:00
|
|
|
|
}
|