mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-20 07:34:17 +01:00
refactor: ObjectTable.SearchByID -> SearchById
This commit is contained in:
parent
ff6fa4bf50
commit
cf54c6dc30
5 changed files with 7 additions and 7 deletions
|
|
@ -61,16 +61,16 @@ namespace Dalamud.Game.ClientState.Objects
|
|||
/// <summary>
|
||||
/// Search for a game object by their Object ID.
|
||||
/// </summary>
|
||||
/// <param name="objectID">Object ID to find.</param>
|
||||
/// <param name="objectId">Object ID to find.</param>
|
||||
/// <returns>A game object or null.</returns>
|
||||
public GameObject? SearchByID(uint objectID)
|
||||
public GameObject? SearchById(uint objectId)
|
||||
{
|
||||
foreach (var obj in this)
|
||||
{
|
||||
if (obj == null)
|
||||
continue;
|
||||
|
||||
if (obj.ObjectId == objectID)
|
||||
if (obj.ObjectId == objectId)
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue