mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
27 lines
554 B
Beef
27 lines
554 B
Beef
using System;
|
|
using GlitchyEngine.Events;
|
|
|
|
namespace GlitchyEngine
|
|
{
|
|
public abstract class Layer
|
|
{
|
|
protected String _debugName ~ delete _;
|
|
|
|
[Inline]
|
|
public StringView Name => _debugName;
|
|
|
|
//[AllowAppend]
|
|
public this(StringView name = "Layer")
|
|
{
|
|
//String debugName = append String(name);
|
|
//_debugName = debugName;
|
|
_debugName = new String(name);
|
|
}
|
|
|
|
public virtual void OnAttach() { }
|
|
public virtual void OnDetach() { }
|
|
public virtual void Update(GameTime gameTime) { }
|
|
public virtual void OnEvent(Event event) { }
|
|
}
|
|
}
|