PC-20230316NUNE\Administrator 77b305be7a 提交
2024-08-31 21:05:29 +08:00

39 lines
898 B
C#

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), //显示玩家实体
new VDBoss(this), //显示Boss实体
};
}
public override void OnSyncUpdate(int dt)
{
base.OnSyncUpdate(dt);
foreach (var view in views)
{
view.Execute();
}
}
// public override void Execute()
// {
// foreach (var view in views)
// {
// view.Execute();
// }
// }
}
}