public void Destroy() { EntityFlags |= EEntityFlag.Destroyed; OnDestroy?.Invoke(this); if (!EntityFlags.HasFlag(EEntityFlag.IsPlayer)) { SetLevel(null, Vec.Zero); } }
public Entity(TileGlyph glyph, string name, EEntityFlag entityFlags) { Glyph = glyph; Name = name; EntityFlags = entityFlags; }