- 结构上迁移文件,将脚本分成 Base/Runtime/Presentation/Procedure/Editor 五大文件夹 - 调整 DataTable 和 Definition 下脚本的命名空间 - 依据 UI-5层架构设计规范 拆分原先的 UI 到 Runtime 和 Presentation 下
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
//------------------------------------------------------------
|
|
// Game Framework
|
|
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
|
// Homepage: https://gameframework.cn/
|
|
// Feedback: mailto:ellan@gameframework.cn
|
|
//------------------------------------------------------------
|
|
|
|
using System.Runtime.InteropServices;
|
|
using SepCore.Definition;
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
[StructLayout(LayoutKind.Auto)]
|
|
public struct ImpactData
|
|
{
|
|
public ImpactData(CampType camp /*, int health*/, int attackBase, StatProperty attackStat = null,
|
|
StatProperty defenseStat = null, StatProperty dodgeStat = null)
|
|
{
|
|
Camp = camp;
|
|
//Health = health;
|
|
AttackBase = attackBase;
|
|
AttackStat = attackStat;
|
|
DefenseStat = defenseStat;
|
|
DodgeStat = dodgeStat;
|
|
}
|
|
|
|
public CampType Camp { get; }
|
|
|
|
public int AttackBase { get; }
|
|
|
|
public StatProperty AttackStat { get; }
|
|
|
|
public StatProperty DefenseStat { get; }
|
|
|
|
public StatProperty DodgeStat { get; }
|
|
}
|
|
} |