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

Manager that holds various pieces of information about the state of the game world. More...

Classes

struct  TeleportLocation

Static Public Member Functions

static bool Raycast (Vector3 startMid, Vector3 endMid, out Vector3 hit, out Vector3 distances)
 Performs a raycast from startMid to endMid
static bool Raycast (Vector3 startMid, Vector3 endMid, out Vector3 hit)
 Performs a raycast from startMid to endMid
static void MassTraceLine (WorldLine[] lines, RaycastFlags flag1, RaycastFlags flag2, out bool[] hitResults, out Vector3[] hitPoints)
 Performs a mass traceline.
static void MassTraceLine (WorldLine[] lines, RaycastFlags[] flag1s, RaycastFlags[] flag2s, out bool[] hitResults)
 Performs a mass traceline.
static void MassTraceLine (WorldLine[] lines, RaycastFlags flag1, RaycastFlags flag2, out bool[] hitResults)
 Performs a mass traceline.
static bool AdvancedRaycast (Vector3 start, Vector3 end, RaycastFlags flags1, RaycastFlags flags2, out Vector3 hit)
 Performs a raycast from start to end and checks if the triangle has the flags provided flags1 and flags2 should have the same values most of the time Raycasts far from the player are unreliable as the gameworld gets unloaded.
static bool HasAetheryteId (uint AetheryteId)
 Returns true if user has interacted with the aethernet or aetheryte with the given id.
static Tuple< uint, Vector3 >[] AetheryteIdsForZone (uint zoneid)
static uint GetZoneForAetheryteId (uint AetheryteId)
static bool CanTeleport ()
 Check if user can cast teleport.
static bool RegisterMeshVariationFunction (ushort zone, Func< ushort > function)
 Register a function handled for a given zone.
static ushort GetMeshVariationForZone (ushort zoneid)
 Get the mesh variation for a certain zone, may return 0 for zones that are not the current zone.
static bool TeleportById (uint AetheryteId)
 Teleport user to given.
static bool Teleport (uint positiononmenu)
 Starts teleport to given zone.
static bool Teleport (string location)
 Teleport user to given Aetheryte based on name.

Static Public Attributes

const ushort CosmicExplorationZoneId = 1237
 Zoneid for cosmic exploration zone Sinus Ardorum.
static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1)
 UnixEpoch.
static Dictionary< byte, string > WeatherDictionary = new Dictionary<byte, string>()
static Dictionary< byte, string > LocalizedWeatherDictionary = new Dictionary<byte, string>()

Properties

static DateTime EorzaTime [get]
 Current time in Eorza, if system clock is wrong this will be incorrect.
static bool CanFly [get]
 Returns true if you have the ability to fly in the current zone.
static TeleportLocation[] AvailableLocations [get]
 List of avalible locations to teleport to.
static HashSet< uint > KnownAetheryteIds [get]
 List of known Aetheryte ids, also includes the small aethernets Does not include the housing zone aethernets as they funtion totally different from all the aethernets.
static bool InSanctuary [get]
 Returns true if player is currently in a sanctuary.
static bool InPvP [get]
 Returns true if player is currently in a pvp area.
static ushort RawZoneId [get]
 Returns RAW Id for the current zone This function is not what you are looking for in most cases Use ZoneId instead.
static ushort ZoneId [get]
 Returns Id for the current zone.
static ushort MeshVariation [get]
 Get the mesh variation for the active zone.
static string CurrentZoneName [get]
 Returns the name of the current zone in english.
static string CurrentLocalizedZoneName [get]
 Returns the name of the current zone in the games current locale.
static uint SubZoneId [get]
 Returns the subzoneid.
static byte CurrentWeatherId [get]
static string CurrentWeather [get]
static string LocalizedCurrentWeather [get]

Detailed Description

Manager that holds various pieces of information about the state of the game world.

Member Function Documentation

◆ AdvancedRaycast()

bool ff14bot.Managers.WorldManager.AdvancedRaycast ( Vector3 start,
Vector3 end,
RaycastFlags flags1,
RaycastFlags flags2,
out Vector3 hit )
static

Performs a raycast from start to end and checks if the triangle has the flags provided flags1 and flags2 should have the same values most of the time Raycasts far from the player are unreliable as the gameworld gets unloaded.

Parameters
start
end
flags1
flags2
hit
Returns
true if there exists an object that matched the passed flags

◆ AetheryteIdsForZone()

Tuple< uint, Vector3 >[] ff14bot.Managers.WorldManager.AetheryteIdsForZone ( uint zoneid)
static

◆ CanTeleport()

bool ff14bot.Managers.WorldManager.CanTeleport ( )
static

Check if user can cast teleport.

Returns

◆ GetMeshVariationForZone()

ushort ff14bot.Managers.WorldManager.GetMeshVariationForZone ( ushort zoneid)
static

Get the mesh variation for a certain zone, may return 0 for zones that are not the current zone.

Parameters
zoneid
Returns

◆ GetZoneForAetheryteId()

uint ff14bot.Managers.WorldManager.GetZoneForAetheryteId ( uint AetheryteId)
static

◆ HasAetheryteId()

bool ff14bot.Managers.WorldManager.HasAetheryteId ( uint AetheryteId)
static

Returns true if user has interacted with the aethernet or aetheryte with the given id.

Parameters
AetheryteIdAetheryte/Aethernet ID to check
Returns

◆ MassTraceLine() [1/3]

void ff14bot.Managers.WorldManager.MassTraceLine ( WorldLine[] lines,
RaycastFlags flag1,
RaycastFlags flag2,
out bool[] hitResults )
static

Performs a mass traceline.

Parameters
linesThe lines.
flagThe flag.
hitResults[out] The hit results.

◆ MassTraceLine() [2/3]

void ff14bot.Managers.WorldManager.MassTraceLine ( WorldLine[] lines,
RaycastFlags flag1,
RaycastFlags flag2,
out bool[] hitResults,
out Vector3[] hitPoints )
static

Performs a mass traceline.

Parameters
linesThe lines.
flagThe flag.
hitResults[out] The hit results.
hitPoints[out] The hit points.

◆ MassTraceLine() [3/3]

void ff14bot.Managers.WorldManager.MassTraceLine ( WorldLine[] lines,
RaycastFlags[] flag1s,
RaycastFlags[] flag2s,
out bool[] hitResults )
static

Performs a mass traceline.

Parameters
linesThe lines.
flagsThe flags.
hitResults[out] The hit results.

◆ Raycast() [1/2]

bool ff14bot.Managers.WorldManager.Raycast ( Vector3 startMid,
Vector3 endMid,
out Vector3 hit )
static

Performs a raycast from startMid to endMid

Parameters
startMid
endMid
hit
Returns

◆ Raycast() [2/2]

bool ff14bot.Managers.WorldManager.Raycast ( Vector3 startMid,
Vector3 endMid,
out Vector3 hit,
out Vector3 distances )
static

Performs a raycast from startMid to endMid

Parameters
startMid
endMid
hit
distances
Returns

◆ RegisterMeshVariationFunction()

bool ff14bot.Managers.WorldManager.RegisterMeshVariationFunction ( ushort zone,
Func< ushort > function )
static

Register a function handled for a given zone.

Parameters
zone
function
Returns
true if the function was added, false if a function already existed for a given zone

◆ Teleport() [1/2]

bool ff14bot.Managers.WorldManager.Teleport ( string location)
static

Teleport user to given Aetheryte based on name.

Parameters
locationLocation to teleport to, capitlization doesnt matter.
Returns

◆ Teleport() [2/2]

bool ff14bot.Managers.WorldManager.Teleport ( uint positiononmenu)
static

Starts teleport to given zone.

Parameters
positiononmenu0 is start of teleport list
Returns

◆ TeleportById()

bool ff14bot.Managers.WorldManager.TeleportById ( uint AetheryteId)
static

Teleport user to given.

Parameters
AetheryteId
Returns

Member Data Documentation

◆ CosmicExplorationZoneId

const ushort ff14bot.Managers.WorldManager.CosmicExplorationZoneId = 1237
static

Zoneid for cosmic exploration zone Sinus Ardorum.

◆ LocalizedWeatherDictionary

Dictionary<byte, string> ff14bot.Managers.WorldManager.LocalizedWeatherDictionary = new Dictionary<byte, string>()
static

◆ UnixEpoch

readonly DateTime ff14bot.Managers.WorldManager.UnixEpoch = new DateTime(1970, 1, 1)
static

UnixEpoch.

◆ WeatherDictionary

Dictionary<byte, string> ff14bot.Managers.WorldManager.WeatherDictionary = new Dictionary<byte, string>()
static

Property Documentation

◆ AvailableLocations

TeleportLocation [] ff14bot.Managers.WorldManager.AvailableLocations
staticget

List of avalible locations to teleport to.

◆ CanFly

bool ff14bot.Managers.WorldManager.CanFly
staticget

Returns true if you have the ability to fly in the current zone.

◆ CurrentLocalizedZoneName

string ff14bot.Managers.WorldManager.CurrentLocalizedZoneName
staticget

Returns the name of the current zone in the games current locale.

◆ CurrentWeather

string ff14bot.Managers.WorldManager.CurrentWeather
staticget

◆ CurrentWeatherId

byte ff14bot.Managers.WorldManager.CurrentWeatherId
staticget

◆ CurrentZoneName

string ff14bot.Managers.WorldManager.CurrentZoneName
staticget

Returns the name of the current zone in english.

◆ EorzaTime

DateTime ff14bot.Managers.WorldManager.EorzaTime
staticget

Current time in Eorza, if system clock is wrong this will be incorrect.

◆ InPvP

bool ff14bot.Managers.WorldManager.InPvP
staticget

Returns true if player is currently in a pvp area.

◆ InSanctuary

bool ff14bot.Managers.WorldManager.InSanctuary
staticget

Returns true if player is currently in a sanctuary.

◆ KnownAetheryteIds

HashSet<uint> ff14bot.Managers.WorldManager.KnownAetheryteIds
staticget

List of known Aetheryte ids, also includes the small aethernets Does not include the housing zone aethernets as they funtion totally different from all the aethernets.

◆ LocalizedCurrentWeather

string ff14bot.Managers.WorldManager.LocalizedCurrentWeather
staticget

◆ MeshVariation

ushort ff14bot.Managers.WorldManager.MeshVariation
staticget

Get the mesh variation for the active zone.

◆ RawZoneId

ushort ff14bot.Managers.WorldManager.RawZoneId
staticget

Returns RAW Id for the current zone This function is not what you are looking for in most cases Use ZoneId instead.

◆ SubZoneId

uint ff14bot.Managers.WorldManager.SubZoneId
staticget

Returns the subzoneid.

◆ ZoneId

ushort ff14bot.Managers.WorldManager.ZoneId
staticget

Returns Id for the current zone.