aha
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
namespace Edgegap
|
||||
{
|
||||
// https://docs.edgegap.com/docs/lobby/functions#functions
|
||||
[Serializable]
|
||||
public struct ListLobbiesResponse
|
||||
{
|
||||
public int count;
|
||||
public LobbyBrief[] data;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdb37041d9464f8c90ac86942b940565
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/ListLobbiesResponse.cs
|
||||
uploadId: 736421
|
@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
namespace Edgegap
|
||||
{
|
||||
// https://docs.edgegap.com/docs/lobby/functions#getting-a-specific-lobbys-information
|
||||
[Serializable]
|
||||
public struct Lobby
|
||||
{
|
||||
[Serializable]
|
||||
public struct Player
|
||||
{
|
||||
public uint authorization_token;
|
||||
public string id;
|
||||
public bool is_host;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct Port
|
||||
{
|
||||
public string name;
|
||||
public int port;
|
||||
public string protocol;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct Assignment
|
||||
{
|
||||
public uint authorization_token;
|
||||
public string host;
|
||||
public string ip;
|
||||
public Port[] ports;
|
||||
}
|
||||
|
||||
public Assignment assignment;
|
||||
public string name;
|
||||
public string lobby_id;
|
||||
public bool is_joinable;
|
||||
public bool is_started;
|
||||
public int player_count;
|
||||
public int capacity;
|
||||
public int available_slots => capacity - player_count;
|
||||
public string[] tags;
|
||||
public Player[] players;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 64db55f096cd4ace83e1aa1c0c0588f7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/Lobby.cs
|
||||
uploadId: 736421
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
namespace Edgegap
|
||||
{
|
||||
// Brief lobby data, returned by the list function
|
||||
[Serializable]
|
||||
public struct LobbyBrief
|
||||
{
|
||||
public string lobby_id;
|
||||
public string name;
|
||||
public bool is_joinable;
|
||||
public bool is_started;
|
||||
public int player_count;
|
||||
public int capacity;
|
||||
public int available_slots => capacity - player_count;
|
||||
public string[] tags;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6018ece006144e719c6b3f0d4e256d7b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/LobbyBrief.cs
|
||||
uploadId: 736421
|
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
namespace Edgegap
|
||||
{
|
||||
// https://docs.edgegap.com/docs/lobby/functions#creating-a-new-lobby
|
||||
[Serializable]
|
||||
public struct LobbyCreateRequest
|
||||
{
|
||||
[Serializable]
|
||||
public struct Player
|
||||
{
|
||||
public string id;
|
||||
}
|
||||
[Serializable]
|
||||
public struct Annotation
|
||||
{
|
||||
public bool inject;
|
||||
public string key;
|
||||
public string value;
|
||||
}
|
||||
public Annotation[] annotations; // todo
|
||||
public int capacity;
|
||||
public bool is_joinable;
|
||||
public string name;
|
||||
public Player player;
|
||||
public string[] tags;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4040c1adafc3449eaebd3bd22aa3ff26
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/LobbyCreateRequest.cs
|
||||
uploadId: 736421
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
namespace Edgegap
|
||||
{
|
||||
// https://docs.edgegap.com/docs/lobby/functions/#starting-a-lobby
|
||||
[Serializable]
|
||||
public struct LobbyIdRequest
|
||||
{
|
||||
public string lobby_id;
|
||||
public LobbyIdRequest(string lobbyId)
|
||||
{
|
||||
lobby_id = lobbyId;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 219c7fba8724473caf170c6254e6dc45
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/LobbyIdRequest.cs
|
||||
uploadId: 736421
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
namespace Edgegap
|
||||
{
|
||||
// https://docs.edgegap.com/docs/lobby/functions#updating-a-lobby
|
||||
// https://docs.edgegap.com/docs/lobby/functions#leaving-a-lobby
|
||||
[Serializable]
|
||||
public struct LobbyJoinOrLeaveRequest
|
||||
{
|
||||
[Serializable]
|
||||
public struct Player
|
||||
{
|
||||
public string id;
|
||||
}
|
||||
public string lobby_id;
|
||||
public Player player;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4091d555e62341f0ac30479952d517aa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/LobbyJoinOrLeaveRequest.cs
|
||||
uploadId: 736421
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
namespace Edgegap
|
||||
{
|
||||
// https://docs.edgegap.com/docs/lobby/functions#updating-a-lobby
|
||||
[Serializable]
|
||||
public struct LobbyUpdateRequest
|
||||
{
|
||||
public int capacity;
|
||||
public bool is_joinable;
|
||||
public string[] tags;
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee158bc379f44cdf9904578f37a5e7a4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: 3ea6ff15cda674a57b0c7c8b7dc1878c, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 129321
|
||||
packageName: Mirror
|
||||
packageVersion: 96.0.1
|
||||
assetPath: Assets/Mirror/Transports/Edgegap/EdgegapLobby/Models/LobbyUpdateRequest.cs
|
||||
uploadId: 736421
|
Reference in New Issue
Block a user