From 2c4e9bca42094cd6f32a11356a7bc0996387f49b Mon Sep 17 00:00:00 2001 From: Nexd Date: Sat, 11 Nov 2023 00:50:54 +0100 Subject: [PATCH] Small adjustments (#56) --- .../Core/Model/CGlowProperty.cs | 26 ------------------- src/scripting/listeners/server.yaml | 4 +++ 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 managed/CounterStrikeSharp.API/Core/Model/CGlowProperty.cs create mode 100644 src/scripting/listeners/server.yaml diff --git a/managed/CounterStrikeSharp.API/Core/Model/CGlowProperty.cs b/managed/CounterStrikeSharp.API/Core/Model/CGlowProperty.cs deleted file mode 100644 index 4421eb3c5..000000000 --- a/managed/CounterStrikeSharp.API/Core/Model/CGlowProperty.cs +++ /dev/null @@ -1,26 +0,0 @@ -/* - * This file is part of CounterStrikeSharp. - * CounterStrikeSharp is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * CounterStrikeSharp is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with CounterStrikeSharp. If not, see . * - */ - -using CounterStrikeSharp.API.Modules.Memory; - -namespace CounterStrikeSharp.API.Core; - -public partial class CGlowProperty -{ - // m_bGlowing - public ref bool IsGlowing => ref Schema.GetRef(this.Handle, "CGlowProperty", "m_bGlowing"); - -} diff --git a/src/scripting/listeners/server.yaml b/src/scripting/listeners/server.yaml new file mode 100644 index 000000000..6f58ee71d --- /dev/null +++ b/src/scripting/listeners/server.yaml @@ -0,0 +1,4 @@ +OnServerHibernationUpdate: isHibernating:bool +OnGameServerSteamAPIActivated: +OnGameServerSteamAPIDeactivated: +OnHostNameChanged: hostname:string \ No newline at end of file