mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Show Buttons in entity editor
- ScriptEngine: Added HasCustomAttribute- extension method - ScriptEngine: Added Application class
This commit is contained in:
@@ -475,9 +475,31 @@ static class ScriptGlue
|
||||
id = UUID.Create();
|
||||
}
|
||||
|
||||
#region Editor Stuff
|
||||
#region Application
|
||||
|
||||
[RegisterCall("ScriptGlue::Application_IsEditor")]
|
||||
static bool Application_IsEditor()
|
||||
{
|
||||
return ScriptEngine.ApplicationInfo.IsEditor;
|
||||
}
|
||||
|
||||
[RegisterCall("ScriptGlue::Application_IsPlayer")]
|
||||
static bool Application_IsPlayer()
|
||||
{
|
||||
return ScriptEngine.ApplicationInfo.IsPlayer;
|
||||
}
|
||||
|
||||
[RegisterCall("ScriptGlue::Application_IsInEditMode")]
|
||||
static bool Application_IsInEditMode()
|
||||
{
|
||||
return ScriptEngine.ApplicationInfo.IsInEditMode;
|
||||
}
|
||||
|
||||
[RegisterCall("ScriptGlue::Application_IsInPlayMode")]
|
||||
static bool Application_IsInPlayMode()
|
||||
{
|
||||
return ScriptEngine.ApplicationInfo.IsInPlayMode;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user