32 lines
774 B
C#
32 lines
774 B
C#
using System;
|
|
using SepCore.Definition;
|
|
using UnityEngine;
|
|
|
|
namespace SepCore.Entity
|
|
{
|
|
[Serializable]
|
|
public abstract class AccessoryObjectData : EntityDataBase
|
|
{
|
|
[SerializeField] private int _ownerId = 0;
|
|
|
|
[SerializeField] private CampType _ownerCamp = CampType.Unknown;
|
|
|
|
public AccessoryObjectData(int entityId, int typeId, int ownerId, CampType ownerCamp)
|
|
: base(entityId, typeId)
|
|
{
|
|
_ownerId = ownerId;
|
|
_ownerCamp = ownerCamp;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 拥有者编号。
|
|
/// </summary>
|
|
public int OwnerId => _ownerId;
|
|
|
|
/// <summary>
|
|
/// 拥有者阵营。
|
|
/// </summary>
|
|
public CampType OwnerCamp => _ownerCamp;
|
|
}
|
|
}
|