From 3cbee148b46cb44f9a262c9893ee9671da297926 Mon Sep 17 00:00:00 2001 From: Tim Potze Date: Sat, 1 Feb 2020 16:27:26 +0100 Subject: [PATCH] [ECS/GM] Removed unused PlayerDisconnectReason enum, closes #330 --- CHANGES-SampSharp.Entities.md | 1 + CHANGES-SampSharp.GameMode.md | 3 ++ .../Definitions/PlayerDisconnectReason.cs | 38 ------------------- .../Definitions/PlayerDisconnectReason.cs | 21 ---------- 4 files changed, 4 insertions(+), 59 deletions(-) delete mode 100644 src/SampSharp.Entities/SAMP/Definitions/PlayerDisconnectReason.cs delete mode 100644 src/SampSharp.GameMode/Definitions/PlayerDisconnectReason.cs diff --git a/CHANGES-SampSharp.Entities.md b/CHANGES-SampSharp.Entities.md index 726d35b1..6b178a53 100644 --- a/CHANGES-SampSharp.Entities.md +++ b/CHANGES-SampSharp.Entities.md @@ -2,6 +2,7 @@ - Added code annotations - Fixed server freezing when destroying an entity after destroying its components in a specific order - Fixed command being called with component not in entity would cause the command not te be called but still succeed (#331) +- Removed unused `PlayerDisconnectReason` enum in favour of `DisconnectReason` enum (#330) ### 0.9.0 - Initial version diff --git a/CHANGES-SampSharp.GameMode.md b/CHANGES-SampSharp.GameMode.md index 7afb90fe..e09e9950 100644 --- a/CHANGES-SampSharp.GameMode.md +++ b/CHANGES-SampSharp.GameMode.md @@ -1,3 +1,6 @@ +### 0.9.1 +- Removed unused `PlayerDisconnectReason` enum in favour of `DisconnectReason` enum (#330) + ### 0.9.0 - Added `Vector3.XY` which returns a `Vector2` with the x and y components (#299/#300) - Added `Color.Brightness` property (#309) diff --git a/src/SampSharp.Entities/SAMP/Definitions/PlayerDisconnectReason.cs b/src/SampSharp.Entities/SAMP/Definitions/PlayerDisconnectReason.cs deleted file mode 100644 index 5148eec3..00000000 --- a/src/SampSharp.Entities/SAMP/Definitions/PlayerDisconnectReason.cs +++ /dev/null @@ -1,38 +0,0 @@ -// SampSharp -// Copyright 2020 Tim Potze -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -namespace SampSharp.Entities.SAMP -{ - /// - /// Contains the reasons a player could disconnect. - /// - public enum PlayerDisconnectReason - { - /// - /// The player timed out. - /// - TimedOut = 0, - - /// - /// The player left. - /// - Left = 1, - - /// - /// The player was kicked. - /// - Kicked = 2 - } -} \ No newline at end of file diff --git a/src/SampSharp.GameMode/Definitions/PlayerDisconnectReason.cs b/src/SampSharp.GameMode/Definitions/PlayerDisconnectReason.cs deleted file mode 100644 index edf3a93c..00000000 --- a/src/SampSharp.GameMode/Definitions/PlayerDisconnectReason.cs +++ /dev/null @@ -1,21 +0,0 @@ -namespace SampSharp.GameMode.Definitions -{ - /// - /// Contains the reasons a player could disconnect. - /// - public enum PlayerDisconnectReason - { - /// - /// The player timed out. - /// - TimedOut = 0, - /// - /// The player left. - /// - Left = 1, - /// - /// The player was kicked. - /// - Kicked = 2 - } -}