26 lines
646 B
C#
26 lines
646 B
C#
using System;
|
|
using SepCore.Definition;
|
|
|
|
namespace SepCore.Entity
|
|
{
|
|
[Serializable]
|
|
public sealed class WeaponSlashParamsData
|
|
{
|
|
public float SectorAngle { get; set; }
|
|
}
|
|
|
|
public class WeaponSlashData : WeaponData
|
|
{
|
|
public WeaponSlashParamsData ParamsData { get; }
|
|
|
|
public WeaponSlashData(int entityId, WeaponConfig weaponConfig, int ownerId, CampType ownerCamp)
|
|
: base(entityId, weaponConfig, ownerId, ownerCamp)
|
|
{
|
|
ParamsData = new WeaponSlashParamsData
|
|
{
|
|
SectorAngle = GetParamFloat(ParamType.SectorAngle)
|
|
};
|
|
}
|
|
}
|
|
}
|