File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
EXILED/Exiled.API/Features/Toys Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 77
88namespace 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}
You can’t perform that action at this time.
0 commit comments