-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
1 parent
05d188a
commit c568e96
Showing
23 changed files
with
478 additions
and
23 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ public enum SplitType | |
{ | ||
Boss, | ||
Idol, | ||
Position, | ||
Flag, | ||
} | ||
} |
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,57 @@ | ||
using System; | ||
using SoulMemory; | ||
using SoulMemory.Sekiro; | ||
|
||
namespace SoulSplitter.Splits.Sekiro | ||
{ | ||
internal class Split | ||
{ | ||
public Split(TimingType timingType, SplitType darkSouls3SplitType, object split) | ||
{ | ||
TimingType = timingType; | ||
SplitType = darkSouls3SplitType; | ||
|
||
switch (SplitType) | ||
{ | ||
default: | ||
throw new Exception($"unsupported split type {SplitType}"); | ||
|
||
case SplitType.Boss: | ||
Boss = (Boss)split; | ||
Flag = (uint)Boss; | ||
break; | ||
|
||
case SplitType.Idol: | ||
Idol = (Idol)split; | ||
Flag = (uint)Idol; | ||
break; | ||
|
||
case SplitType.Position: | ||
Position = (Vector3f)split; | ||
break; | ||
|
||
case SplitType.Flag: | ||
Flag = (uint)split; | ||
break; | ||
} | ||
} | ||
|
||
public readonly TimingType TimingType; | ||
public readonly SplitType SplitType; | ||
|
||
public readonly Boss Boss; | ||
public readonly Idol Idol; | ||
public readonly uint Flag; | ||
public readonly Vector3f Position; | ||
|
||
/// <summary> | ||
/// Set to true when split conditions are met. Does not trigger a split until timing conditions are met | ||
/// </summary> | ||
public bool SplitConditionMet = false; | ||
|
||
/// <summary> | ||
/// True after this split object cause a split. No longer need to check split conditions | ||
/// </summary> | ||
public bool SplitTriggered = false; | ||
} | ||
} |
Oops, something went wrong.