mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 14:24:15 +01:00
make application of character data blocking
This commit is contained in:
parent
6457a1fe9a
commit
0cf12d57ef
9 changed files with 178 additions and 116 deletions
|
|
@ -233,6 +233,17 @@ public class DalamudUtil : IDisposable
|
|||
return null;
|
||||
}
|
||||
|
||||
public unsafe IntPtr? GetMinionOrMount(IntPtr chara)
|
||||
{
|
||||
var minionOrMount = ((Character*)chara)->CompanionObject;
|
||||
if (minionOrMount != null)
|
||||
{
|
||||
return (IntPtr)minionOrMount;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public async Task<T> RunOnFrameworkThread<T>(Func<T> func)
|
||||
{
|
||||
return await _framework.RunOnFrameworkThread(func).ConfigureAwait(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue