示例#1
0
        public void Destroy()
        {
            EntityFlags |= EEntityFlag.Destroyed;
            OnDestroy?.Invoke(this);

            if (!EntityFlags.HasFlag(EEntityFlag.IsPlayer))
            {
                SetLevel(null, Vec.Zero);
            }
        }
示例#2
0
 public Entity(TileGlyph glyph, string name, EEntityFlag entityFlags)
 {
     Glyph       = glyph;
     Name        = name;
     EntityFlags = entityFlags;
 }