Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Managers.GameObjectManager Class Reference

Classes

struct  MarkStorage
struct  SignList

Static Public Member Functions

static GameObject GetObjectByName (string Name)
static GameObject GetObjectByObjectId (uint ObjectId)
 Retrieves a GameObject instance by its unique object identifier.
static GameObject GetObjectByNPCId (uint NpcId)
 Retrieves a GameObject instance by its NPC ID.
static T[] GetObjectsByNPCIds< T > (uint[] NpcIds)
 Retrieves an array of game objects of the specified type T that match any of the provided NPC IDs.
static T[] GetObjectsByNPCIds< T > (HashSet< uint > NpcIds)
 Retrieves an array of game objects of the specified type T that match any of the provided NPC IDs.
static IEnumerable< GameObjectGetObjectsByNPCId (uint NpcId)
 Retrieves all game objects with the specified NPC ID.
static IEnumerable< T > GetObjectsByNPCId< T > (uint NpcId)
 Retrieves a collection of game objects of the specified type T that match the given NPC ID.
static T GetObjectByNPCId< T > (uint NpcId)
 Retrieves the first game object of the specified type T that matches the given NPC ID.
static void Clear ()
 Clears the entity manager of any cached values and forces a refresh on next Update() call.
static void Update ()
 Updates the EntityManager's object storage lists.
static IEnumerable< T > GetObjectsOfType< T > (bool allowInheritance=false, bool includeMeIfFound=false)
 Gets object of the specified type.
static T GetObjectById< T > (uint @ref, bool allowInheritance=false)
 Gets a entity by it's ref.

Static Public Attributes

static readonly int MaxObjects
 Maximum Number of objects that the game will store.
const uint EmptyGameObject = 0xE0000000
 Constant used to represent an empty object.
static HashSet< BattleCharacterAttackers
 List of characters currently on the threat list.

Properties

static int NumberOfAttackers [get]
 Current number of units on the attacker.
static IEnumerable< GameObjectGameObjects [get]
 Gets a list of entities.
static GameObject Target [get]
 Get the active players target.
static LocalPlayer LocalPlayer [get]
static BattleCharacter CurrentPet [get]
 Get the players active pet Might not be in the object list for a few frames after being summoned.
static uint PetObjectId [get]
 Returns the objectid of pet even if it is not yet in the object manager.
static IEnumerable< Tuple< GameObject, Mark > > MarkedUnits [get]
 Get the units that currently have a mark/sign assigned to them.

Member Function Documentation

◆ Clear()

void ff14bot.Managers.GameObjectManager.Clear ( )
static

Clears the entity manager of any cached values and forces a refresh on next Update() call.

◆ GetObjectById< T >()

T ff14bot.Managers.GameObjectManager.GetObjectById< T > ( uint @ ref,
bool allowInheritance = false )
static

Gets a entity by it's ref.

Template Parameters
T
Parameters
refThe ref.
allowInheritanceif set to true [allow inheritance].
Returns

Created 2012-02-27

Type Constraints
T :GameObject 

◆ GetObjectByName()

GameObject ff14bot.Managers.GameObjectManager.GetObjectByName ( string Name)
static

◆ GetObjectByNPCId()

GameObject ff14bot.Managers.GameObjectManager.GetObjectByNPCId ( uint NpcId)
static

Retrieves a GameObject instance by its NPC ID.

Parameters
NpcIdThe identifier of the NPC.
Returns
A GameObject that matches the specified NPC ID, or null if no matching object is found.

◆ GetObjectByNPCId< T >()

Retrieves the first game object of the specified type T that matches the given NPC ID.

Template Parameters
TThe type of the game object to retrieve. Must inherit from GameObject.
Parameters
NpcIdThe NPC ID of the game object to search for.
Returns
The first game object of type T with the specified NPC ID, or null if no such object is found.
Type Constraints
T :GameObject 

◆ GetObjectByObjectId()

GameObject ff14bot.Managers.GameObjectManager.GetObjectByObjectId ( uint ObjectId)
static

Retrieves a GameObject instance by its unique object identifier.

Parameters
ObjectIdThe unique identifier of the object to retrieve.
Returns
The GameObject associated with the specified ObjectId , or null if no object with the given identifier exists.

◆ GetObjectsByNPCId()

IEnumerable< GameObject > ff14bot.Managers.GameObjectManager.GetObjectsByNPCId ( uint NpcId)
static

Retrieves all game objects with the specified NPC ID.

Parameters
NpcIdThe NPC ID to filter game objects by.
Returns
An IEnumerable<T> of GameObject instances that have the specified NPC ID.

◆ GetObjectsByNPCId< T >()

IEnumerable< T > ff14bot.Managers.GameObjectManager.GetObjectsByNPCId< T > ( uint NpcId)
static

Retrieves a collection of game objects of the specified type T that match the given NPC ID.

Template Parameters
TThe type of game objects to retrieve. Must be a type derived from GameObject.
Parameters
NpcIdThe NPC ID used to filter the game objects.
Returns
An IEnumerable<T> containing all game objects of type T that match the specified NPC ID.
Type Constraints
T :GameObject 

◆ GetObjectsByNPCIds< T >() [1/2]

T[] ff14bot.Managers.GameObjectManager.GetObjectsByNPCIds< T > ( HashSet< uint > NpcIds)
static

Retrieves an array of game objects of the specified type T that match any of the provided NPC IDs.

Template Parameters
TThe type of game objects to retrieve. Must be a type derived from GameObject.
Parameters
NpcIdsAn array of NPC IDs to filter the game objects.
Returns
An array of game objects of type T that match the specified NPC IDs.
Type Constraints
T :GameObject 

◆ GetObjectsByNPCIds< T >() [2/2]

T[] ff14bot.Managers.GameObjectManager.GetObjectsByNPCIds< T > ( uint[] NpcIds)
static

Retrieves an array of game objects of the specified type T that match any of the provided NPC IDs.

Template Parameters
TThe type of game objects to retrieve. Must be a type derived from GameObject.
Parameters
NpcIdsAn array of NPC IDs to filter the game objects.
Returns
An array of game objects of type T that match the specified NPC IDs.
Type Constraints
T :GameObject 

◆ GetObjectsOfType< T >()

IEnumerable< T > ff14bot.Managers.GameObjectManager.GetObjectsOfType< T > ( bool allowInheritance = false,
bool includeMeIfFound = false )
static

Gets object of the specified type.

Template Parameters
T
Parameters
allowInheritanceIndicates whether to also get objects that derives from the specified type.
includeMeIfFoundIndicates whether to include the local player.
Returns
Type Constraints
T :GameObject 

◆ Update()

void ff14bot.Managers.GameObjectManager.Update ( )
static

Updates the EntityManager's object storage lists.

Member Data Documentation

◆ Attackers

HashSet<BattleCharacter> ff14bot.Managers.GameObjectManager.Attackers
static

List of characters currently on the threat list.

◆ EmptyGameObject

const uint ff14bot.Managers.GameObjectManager.EmptyGameObject = 0xE0000000
static

Constant used to represent an empty object.

◆ MaxObjects

readonly int ff14bot.Managers.GameObjectManager.MaxObjects
static

Maximum Number of objects that the game will store.

Property Documentation

◆ CurrentPet

BattleCharacter ff14bot.Managers.GameObjectManager.CurrentPet
staticget

Get the players active pet Might not be in the object list for a few frames after being summoned.

◆ GameObjects

IEnumerable<GameObject> ff14bot.Managers.GameObjectManager.GameObjects
staticget

Gets a list of entities.

A List of entities.

◆ LocalPlayer

LocalPlayer ff14bot.Managers.GameObjectManager.LocalPlayer
staticget

◆ MarkedUnits

IEnumerable<Tuple<GameObject, Mark> > ff14bot.Managers.GameObjectManager.MarkedUnits
staticget

Get the units that currently have a mark/sign assigned to them.

◆ NumberOfAttackers

int ff14bot.Managers.GameObjectManager.NumberOfAttackers
staticget

Current number of units on the attacker.

◆ PetObjectId

uint ff14bot.Managers.GameObjectManager.PetObjectId
staticget

Returns the objectid of pet even if it is not yet in the object manager.

◆ Target

GameObject ff14bot.Managers.GameObjectManager.Target
staticget

Get the active players target.