Skip to content

Instantly share code, notes, and snippets.

View RevenantX's full-sized avatar

Ruslan Pyrch RevenantX

View GitHub Profile
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;
namespace Game.Shared.Helpers
{
public class GameTimer
{
private float _time;
private float _maxTime;
public GameTimer(float maxTime)
{
_maxTime = maxTime;
using System;
using System.Net;
using System.Net.Sockets;
using LiteNetLib.Utils;
namespace Code.ExperimentalCode
{
public class UdpNetWrapper
{
class ClientData