Snowflake/RPG.Services.Gameserver/Game/Entity/AvatarEntity.cs

36 lines
862 B
C#
Raw Normal View History

using RPG.Network.Proto;
namespace RPG.Services.Gameserver.Game.Entity;
internal class AvatarEntity : EntityBase
{
public uint AvatarId { get; }
public AvatarType AvatarType { get; }
public uint Uid { get; }
public AvatarEntity(uint id, uint groupId, uint instanceId, uint avatarId, AvatarType type, uint uid) : base(id, groupId, instanceId)
{
AvatarId = avatarId;
AvatarType = type;
Uid = uid;
}
public override EntityType Type => EntityType.EntityAvatar;
public override SceneEntityInfo SceneEntityInfo
{
get
{
SceneEntityInfo info = base.SceneEntityInfo;
info.Actor = new()
{
AvatarId = AvatarId,
AvatarType = AvatarType,
Uid = Uid
};
return info;
}
}
}