иок бдсм. часть певая
This commit is contained in:
@@ -16,9 +16,17 @@ namespace Content.Client._White.Administration.HoursPanelSystems;
|
|||||||
[UsedImplicitly]
|
[UsedImplicitly]
|
||||||
public sealed partial class HoursPanel : DefaultWindow
|
public sealed partial class HoursPanel : DefaultWindow
|
||||||
{
|
{
|
||||||
|
|
||||||
|
private HoursPanelSystem _huetaSystem =new();
|
||||||
public HoursPanel()
|
public HoursPanel()
|
||||||
{
|
{
|
||||||
var owner = new HoursPanelSystem(this);
|
// var owner = new HoursPanelSystem(this);
|
||||||
|
var owner = _huetaSystem;
|
||||||
|
owner._panel = this;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RobustXamlLoader.Load(this);
|
RobustXamlLoader.Load(this);
|
||||||
var roles = new Dictionary<int, string>();
|
var roles = new Dictionary<int, string>();
|
||||||
PlayerNameLine.OnTextChanged += _ => OnNamesChanged();
|
PlayerNameLine.OnTextChanged += _ => OnNamesChanged();
|
||||||
|
|||||||
@@ -5,12 +5,21 @@ namespace Content.Client._White.Administration.HoursPanelSystems;
|
|||||||
|
|
||||||
public sealed class HoursPanelSystem : EntitySystem
|
public sealed class HoursPanelSystem : EntitySystem
|
||||||
{
|
{
|
||||||
private HoursPanel _panel;
|
public HoursPanel? _panel;
|
||||||
public HoursPanelSystem(HoursPanel panel)
|
|
||||||
|
|
||||||
|
public HoursPanelSystem()
|
||||||
{
|
{
|
||||||
_panel = panel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//private HoursPanel _panel;
|
||||||
|
//public HoursPanelSystem(HoursPanel panel)
|
||||||
|
//{
|
||||||
|
// _panel = panel;
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
@@ -25,6 +34,9 @@ public sealed class HoursPanelSystem : EntitySystem
|
|||||||
|
|
||||||
public void SendPlayerTimeRequest(HoursPanelMessageToServer message)
|
public void SendPlayerTimeRequest(HoursPanelMessageToServer message)
|
||||||
{
|
{
|
||||||
RaiseNetworkEvent(message);
|
var _entityManager = IoCManager.Resolve<EntityManager>();
|
||||||
|
var _che = _entityManager.System<CheZaHuetaSystem>();
|
||||||
|
_che.SendNetMessage(message);
|
||||||
|
//RaiseNetworkEvent(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user