Weapon Scripting Overhaul

Weapons are now monolithic behaviors
Various new weapon behavior types implemented
All weapons have optional magazine and reload mechanic
Visibility now decays globally
This commit is contained in:
Reinier Vens 2021-01-25 05:53:36 +00:00
commit 357f9db329
95 changed files with 2571 additions and 754 deletions

View file

@ -127,6 +127,23 @@ public class InspectableTypeAttribute : InspectableFieldAttribute
[AttributeUsage(AttributeTargets.Field)]
public class SimplePerformanceStatAttribute : Attribute { }
/// <summary>
/// <para>Specify a tooltip for a field in the Inspector window.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class TooltipAttribute : Attribute
{
/// <summary>
/// <para>The tooltip text.</para>
/// </summary>
public readonly string tooltip;
/// <summary>
/// <para>Specify a tooltip for a field.</para>
/// </summary>
/// <param name="tooltip">The tooltip text.</param>
public TooltipAttribute(string tooltip) => this.tooltip = tooltip;
}
// public class CategoryAttribute : Attribute
// {
// public readonly Type Type;