reorganize
This commit is contained in:
59
Source/Game/Console/ConsolePlugin.cs
Normal file
59
Source/Game/Console/ConsolePlugin.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
using FlaxEngine;
|
||||
using Console = Cabrito.Console;
|
||||
|
||||
#if FLAX_EDITOR
|
||||
using FlaxEditor;
|
||||
#endif
|
||||
|
||||
namespace Game
|
||||
{
|
||||
public class ConsolePlugin : GamePlugin
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
Debug.Log("ConsolePlugin Initialize");
|
||||
|
||||
Console.Init();
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
{
|
||||
base.Deinitialize();
|
||||
Debug.Log("ConsolePlugin Deinitialize");
|
||||
}
|
||||
|
||||
public static PluginDescription DescriptionInternal = new PluginDescription()
|
||||
{
|
||||
Author = "Ari Vuollet",
|
||||
Name = "Console",
|
||||
Description = "Quake-like console",
|
||||
Version = Version.Parse("0.1.0"),
|
||||
IsAlpha = true,
|
||||
Category = "Game",
|
||||
};
|
||||
}
|
||||
|
||||
#if FLAX_EDITOR
|
||||
public class ConsoleEditorPlugin : EditorPlugin
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
Debug.Log("ConsoleEditorPlugin Initialize");
|
||||
Console.Init();
|
||||
}
|
||||
|
||||
public override void Deinitialize()
|
||||
{
|
||||
Debug.Log("ConsoleEditorPlugin Deinitialize");
|
||||
}
|
||||
|
||||
public override PluginDescription Description => ConsolePlugin.DescriptionInternal;
|
||||
|
||||
public override Type GamePluginType => typeof(ConsolePlugin);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user