First commit for private source control. Older commits available on Github.

This commit is contained in:
2026-03-26 12:52:52 +00:00
parent a04c602626
commit 2d449c4a17
2176 changed files with 408185 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,43 @@
using System;
using BriarQueen.Framework.Coordinators.Events;
using BriarQueen.Framework.Managers.Player;
using BriarQueen.Framework.Managers.Player.Data;
using Cysharp.Threading.Tasks;
namespace BriarQueen.Framework.Managers.Interaction.Data
{
/// <summary>
/// Inventory-safe per-item logic. Serialized INSIDE ItemDataSo via SerializeReference.
/// No scene objects required.
/// </summary>
[Serializable]
public abstract class BaseInteraction
{
/// <summary>
/// Called when player uses 'self' on 'other' from the inventory UI.
/// Return true if the interaction was handled (success OR "can't" message shown).
/// Return false if this interaction doesn't apply, so caller may try other routes/fallback.
/// </summary>
public abstract UniTask<bool> TryUseWith(
ItemDataSo self,
ItemDataSo other,
PlayerManager playerManager,
EventCoordinator eventCoordinator);
}
/// <summary>
/// Default "does nothing" interaction.
/// </summary>
[Serializable]
public sealed class NoOpItemInteraction : BaseInteraction
{
public override UniTask<bool> TryUseWith(
ItemDataSo self,
ItemDataSo other,
PlayerManager playerManager,
EventCoordinator eventCoordinator)
{
return UniTask.FromResult(false);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8ab49b601a434a30a12dd1e3fe82a282
timeCreated: 1771171646

View File

@@ -0,0 +1,18 @@
using BriarQueen.Framework.Managers.Player.Data;
using BriarQueen.Framework.Managers.UI;
using Cysharp.Threading.Tasks;
namespace BriarQueen.Framework.Managers.Interaction.Data
{
public interface IInteractable
{
UICursorService.CursorStyle ApplicableCursorStyle { get; }
string InteractableName { get; }
UniTask OnInteract(ItemDataSo item = null);
UniTask EnterHover();
UniTask ExitHover();
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: aaad7fee39064af5aa7bd0096e87065a
timeCreated: 1769717587