You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.1 KiB
38 lines
1.1 KiB
3 years ago
|
namespace ET
|
||
|
{
|
||
|
public class BattleActionSegmentAwakeSystem: AwakeSystem<BattleActionSegment>
|
||
|
{
|
||
|
public override void Awake(BattleActionSegment self)
|
||
|
{
|
||
|
self.Awake();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class BattleActionSegmentDestroySystem: DestroySystem<BattleActionSegment>
|
||
|
{
|
||
|
public override void Destroy(BattleActionSegment self)
|
||
|
{
|
||
|
self.Destroy();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[FriendClass(typeof(BattleActionSegment))]
|
||
|
[FriendClass(typeof(BattleUnitViewComponent))]
|
||
|
public static class BattleActionSegmentSystem
|
||
|
{
|
||
|
public static void Awake(this BattleActionSegment self)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public static void Destroy(this BattleActionSegment self)
|
||
|
{
|
||
|
Unit unit = UnitHelper.GetMyUnitFromZoneScene(self.ZoneScene());
|
||
|
if (self.Type == BattleActionSegemntType.Attack)
|
||
|
{
|
||
|
Game.EventSystem.Publish(new EventType.AttackActionEnd(){Unit = unit, AttackerId = self.Source.Fighter.Id, TargetId = self.Target.Fighter.Id});
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|