This file contains hidden or 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
using System; | |
using System.Diagnostics; | |
namespace Game.Shared.Helpers | |
{ | |
public class LogicTimer | |
{ | |
public const float FixedDelta = 0.015f; | |
public const long FixedDeltaNano = 15000 * 1000L; | |
public const float TicksPerSecond = 1.0f / FixedDelta; |
This file contains hidden or 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
namespace Game.Shared.Helpers | |
{ | |
public class GameTimer | |
{ | |
private float _time; | |
private float _maxTime; | |
public GameTimer(float maxTime) | |
{ | |
_maxTime = maxTime; |
This file contains hidden or 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
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using LiteNetLib.Utils; | |
namespace Code.ExperimentalCode | |
{ | |
public class UdpNetWrapper | |
{ | |
class ClientData |
OlderNewer