private void TryGetLevel() { if (Level != null) { return; } var lm = _server.LevelManager; if (lm == null) { return; } Level = lm.Levels.FirstOrDefault(l => l != null && l.LevelId.Equals(Map.Config.LevelId, StringComparison.InvariantCultureIgnoreCase)); if (Level != null) { WsServer.BroadcastPacket(new LevelMetaPacket() { LevelId = Level.LevelId, Meta = Map.Meta }); } }
protected virtual void Update() { // Send data WsServer.BroadcastPacket(new WidgetElementUpdatePacket() { WidgetId = Widget.WidgetId, ElementId = ElementId, Data = this }); }