Start of edit mode scripts

- Initialize script instances in edit mode
- Run OnCreate and OnUpdate for Entities with RunInEditMode-Attribute
This commit is contained in:
Simon Lübeß
2023-12-02 00:28:04 +01:00
parent 23b38a7a31
commit 5852e11ccb
5 changed files with 48 additions and 5 deletions
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace GlitchyEngine.Editor;
/// <summary>
/// Specifies that the OnCreate- and OnUpdate-Methods of this entity are to be be executed in the editor.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public sealed class RunInEditModeAttribute : Attribute
{
}