adjustments for animation/penumbra update

This commit is contained in:
Stanley Dimant
2022-09-03 17:42:59 +02:00
parent 8dc4dd26e2
commit 8d6b7346ec
8 changed files with 34 additions and 24 deletions

View File

@@ -19,7 +19,18 @@ namespace MareSynchronos.Models
public IntPtr Address { get; set; }
public IntPtr DrawObjectAddress { get; set; }
private IntPtr CurrentAddress => getAddress.Invoke();
private IntPtr CurrentAddress
{
get
{
try
{
return getAddress.Invoke();
}
catch
{ return IntPtr.Zero; }
}
}
public PlayerRelatedObject(ObjectKind objectKind, IntPtr address, IntPtr drawObjectAddress, Func<IntPtr> getAddress)
{