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
using System; | |
using System.Net; | |
using System.Net.Sockets; | |
using LiteNetLib.Utils; | |
namespace Code.ExperimentalCode | |
{ | |
public class UdpNetWrapper | |
{ | |
class ClientData |
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
namespace Game.Shared.Helpers | |
{ | |
public class GameTimer | |
{ | |
private float _time; | |
private float _maxTime; | |
public GameTimer(float maxTime) | |
{ | |
_maxTime = maxTime; |
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
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 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 Game.Shared.MathHelpers; | |
using UnityEngine; | |
#if !UNITY | |
namespace UnityEngine | |
{ | |
public struct Quaternion | |
{ | |
public float x; |
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
#if !UNITY | |
using System; | |
namespace UnityEngine | |
{ | |
public struct Vector3 | |
{ | |
public float x; | |
public float y; | |
public float z; |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
using UnityEditor; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; |
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
using System; | |
using System.Collections.Generic; | |
namespace Game.Shared.Helpers | |
{ | |
public class StateMachine<TStateEnum, TCommandEnum, TStateMachine> | |
where TStateEnum : struct, IComparable, IFormattable, IConvertible | |
where TCommandEnum : struct, IComparable, IFormattable, IConvertible | |
where TStateMachine : StateMachine<TStateEnum, TCommandEnum, TStateMachine> | |
{ |
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
interface IGameTask | |
{ | |
void Execute(); | |
} | |
class GameTaskManager : IDisposable | |
{ | |
class TaskThread : IDisposable | |
{ | |
private bool _isRunning; |
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
using System.Collections.Generic; | |
namespace Game.Shared.Helpers | |
{ | |
public interface IStateMachineOwner | |
{ | |
StateMachine StateMachine { get; } | |
} | |
public interface IState |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace Game.Shared.Helpers | |
{ | |
public class FastList<T> : IList<T> | |
{ | |
private T[] _items; | |
private int _count; |
NewerOlder