forked from aers/FFXIVClientStructs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
130 changed files
with
28,183 additions
and
7,617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
FFXIVClientStructs/FFXIV/Client/Game/Event/QuestEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using FFXIVClientStructs.FFXIV.Client.Game.Character; | ||
using FFXIVClientStructs.FFXIV.Client.System.String; | ||
|
||
namespace FFXIVClientStructs.FFXIV.Client.Game.Event; | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0x610)] | ||
public unsafe partial struct QuestEventHandler { | ||
[FieldOffset(0x00)] public LuaEventHandler LuaEventHandler; | ||
[FieldOffset(0x338)] public ushort QuestId; | ||
|
||
[FieldOffset(0x340)] public Utf8String Title; | ||
|
||
[MemberFunction("4C 8B DC 55 57 41 54 41 55 48 81 EC")] | ||
public readonly partial void GetTodoArgs(BattleChara* localPlayer, byte idx, uint* arg0, uint* arg1, uint* arg2); | ||
|
||
[MemberFunction("E8 ?? ?? ?? ?? 41 88 07 45 33 D2")] | ||
public readonly partial bool IsTodoChecked(BattleChara* localPlayer, byte idx); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using FFXIVClientStructs.FFXIV.Client.Game.Event; | ||
using FFXIVClientStructs.FFXIV.Client.System.String; | ||
|
||
namespace FFXIVClientStructs.FFXIV.Client.Game.UI; | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0x148)] | ||
public unsafe struct DirectorTodo { | ||
[FieldOffset(0x00)] public Director* Director; | ||
[FieldOffset(0x08)] public Utf8String Title; | ||
[FieldOffset(0x70)] public Utf8String Description; | ||
[FieldOffset(0xD8)] public Utf8String ReliefText; | ||
[FieldOffset(0x140)] public bool IsFullUpdatePending; | ||
[FieldOffset(0x141)] public bool IsShown; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
namespace FFXIVClientStructs.FFXIV.Client.Game; | ||
|
||
// Client::Game::WeatherManager | ||
/// <remarks> | ||
/// The weather changes every 8 hours. | ||
/// </remarks> | ||
[StructLayout(LayoutKind.Explicit, Size = 0x70)] | ||
public unsafe partial struct WeatherManager { | ||
[FixedSizeArray<Pointer<ServerWeather>>(3)] | ||
[FieldOffset(0x00)] internal fixed byte WeatherPtr[3 * 0x08]; | ||
[FixedSizeArray<ServerWeather>(3)] | ||
[FieldOffset(0x18)] internal fixed byte Weather[3 * 0x18]; | ||
|
||
[FieldOffset(0x60)] public byte WeatherIndex; | ||
[FieldOffset(0x64)] public byte WeatherId; | ||
[FieldOffset(0x65)] public byte WeatherOverride; | ||
[FieldOffset(0x66)] public byte CurrentDaytimeOffset; | ||
[FieldOffset(0x67)] public byte IndividualWeatherId; | ||
|
||
[StaticAddress("48 8D 0D ?? ?? ?? ?? 44 0F B7 45", 3)] | ||
public static partial WeatherManager* Instance(); | ||
|
||
[MemberFunction("E8 ?? ?? ?? ?? 0F B6 C8 8D 41 ?? A9")] | ||
public partial byte GetCurrentWeather(); | ||
|
||
/// <summary> | ||
/// Checks if the specified TerritoryType has individual weather. | ||
/// </summary> | ||
[MemberFunction("E8 ?? ?? ?? ?? 44 0F B6 F0 48 8D 73 04")] | ||
public partial bool HasIndividualWeather(ushort territoryTypeId); | ||
|
||
/// <summary> | ||
/// Gets the IndividualWeather id for the specified TerritoryType, if it has one. | ||
/// </summary> | ||
[MemberFunction("E8 ?? ?? ?? ?? 0F B6 C0 33 DB")] | ||
public partial byte GetIndividualWeather(ushort territoryTypeId); | ||
|
||
/// <summary> | ||
/// Gets the Weather id for the specified TerritoryType and hour. | ||
/// </summary> | ||
/// <param name="territoryTypeId"> The id of the TerritoryType to check the weather for. </param> | ||
/// <param name="hourOffset"> An hour offset. (0 = Now, 8 = some time after the next weather change) </param> | ||
/// <returns> The id of a row in the Weather sheet. </returns> | ||
[MemberFunction("40 57 48 83 EC 20 0F B7 CA")] | ||
public partial byte GetWeatherForHour(ushort territoryTypeId, int hourOffset); | ||
|
||
/// <summary> | ||
/// Gets the Weather id for the specified TerritoryType and daytime. | ||
/// </summary> | ||
/// <param name="territoryTypeId"> The id of the TerritoryType to check the weather for. </param> | ||
/// <param name="daytimeOffset"> | ||
/// A daytime offset.<br/> | ||
/// 0 = Now<br/> | ||
/// 1 = In 8 hours (some time after the next weather change)<br/> | ||
/// 2 = In 16 hours<br/> | ||
/// 3 = In 24 hours | ||
/// </param> | ||
/// <remarks> All this function does, is to call <see cref="GetWeatherForHour"/> with daytimeIndex * 8 as offset. </remarks> | ||
/// <returns> The id of a row in the Weather sheet. </returns> | ||
[MemberFunction("46 8D 04 C5 ?? ?? ?? ?? E9")] | ||
public partial byte GetWeatherForDaytime(ushort territoryTypeId, int daytimeOffset); | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0x18)] | ||
public unsafe partial struct ServerWeather { | ||
[FieldOffset(0x08)] public byte NextWeatherId; | ||
[FieldOffset(0x09)] public byte CurrentWeatherId; | ||
[FieldOffset(0x0C)] public float DaytimeFadeTimeLeft; | ||
[FieldOffset(0x10)] public float DaytimeFadeLength; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.