/
EugenyCh7
/
Puppet2D.Net
Обзор
Документация
Войти
/
EugenyCh7
/
Puppet2D.Net
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Puppet2D.Engine/Common/TreeStats.cs
33 строки
849 B
EugenyCh7
Puppet2D.Engine.Common fix
24 авг 2025, 20:48
24 авг 2025, 20:48
6ed4095
Код
Авторство
О чём код?
namespace Puppet2D.Engine.Common { /// <summary> /// These are performance results returned by dynamic tree queries. /// </summary> public struct TreeStats { /// <summary> /// Number of leaf nodes visited during the query. /// </summary> public int LeafVisits { get; } /// <summary> /// Number of internal nodes visited during the query. /// </summary> public int NodeVisits { get; } internal TreeStats(B2.TreeStats treeStats) { LeafVisits = treeStats.leafVisits; NodeVisits = treeStats.nodeVisits; } internal B2.TreeStats Cast() { return new B2.TreeStats { leafVisits = LeafVisits, nodeVisits = NodeVisits }; } } }