Drew DeVault 7cbf04a0d6 Send entity metadata to connected clients
This also implements crouching via the same feature
2015-02-01 22:04:02 -07:00

59 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TrueCraft.Core.Entities
{
public abstract class LivingEntity : Entity
{
protected LivingEntity()
{
Health = MaxHealth;
}
protected short _Air;
public short Air
{
get { return _Air; }
set
{
_Air = value;
OnPropertyChanged("Air");
}
}
protected short _Health;
public short Health
{
get { return _Health; }
set
{
_Health = value;
OnPropertyChanged("Health");
}
}
protected float _HeadYaw;
public float HeadYaw
{
get { return _HeadYaw; }
set
{
_HeadYaw = value;
OnPropertyChanged("HeadYaw");
}
}
public override bool SendMetadataToClients
{
get
{
return true;
}
}
public abstract short MaxHealth { get; }
}
}