~ruther/NosSmooth

ref: 2490c12ccc03bf2aad6e3ad1f4236b2fef4e07cc NosSmooth/Core/NosSmooth.Game/Attributes/UnsafeAttribute.cs -rw-r--r-- 795 bytes
2490c12c — Rutherther fix(game): make current partner and pet null if pinit does not contain them 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
//  UnsafeAttribute.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace NosSmooth.Game.Attributes;

/// <summary>
/// The given method does not do some checks.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Struct)]
public class UnsafeAttribute : Attribute
{
    /// <summary>
    /// Initializes a new instance of the <see cref="UnsafeAttribute"/> class.
    /// </summary>
    /// <param name="reason">The reason.</param>
    public UnsafeAttribute(string reason)
    {
        Reason = reason;
    }

    /// <summary>
    /// Gets the unsafe reason.
    /// </summary>
    public string Reason { get; }
}
Do not follow this link