-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all animation timing to use tick-based approach. Fixes animati…
…on timing issues and makes behavior more consistent with vanilla client
- Loading branch information
1 parent
2ff8af3
commit 859365f
Showing
18 changed files
with
131 additions
and
180 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
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,28 @@ | ||
using AutomaticTypeMapper; | ||
|
||
namespace EOLib | ||
{ | ||
[AutoMappedType(IsSingleton = true)] | ||
public class FixedTimeStepRepository : IFixedTimeStepRepository | ||
{ | ||
public const double TICK_TIME_MS = 10.0; | ||
|
||
public ulong TickCount { get; private set; } | ||
|
||
public bool IsWalkUpdateFrame => TickCount % 4 == 0; | ||
|
||
public void Tick() | ||
{ | ||
TickCount++; | ||
} | ||
} | ||
|
||
public interface IFixedTimeStepRepository | ||
{ | ||
public ulong TickCount { get; } | ||
|
||
bool IsWalkUpdateFrame { get; } | ||
|
||
void Tick(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.