Skip to content

Commit

Permalink
added map position properties
Browse files Browse the repository at this point in the history
  • Loading branch information
TalicZealot committed May 18, 2021
1 parent 72da9aa commit e83d69d
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
16 changes: 16 additions & 0 deletions SotnApi/SotnApi/AlucardApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,22 @@ public uint Action
}
}

public uint MapX
{
get
{
return memAPI.ReadByte(Stats.MapX);
}
}

public uint MapY
{
get
{
return memAPI.ReadByte(Stats.MapY);
}
}

public bool FacingLeft
{
get
Expand Down
2 changes: 2 additions & 0 deletions SotnApi/SotnApi/Constants/Addresses/Alucard/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ internal static class Stats
public static long Rooms = 0x03C760;
public static long WarpsFirstCastle = 0x03BEBC;
public static long WarpsSecondCastle = 0x03BEBD;
public static long MapX = 0x0730B0;
public static long MapY = 0x0730B4;
public static long Facing = 0x0733EC;
public static long State = 0x073404;
public static long Action = 0x073406;
Expand Down
14 changes: 13 additions & 1 deletion SotnApi/SotnApi/Interfaces/IAlucardApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public interface IAlucardApi
uint JumpingAttackRightHorizontalWholeSpeed { get; set; }
/// <summary> Alucard jumping horizontal fractional speed. </summary>
uint JumpingAttackRightHorizontalFractSpeed { get; set; }

/// <summary> Alucard falling horizontal speed in pixels per frame. </summary>
uint FallingHorizontalWholeSpeed { get; set; }
/// <summary> Alucard falling horizontal fractional speed. </summary>
Expand All @@ -74,16 +73,29 @@ public interface IAlucardApi
sbyte WolfDashTopLeftSpeed { get; set; }
/// <summary> Alucard backdash deceleration rate. </summary>
uint BackdashDecel { get; set; }
/// <summary> Index of the currently equipped item in the Right Hand slot.</summary>
uint RightHand { get; set; }
/// <summary> Index of the currently equipped item in the Left Hand slot.</summary>
uint LeftHand { get; set; }
/// <summary> Index of the currently equipped item in the Armor slot.</summary>
uint Armor { get; set; }
/// <summary> Index of the currently equipped item in the Helm slot.</summary>
uint Helm { get; set; }
/// <summary> Index of the currently equipped item in the Cloak slot.</summary>
uint Cloak { get; set; }
/// <summary> Index of the currently equipped item in the first Accessory slot.</summary>
uint Accessory1 { get; set; }
/// <summary> Index of the currently equipped item in the second Accessory slot.</summary>
uint Accessory2 { get; set; }
/// <summary> Index of the held subweapon.</summary>
Subweapon Subweapon { get; set; }
uint State { get; set; }
uint Action { get; set; }
/// <summary>Horizontal position of the blinking indicator on the map.</summary>
uint MapX { get; }
/// <summary>Vertical position of the blinking indicator on the map.</summary>
uint MapY { get; }
/// <returns> True if Alucard is facing left.</returns>
bool FacingLeft { get; set; }
uint DarkMetamorphasisTimer { get; set; }
uint AttackPotionTimer { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion SotnApi/SotnApi/SotnApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<TargetFramework>net48</TargetFramework>
<Version>1.0.7</Version>
<Version>1.0.8</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
33 changes: 33 additions & 0 deletions SotnApi/SotnApi/SotnApi.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e83d69d

Please sign in to comment.