mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Implemented Layers and LayerStack
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using GlitchyEngine.Events;
|
||||
|
||||
namespace GlitchyEngine
|
||||
{
|
||||
public abstract class Layer
|
||||
{
|
||||
protected String _debugName;
|
||||
|
||||
[Inline]
|
||||
public StringView Name => _debugName;
|
||||
|
||||
[AllowAppend]
|
||||
public this(StringView name = "Layer")
|
||||
{
|
||||
String debugName = append String(name);
|
||||
_debugName = debugName;
|
||||
}
|
||||
|
||||
public virtual void OnAttach() { }
|
||||
public virtual void OnDetach() { }
|
||||
public virtual void Update() { }
|
||||
public virtual void OnEvent(Event event) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user