mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 03:14:47 +00:00
39 lines
898 B
C#
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();
|
|
// }
|
|
// }
|
|
|
|
}
|
|
|
|
} |