55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
public interface IBatleType
|
|||
|
{
|
|||
|
BattleType battleType { get; }
|
|||
|
}
|
|||
|
public interface IGetTeam
|
|||
|
{
|
|||
|
Team team { get; set; }
|
|||
|
Team targetTeam { get; set; }
|
|||
|
}
|
|||
|
public abstract class BattleBase : Entity, IBatleType, IGetTeam
|
|||
|
{
|
|||
|
public abstract BattleType battleType { get; }
|
|||
|
|
|||
|
private Team _team;
|
|||
|
public Team team
|
|||
|
{
|
|||
|
get => _team;
|
|||
|
set
|
|||
|
{
|
|||
|
|
|||
|
_team = value;
|
|||
|
if (value == null)
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
private Team _targetTeam;
|
|||
|
public Team targetTeam
|
|||
|
{
|
|||
|
get => _targetTeam;
|
|||
|
set
|
|||
|
{
|
|||
|
_targetTeam = value;
|
|||
|
if (value == null)
|
|||
|
{
|
|||
|
return;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public bool isRunning;
|
|||
|
public MonsterKillInfo mineKillInfo;
|
|||
|
public MonsterKillInfo targetKillInfo;
|
|||
|
|
|||
|
public Action<BattleBase, Team,long> quitBattleAction;
|
|||
|
|
|||
|
}
|
|||
|
}
|