mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-23 00:49:17 +01:00
refactor: use nullable annotations instead of CanBeNullAttribute
This commit is contained in:
parent
3c5c7fbc80
commit
010a4972cd
14 changed files with 33 additions and 62 deletions
|
|
@ -49,8 +49,7 @@ namespace Dalamud.Game.ClientState.Objects
|
|||
/// </summary>
|
||||
/// <param name="index">Spawn index.</param>
|
||||
/// <returns>An <see cref="GameObject"/> at the specified spawn index.</returns>
|
||||
[CanBeNull]
|
||||
public GameObject this[int index]
|
||||
public GameObject? this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
@ -64,8 +63,7 @@ namespace Dalamud.Game.ClientState.Objects
|
|||
/// </summary>
|
||||
/// <param name="objectID">Object ID to find.</param>
|
||||
/// <returns>A game object or null.</returns>
|
||||
[CanBeNull]
|
||||
public GameObject SearchByID(uint objectID)
|
||||
public GameObject? SearchByID(uint objectID)
|
||||
{
|
||||
foreach (var obj in this)
|
||||
{
|
||||
|
|
@ -97,8 +95,7 @@ namespace Dalamud.Game.ClientState.Objects
|
|||
/// </summary>
|
||||
/// <param name="address">The address of the object in memory.</param>
|
||||
/// <returns><see cref="GameObject"/> object or inheritor containing the requested data.</returns>
|
||||
[CanBeNull]
|
||||
public unsafe GameObject CreateObjectReference(IntPtr address)
|
||||
public unsafe GameObject? CreateObjectReference(IntPtr address)
|
||||
{
|
||||
var clientState = Service<ClientState>.Get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue