This repository has been archived by the owner on Jun 22, 2020. It is now read-only.
-
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
25 changed files
with
206 additions
and
69 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
6 changes: 5 additions & 1 deletion
6
DarkSoulsII.DebugView.Core/DarkSoulsII/Character/ChrAsmCtrl.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
13 changes: 13 additions & 0 deletions
13
DarkSoulsII.DebugView.Core/DarkSoulsII/Character/Gestures/ChrAsmCtrlGesture.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,13 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.Character.Gestures | ||
{ | ||
public class ChrAsmCtrlGesture : IReadable<ChrAsmCtrlGesture> | ||
{ | ||
public GestureType Gesture { get; set; } | ||
|
||
public ChrAsmCtrlGesture Read(IReader reader, int address, bool relative = false) | ||
{ | ||
Gesture = (GestureType) reader.ReadInt32(address + 0x0004, relative); | ||
return this; | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
DarkSoulsII.DebugView.Core/DarkSoulsII/Character/Gestures/ChrAsmCtrlGestures.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,26 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.Character.Gestures | ||
{ | ||
public class ChrAsmCtrlGestures : IReadable<ChrAsmCtrlGestures> | ||
{ | ||
public ChrAsmCtrlGestures() | ||
{ | ||
Gestures = new List<ChrAsmCtrlGesture>(); | ||
} | ||
|
||
public List<ChrAsmCtrlGesture> Gestures { get; set; } | ||
|
||
public ChrAsmCtrlGestures Read(IReader reader, int address, bool relative = false) | ||
{ | ||
int gestureAddress = address + 0x0004; | ||
for (int i = 0; i < 52; i++, gestureAddress += 20) | ||
{ | ||
// TODO: Check what the values < 44 are | ||
if (i >= 44) | ||
Gestures.Add(Pointer<ChrAsmCtrlGesture>.Create(gestureAddress, relative).Unbox(reader)); | ||
} | ||
return this; | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
DarkSoulsII.DebugView.Core/DarkSoulsII/Character/Gestures/GestureType.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,27 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.Character.Gestures | ||
{ | ||
public enum GestureType | ||
{ | ||
Point = 10, | ||
IWontBite = 20, | ||
Bow = 30, | ||
Welcome = 40, | ||
DuelBow = 50, | ||
Wave = 60, | ||
Joy = 70, | ||
RightyHo = 80, | ||
NoWay = 90, | ||
ThisOnesMe = 100, | ||
Hurrah = 120, | ||
HaveMercy = 130, | ||
Decapitate = 150, | ||
Mock = 220, | ||
PumpedUp = 240, | ||
Prostration = 250, | ||
Warmup = 270, | ||
Warcry = 280, | ||
Unnamed = 290, | ||
PraiseTheSun = 300, | ||
FistBump = 310 | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
DarkSoulsII.DebugView.Core/DarkSoulsII/GameData/ItemInventoryData.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,13 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.GameData | ||
{ | ||
public class ItemInventoryData : IReadable<ItemInventoryData> | ||
{ | ||
public UserItemInventoryData UserData { get; set; } | ||
|
||
public ItemInventoryData Read(IReader reader, int address, bool relative = false) | ||
{ | ||
UserData = Pointer<UserItemInventoryData>.CreateAndUnbox(reader, address + 0x0008, relative); | ||
return this; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
DarkSoulsII.DebugView.Core/DarkSoulsII/GameData/Items/ItemInventory2BagList.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,11 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.GameData.Items | ||
{ | ||
public class ItemInventory2BagList : ItemInventory2ListBase, IReadable<ItemInventory2BagList> | ||
{ | ||
public ItemInventory2BagList Read(IReader reader, int address, bool relative = false) | ||
{ | ||
base.Read(reader, address, relative); | ||
return this; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
DarkSoulsII.DebugView.Core/DarkSoulsII/GameData/Items/ItemInventory2CofferList.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,11 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.GameData.Items | ||
{ | ||
public class ItemInventory2CofferList : ItemInventory2ListBase, IReadable<ItemInventory2CofferList> | ||
{ | ||
public ItemInventory2CofferList Read(IReader reader, int address, bool relative = false) | ||
{ | ||
base.Read(reader, address, relative); | ||
return this; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
DarkSoulsII.DebugView.Core/DarkSoulsII/GameData/Items/ItemInventory2ListBase.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,10 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.GameData.Items | ||
{ | ||
public class ItemInventory2ListBase : IReadable<ItemInventory2ListBase> | ||
{ | ||
public ItemInventory2ListBase Read(IReader reader, int address, bool relative = false) | ||
{ | ||
return this; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
DarkSoulsII.DebugView.Core/DarkSoulsII/GameData/Items/ItemInventory2ShopList.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,11 @@ | ||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.GameData.Items | ||
{ | ||
public class ItemInventory2ShopList : ItemInventory2ListBase, IReadable<ItemInventory2ShopList> | ||
{ | ||
public ItemInventory2ShopList Read(IReader reader, int address, bool relative = false) | ||
{ | ||
base.Read(reader, address, relative); | ||
return this; | ||
} | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
DarkSoulsII.DebugView.Core/DarkSoulsII/GameData/UserItemInventoryData.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,21 @@ | ||
using DarkSoulsII.DebugView.Core.DarkSoulsII.GameData.Items; | ||
|
||
namespace DarkSoulsII.DebugView.Core.DarkSoulsII.GameData | ||
{ | ||
public class UserItemInventoryData : IReadable<UserItemInventoryData> | ||
{ | ||
public ItemInventory2BagList ItemInventory2BagList { get; set; } | ||
public ItemInventory2CofferList ItemInventory2CofferList { get; set; } | ||
public ItemInventory2ShopList ItemInventory2ShopList { get; set; } | ||
|
||
public UserItemInventoryData Read(IReader reader, int address, bool relative = false) | ||
{ | ||
ItemInventory2BagList = Pointer<ItemInventory2BagList>.CreateAndUnbox(reader, address + 0x0008, relative); | ||
ItemInventory2CofferList = Pointer<ItemInventory2CofferList>.CreateAndUnbox(reader, address + 0x000C, | ||
relative); | ||
ItemInventory2ShopList = Pointer<ItemInventory2ShopList>.CreateAndUnbox(reader, address + 0x0010, relative); | ||
// TODO: +0014->+0008->+0000 = torch time | ||
return this; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ public Param Read(IReader reader, int address, bool relative = false) | |
return this; | ||
} | ||
} | ||
} | ||
} |
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.