feat(): 大量更新
This commit is contained in:
28
Assets/Script/Gameplay/Interface/ICharacter.cs
Normal file
28
Assets/Script/Gameplay/Interface/ICharacter.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using Gameplay;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Share
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色接口,可受伤害、治疗和添加Buff、发生战斗
|
||||
/// 拥有卡牌书
|
||||
/// </summary>
|
||||
public interface ICharacter
|
||||
{
|
||||
// public int MaxHealth { get; }
|
||||
// public int CurrentHealth { get; }
|
||||
// public CardBook CardBook { get; }
|
||||
// public List<Card> Cards { get; }
|
||||
public bool IsFlight { get; }
|
||||
public bool IsDead { get; }
|
||||
public void TakeDamage(int damage);
|
||||
public void Heal(int heal);
|
||||
public void StartCombat();
|
||||
public void EndFlight();
|
||||
public bool HasCardsLeft();
|
||||
public Card GetNextCard();
|
||||
public void InitializeDeckCycle();
|
||||
}
|
||||
}
|
3
Assets/Script/Gameplay/Interface/ICharacter.cs.meta
Normal file
3
Assets/Script/Gameplay/Interface/ICharacter.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a0f41a6a18dd4801a9d6ba995cf09376
|
||||
timeCreated: 1760420819
|
9
Assets/Script/Gameplay/Interface/IInteractable.cs
Normal file
9
Assets/Script/Gameplay/Interface/IInteractable.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
namespace Share
|
||||
{
|
||||
public interface IInteractable
|
||||
{
|
||||
string GetInteractPrompt(); // 返回提示文字,例如“按E打开门”
|
||||
void Interact(GameObject interactor); // 当玩家交互时触发
|
||||
}
|
||||
}
|
3
Assets/Script/Gameplay/Interface/IInteractable.cs.meta
Normal file
3
Assets/Script/Gameplay/Interface/IInteractable.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3bb60830b6e14df78b72c49d9250fa75
|
||||
timeCreated: 1760444920
|
Reference in New Issue
Block a user