39 lines
898 B
C#
Raw Normal View History

2024-08-17 14:27:18 +08:00
using Game.JNGFrame.View.Entity;
using JNGame.Sync.System;
using JNGame.Sync.View;
namespace Game.JNGFrame.View
{
public class DViewSystem : SViewSystem
{
private readonly IViewData[] views;
public DViewSystem()
{
views = new IViewData[] {
new VDNodes(this), //显示Demo实体
new VDPlayers(this), //显示玩家实体
2024-08-31 15:35:12 +08:00
new VDBoss(this), //显示Boss实体
2024-08-17 14:27:18 +08:00
};
}
2024-08-31 21:05:29 +08:00
public override void OnSyncUpdate(int dt)
2024-08-17 14:27:18 +08:00
{
2024-08-31 21:05:29 +08:00
base.OnSyncUpdate(dt);
2024-08-17 14:27:18 +08:00
foreach (var view in views)
{
view.Execute();
}
}
// public override void Execute()
// {
// foreach (var view in views)
// {
// view.Execute();
// }
// }
}
}