Initial Commit

This commit is contained in:
Sebastian Cabrera 2021-08-02 05:44:37 -04:00
parent 53eb92e9af
commit 270ab7d11f
15341 changed files with 700234 additions and 0 deletions

View file

@ -0,0 +1,25 @@
using System.Collections.Generic;
namespace MLAPI.Connection
{
/// <summary>
/// A NetworkClient
/// </summary>
public class NetworkClient
{
/// <summary>
/// The ClientId of the NetworkClient
/// </summary>
public ulong ClientId;
/// <summary>
/// The PlayerObject of the Client
/// </summary>
public NetworkObject PlayerObject;
/// <summary>
/// The NetworkObject's owned by this Client
/// </summary>
public readonly List<NetworkObject> OwnedObjects = new List<NetworkObject>();
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 23ca4d14911834b41a761c62fb23773e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,29 @@
namespace MLAPI.Connection
{
/// <summary>
/// A class representing a client that is currently in the process of connecting
/// </summary>
public class PendingClient
{
/// <summary>
/// The ClientId of the client
/// </summary>
public ulong ClientId;
/// <summary>
/// The state of the connection process for the client
/// </summary>
public State ConnectionState;
/// <summary>
/// The states of a connection
/// </summary>
public enum State
{
/// <summary>
/// Client is in the process of doing the connection handshake
/// </summary>
PendingConnection
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2ffbc5b303de84a4196e24f503752218
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: