PC-20230316NUNE\Administrator d67032e1de 提交新概念 Tile从服务器
2024-08-31 15:35:12 +08:00

39 lines
890 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()
{
base.OnSyncUpdate();
foreach (var view in views)
{
view.Execute();
}
}
// public override void Execute()
// {
// foreach (var view in views)
// {
// view.Execute();
// }
// }
}
}