Skip to content

Commit cfd764a

Browse files
committed
feat: add camera toy to all cameras
1 parent 799a367 commit cfd764a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

EXILED/Exiled.API/Features/Toys/CameraToy.cs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77

88
namespace Exiled.API.Features.Toys
99
{
10-
using System;
11-
using System.Collections.Generic;
12-
using System.Linq;
13-
using System.Text;
14-
using System.Threading.Tasks;
15-
1610
using AdminToys;
1711
using Exiled.API.Enums;
1812
using Exiled.API.Interfaces;
@@ -28,7 +22,11 @@ internal class CameraToy : AdminToy, IWrapper<Scp079CameraToy>
2822
/// </summary>
2923
/// <param name="scp079CameraToy">The <see cref="Scp079CameraToy"/> of the toy.</param>
3024
internal CameraToy(Scp079CameraToy scp079CameraToy)
31-
: base(scp079CameraToy, AdminToyType.CameraToy) => Base = scp079CameraToy;
25+
: base(scp079CameraToy, AdminToyType.CameraToy)
26+
{
27+
Base = scp079CameraToy;
28+
Camera = new Features.Camera(Base._camera);
29+
}
3230

3331
/// <summary>
3432
/// Gets the base <see cref="Scp079CameraToy"/>.
@@ -79,5 +77,10 @@ public string Name
7977
get => Base.NetworkLabel;
8078
set => Base.NetworkLabel = value;
8179
}
80+
81+
/// <summary>
82+
/// Gets the camera associated with this CameraToy.
83+
/// </summary>
84+
public Exiled.API.Features.Camera Camera { get; }
8285
}
8386
}

0 commit comments

Comments
 (0)