You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_ =>thrownewSystem.Exception($"ProjectileType does not contain a valid value : {projectiletype}"),
94
+
_ =>thrownewException($"ProjectileType does not contain a valid value : {projectiletype}"),
95
95
};
96
96
97
+
/// <summary>
98
+
/// Creates and returns a new <see cref="Projectile"/> with the proper inherited subclass.
99
+
/// <para>
100
+
/// Based on the <paramref name="projectiletype"/>, the returned <see cref="Projectile"/> can be casted into a subclass to gain more control over the object.
101
+
/// <br />The following have their own respective classes:
102
+
/// <br />- FragGrenade can be casted to <see cref="ExplosionGrenadeProjectile"/>.
103
+
/// <br />- Flashbang can be casted to <see cref="FlashbangProjectile"/>.
104
+
/// <br />- Scp018 A and B variants can be casted to <see cref="Scp018Projectile"/>.
105
+
/// <br />- Scp2176 can be casted to <see cref="Scp2176Projectile"/>.
106
+
/// </para>
107
+
/// <para>
108
+
/// Projectile that are not listed will cause an Exception.
109
+
/// </para>
110
+
/// </summary>
111
+
/// <param name="projectiletype">The <see cref="Enums.ProjectileType"/> of the projectile.</param>
0 commit comments