Skip to content

Commit c33b90d

Browse files
committed
CS extensions
1 parent f118b22 commit c33b90d

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using ECommons.Reflection;
2+
using FFXIVClientStructs.FFXIV.Component.GUI;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Text;
6+
7+
namespace ECommons.CSExtensions;
8+
9+
public unsafe static class AtkEventStateExtensions
10+
{
11+
extension(ref AtkEventState thisRef)
12+
{
13+
public byte UnkFlags3
14+
{
15+
get
16+
{
17+
fixed(AtkEventState* ptr = &thisRef)
18+
{
19+
return *(byte*)(((nint)ptr) + 3);
20+
}
21+
}
22+
set
23+
{
24+
fixed(AtkEventState* ptr = &thisRef)
25+
{
26+
*(byte*)(((nint)ptr) + 3) = value;
27+
}
28+
}
29+
}
30+
}
31+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
2+
using FFXIVClientStructs.FFXIV.Component.GUI;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Text;
6+
7+
namespace ECommons.CSExtensions;
8+
9+
public unsafe static class InputTimerModuleExtensions
10+
{
11+
extension(ref InputTimerModule thisRef)
12+
{
13+
public float Unk1C
14+
{
15+
get
16+
{
17+
fixed(InputTimerModule* ptr = &thisRef)
18+
{
19+
return *(float*)(((nint)ptr) + 28);
20+
}
21+
}
22+
set
23+
{
24+
fixed(InputTimerModule* ptr = &thisRef)
25+
{
26+
*(float*)(((nint)ptr) + 28) = value;
27+
}
28+
}
29+
}
30+
}
31+
}

ECommons/ECommons.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<Authors>NightmareXIV</Authors>
5-
<BaseVersion>3.1.0.4</BaseVersion>
5+
<BaseVersion>3.1.0.5</BaseVersion>
66
<PackageKind>stg</PackageKind>
77
<VersionSuffix Condition="'$(PackageKind)' != ''">-$(PackageKind)</VersionSuffix>
88
<Version>$(BaseVersion)$(VersionSuffix)</Version>

0 commit comments

Comments
 (0)