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
/// <summary> | |
/// Provides functionalities for secure key exchange and data signing using Elliptic Curve Cryptography (ECC). | |
/// </summary> | |
public class SecureKeyExchange : IDisposable | |
{ | |
private ECDiffieHellman _ecdh; | |
private ECDsa _ecdsa; | |
/// <summary> | |
/// Initializes a new instance of the SecureKeyExchange class. |
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
/// <summary> | |
/// Defines the functionality of a byte buffer capable of reading and writing various data types. | |
/// </summary> | |
public interface IByteBuffer | |
{ | |
/// <summary> | |
/// Gets the current position within the buffer. | |
/// </summary> | |
long Position { get; } |
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.IO; | |
using System.Runtime.Serialization.Formatters.Binary; | |
/// <summary> | |
/// Provides methods for reading from and writing to binary files. | |
/// </summary> | |
public static class FileReadWrite | |
{ | |
/// <summary> | |
/// Writes an object to a binary file. |
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.Collections.ObjectModel; | |
/// <summary> | |
/// Represents a character stat with a base value and modifiers that affect its final value. | |
/// </summary> | |
[Serializable] | |
public class CharacterStat | |
{ |
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
@page { | |
margin: 0; | |
} | |
body { | |
margin: 0; | |
} | |
/** Paper sizes **/ |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class VehicleController : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
void Start() | |
{ |
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; | |
using System.Text; | |
namespace Opixal.IO | |
{ | |
/// <summary> | |
/// A lightweight byte buffer implementation. | |
/// </summary> | |
/// <remarks> | |
/// <para>Provides an efficient way to store and retrieve data within a byte array.</para> |
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 Opixal.IO | |
{ | |
/// <summary> | |
/// The base interface implemented by all pipelines. | |
/// </summary> | |
/// <typeparam name="T">The type of the pipeline.</typeparam> | |
internal interface IPipeline<T> | |
{ | |
#region Properties |
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
# Taken as is from https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019 | |
# Naming rules are removed. | |
# Customizations are added at the bottom of the file. | |
# Remove the line below if you want to inherit .editorconfig settings from higher directories | |
root = true | |
# C# files | |
[*.cs] |
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 UnityEngine; | |
public class BasicRigidBodyPush : MonoBehaviour | |
{ | |
public LayerMask PushLayers; | |
public bool CanPush; | |
[Range(0.5f, 5f)] public float Strength = 1.1f; | |
private void OnControllerColliderHit(ControllerColliderHit hit) | |
{ |
NewerOlder