forked from BAndysc/WoWDatabaseEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIGameView.cs
38 lines (35 loc) · 1.18 KB
/
IGameView.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Collections;
using System.Windows.Input;
using Prism.Ioc;
using WDE.Module.Attributes;
namespace WDE.MapRenderer
{
[UniqueProvider]
public interface IGameView
{
public IEnumerable<Func<IContainerProvider,IGameModule>> Modules { get; }
public event Action<Func<IContainerProvider,IGameModule>> ModuleRegistered;
public event Action<Func<IContainerProvider,IGameModule>> ModuleRemoved;
public System.IDisposable RegisterGameModule(Func<IContainerProvider, IGameModule> gameModule);
public Task<Game> Open();
}
public interface IGameModule : System.IDisposable
{
object? ViewModel { get; }
object? ToolBar => null;
void Initialize();
void Update(float delta);
void Render(float delta) { }
void RenderTransparent() { }
void RenderGUI() { }
IEnumerator LoadChunk(int mapId, int chunkX, int chunkZ, CancellationToken cancellationToken)
{
yield break;
}
IEnumerator UnloadChunk(int chunkX, int chunkZ)
{
yield break;
}
IEnumerable<(string, ICommand, object?)>? GenerateContextMenu() => null;
}
}