From 6134177cf759eaa6afb8995c198a4d3f2e640085 Mon Sep 17 00:00:00 2001 From: Banalny-Banan Date: Thu, 6 Feb 2025 11:04:28 +0200 Subject: [PATCH 1/2] first --- EXILED/Exiled.API/Features/Toys/AdminToy.cs | 10 ++++++++++ EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs | 5 ----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/EXILED/Exiled.API/Features/Toys/AdminToy.cs b/EXILED/Exiled.API/Features/Toys/AdminToy.cs index 01f54e8d26..a49732b35e 100644 --- a/EXILED/Exiled.API/Features/Toys/AdminToy.cs +++ b/EXILED/Exiled.API/Features/Toys/AdminToy.cs @@ -115,6 +115,16 @@ public Vector3 Scale } } + /// + /// Gets the of the toy. + /// + public GameObject GameObject => AdminToyBase.gameObject; + + /// + /// Gets the of the toy. + /// + public Transform Transform => AdminToyBase.transform; + /// /// Gets or sets the movement smoothing value of the toy. /// diff --git a/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs b/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs index a9051baed8..48b9313267 100644 --- a/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs +++ b/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs @@ -66,11 +66,6 @@ internal ShootingTargetToy(ShootingTarget target) /// public ShootingTarget Base { get; } - /// - /// Gets the of the target. - /// - public GameObject GameObject => Base.gameObject; - /// /// Gets the of the bullseye. /// From 1d81ae28f34887d0dd0cba67d1ac32ec30885704 Mon Sep 17 00:00:00 2001 From: Banalny-Banan Date: Thu, 6 Feb 2025 12:58:56 +0200 Subject: [PATCH 2/2] backward compatibility, doc fix --- EXILED/Exiled.API/Features/Toys/AdminToy.cs | 4 ++-- EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/EXILED/Exiled.API/Features/Toys/AdminToy.cs b/EXILED/Exiled.API/Features/Toys/AdminToy.cs index a49732b35e..a3ffa539cd 100644 --- a/EXILED/Exiled.API/Features/Toys/AdminToy.cs +++ b/EXILED/Exiled.API/Features/Toys/AdminToy.cs @@ -116,12 +116,12 @@ public Vector3 Scale } /// - /// Gets the of the toy. + /// Gets the of the toy. /// public GameObject GameObject => AdminToyBase.gameObject; /// - /// Gets the of the toy. + /// Gets the of the toy. /// public Transform Transform => AdminToyBase.transform; diff --git a/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs b/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs index 48b9313267..86246ffd28 100644 --- a/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs +++ b/EXILED/Exiled.API/Features/Toys/ShootingTargetToy.cs @@ -66,6 +66,9 @@ internal ShootingTargetToy(ShootingTarget target) /// public ShootingTarget Base { get; } + /// + public new GameObject GameObject => base.GameObject; + /// /// Gets the of the bullseye. ///