Battle Talent  V11
Classes | Static Public Member Functions | Static Public Attributes | List of all members
AwsServices Class Reference

Classes

class  AwsRoom
 
class  CreateRoomInfo
 
class  DSRoomInfo
 
struct  RoomExtraData
 

Static Public Member Functions

static void ClearCacheDBRooms ()
 
static async Task< List< AwsRoom > > ListDBRoom (bool listMR=false)
 
static async Task DBAddRoomItem (string roomId, string hostName="playerHost", string latency="0", string hostPublicIp="", bool canJoin=true, bool isMR=false, int version=0, string versionStr="PC-53-0", string roomName="", int playerCount=1, int maxPlayer=4)
 
static async Task DBUpdateRoomItem (string latency, bool canJoin=true, bool isMR=false, int playerCount=1)
 
static async Task DBUpdateRoomMaxPlayerCount (int maxPlayer=4)
 
static async Task DBUpdateRoomModIds (string idsStr)
 
static async Task DBUpdateRoomMapName (string mapName="Hall")
 
static async Task DBUpdateRoomPassword (string password="")
 
static async Task DBRemoveRoomItem ()
 
static async Task< List< Instance > > ListInstanceAsync (AmazonGameLiftClient awsGameLift, string fleetId, string location)
 
static async Task< List< Instance > > ListInstanceAsync (AmazonGameLiftClient awsGameLift)
 
static async Task< List< GameSession > > ListGameSessionsAsync (AmazonGameLiftClient awsGameLift)
 
static async Task< List< GameSession > > ListGameSessionsAsync (AmazonGameLiftClient awsGameLift, string fleet)
 
static async Task< GameSession > CreateGameSessionAsync (AmazonGameLiftClient awsGameLift, int maxPlayerCount=100, System.Action callback=null)
 
static async Task< GameSession > CreateGameSessionAsync (AmazonGameLiftClient awsGameLift, string fleetId="", string location="us-west-1")
 
static async Task< GameSession > CreateGameSessionAsyncCN (AmazonGameLiftClient awsGameLift, string fleetId="")
 
static async Task< GameSessionPlacement > StartGameSessionPlacement (AmazonGameLiftClient awsGameLift)
 
static async Task StopGameSessionPlacement (AmazonGameLiftClient awsGameLift)
 
static async Task GetGameSessionQueue (AmazonGameLiftClient awsGameLift)
 
static async Task< List< PlayerSession > > ListAllPlayerSessionsAsync (AmazonGameLiftClient awsGameLift)
 
static async Task< List< PlayerSession > > ListPlayerSessionsAsync (AmazonGameLiftClient awsGameLift, string gameSessionId)
 
static async Task< PlayerSession > CreatePlayerSessionAsync (string region, string gameSessionId, string playerId)
 
static async Task< ListFleetsResponse > ListFleetsAsync (AmazonGameLiftClient awsGameLift)
 
static async Task< ListAliasesResponse > ListAliasesAsync (AmazonGameLiftClient awsGameLift)
 
static async Task< ResolveAliasResponse > ResolveAliasAsync (AmazonGameLiftClient awsGameLift, Alias alias)
 
static async Task< CreateRoomInfoAPIGateWayAuthMeta (string nonce, ulong userId, string region, string aliasId, int maxRoomCount)
 
static async Task< CreateRoomInfoAPIGateWayAuthSteam (byte[] ticket, string identity, string region, string aliasId, int maxRoomCount)
 
static async Task< CreateRoomInfoAPIGateWayConnectToServer (string region, string aliasId, int maxRoomCount, string playerId="")
 
static AmazonGameLiftClient SelectGameLiftRegion (RegionEndpoint regionEndpoint)
 
static RegionEndpoint GetGameLiftRegion (AmazonGameLiftClient amazonGameLift)
 
static async Task< int > PingAwsRegion (string awsRegion, float time)
 
static bool GetPingAwsRegionAndroid (string awsRegion, float time, out int pingTime)
 
static async Task< DSRoomInfoAPIGateWayCreateDedicatedServer (string region, string aliasId)
 
static async Task< bool > DBAddDSRoomItem (string roomId, string serverIp="", string hostName="", bool canJoin=true, string versionStr="PC-53-0", string roomName="", int playerCount=1, int maxPlayer=4, string password="", ushort port=7777)
 
static async Task DBRemoveDSRoomItem (string roomId, string serverIp, string hostName)
 
static async Task DBUpdateDSRoomCanJoin (bool canJoin=true)
 
static async Task DBUpdateDSRoomPlayerCount (int playerCount=1)
 
static async Task< List< string > > DBListDSRoomIds ()
 
static async Task DBAddDSRoomId (string roomId, System.Action callback)
 
static async Task DBRemoveDSRoomId (string roomId)
 

Static Public Attributes

static Dictionary< RegionEndpoint, AmazonGameLiftClient > gameLiftClients
 
static bool isDedicatedServer = false
 is dedicatedServer or not More...
 
static RegionEndpoint hostRegion = RegionEndpoint.USWest1
 
static RegionEndpoint manualRegion = null
 
static RegionEndpoint autoRegion = RegionEndpoint.USWest1
 
static int autoRegionIndex = 0
 
static int manualRegionIndex = 0
 
static int createRegionIndex = 0
 
static Dictionary< RegionEndpoint, string > AwsLocationMap
 
static string ReleaseAlias = "ReleaseAlias"
 
static string BackUpAlias = "BackUpAlias"
 
static string DevAlias = "DevAlias"
 
static string DSAlias = "DSAlias"
 
static readonly string devAlias = "-devAlias"
 
static bool editorDevMode = false
 
static AmazonDynamoDBClient dynamoDBClient
 
static int maxRoomCount = 250
 
static string FleetId = ""
 
static string Location = ""
 
static readonly string roomListTableName = "relayserver"
 
static string hostRoomId = ""
 
static string hostPlayerName = ""
 
static string hostRoomName = ""
 
static string versionStr = ""
 
static string hostRoomPassword = ""
 
static string hostMapName = ""
 
static RegionEndpoint serviceRegionEndpoint = RegionEndpoint.USEast1
 
static string GameSessionId = ""
 
static string serverIpAddress = ""
 
static string PlayerSessionId = ""
 
static string GameSessionPlacementId = ""
 
static Dictionary< string, PingAwsDataawsPingRegionDic = new Dictionary<string, PingAwsData>()
 
static AmazonDynamoDBClient dynamoDBDSClient
 
static int Port = -1
 

Member Function Documentation

◆ DBAddDSRoomItem()

static async Task<bool> AwsServices.DBAddDSRoomItem ( string  roomId,
string  serverIp = "",
string  hostName = "",
bool  canJoin = true,
string  versionStr = "PC-53-0",
string  roomName = "",
int  playerCount = 1,
int  maxPlayer = 4,
string  password = "",
ushort  port = 7777 
)
static

server version: version == 0 is old relayserver rooms, version == 1 is dedicatedserver rooms

platform & device, bundle, region version infos, PC-53-0 means PC platform, 53 is bundle version, 0 is region us-east-1(Virginia)

Member Data Documentation

◆ AwsLocationMap

Dictionary<RegionEndpoint, string> AwsServices.AwsLocationMap
static
Initial value:
= new Dictionary<RegionEndpoint, string>()
{
{ RegionEndpoint.USWest1, "us-west-1" },
{ RegionEndpoint.USEast1, "us-east-1" },
{ RegionEndpoint.USWest2, "us-west-2" },
{ RegionEndpoint.USEast2, "us-east-2" },
{ RegionEndpoint.CACentral1, "ca-central-1" },
{ RegionEndpoint.EUCentral1, "eu-central-1" },
{ RegionEndpoint.EUWest2, "eu-west-2" },
{ RegionEndpoint.APSoutheast1, "ap-southeast-1"},
{ RegionEndpoint.APNortheast1, "ap-northeast-1"},
}

◆ gameLiftClients

Dictionary<RegionEndpoint, AmazonGameLiftClient> AwsServices.gameLiftClients
static
Initial value:
= new Dictionary<RegionEndpoint, AmazonGameLiftClient>()
{
{ RegionEndpoint.USEast1, null },
{ RegionEndpoint.USWest1, null },
{ RegionEndpoint.EUCentral1, null },
{ RegionEndpoint.APSoutheast1, null },
}

◆ isDedicatedServer

bool AwsServices.isDedicatedServer = false
static

is dedicatedServer or not