C# Класс OpenRA.Mods.Common.Widgets.Logic.LobbyUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddPlayerFlagAndName ( OpenRA.Widgets.ScrollItemWidget template, System.Net.Player player ) : void
DescriptiveIpAddress ( string ip ) : string
GetExternalIP ( int clientIndex, OrderManager orderManager ) : string
GetSpawnOccupants ( IEnumerable players, MapPreview preview ) : SpawnOccupant>.Dictionary
GetSpawnOccupants ( Session lobbyInfo, MapPreview preview ) : SpawnOccupant>.Dictionary
LatencyColor ( Session ping ) : Color
LatencyDescription ( Session ping ) : string
SelectSpawnPoint ( OrderManager orderManager, OpenRA.Widgets.MapPreviewWidget mapPreview, MapPreview preview, MouseInput mi ) : void
SetupClientWidget ( OpenRA.Widgets.Widget parent, Session c, OrderManager orderManager, bool visible ) : void
SetupColorWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
SetupEditableColorWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, World world, ColorPreviewManagerWidget colorPreview ) : void
SetupEditableFactionWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, LobbyFaction>.Dictionary factions ) : void
SetupEditableNameWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager ) : void
SetupEditableReadyWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, MapPreview map ) : void
SetupEditableSlotWidget ( LobbyLogic logic, OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager ) : void
SetupEditableSpawnWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, MapPreview map ) : void
SetupEditableTeamWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, MapPreview map ) : void
SetupFactionWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, LobbyFaction>.Dictionary factions ) : void
SetupKickSpectatorsWidget ( OpenRA.Widgets.Widget parent, OrderManager orderManager, OpenRA.Widgets.Widget lobby, System.Action before, System.Action after, bool skirmishMode ) : void
SetupKickWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, OpenRA.Widgets.Widget lobby, System.Action before, System.Action after ) : void
SetupNameWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
SetupReadyWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
SetupSlotWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
SetupSpawnWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
SetupTeamWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
ShowColorDropDown ( DropDownButtonWidget color, Session client, OrderManager orderManager, World world, ColorPreviewManagerWidget preview ) : void
ShowFactionDropDown ( DropDownButtonWidget dropdown, Session client, OrderManager orderManager, LobbyFaction>.Dictionary factions ) : void
ShowSlotDropDown ( LobbyLogic logic, DropDownButtonWidget dropdown, Session slot, Session client, OrderManager orderManager ) : void
ShowSpawnDropDown ( DropDownButtonWidget dropdown, Session client, OrderManager orderManager, IEnumerable spawnPoints ) : void
ShowTeamDropDown ( DropDownButtonWidget dropdown, Session client, OrderManager orderManager, int teamCount ) : void

Приватные методы

Метод Описание
SetSpawnPoint ( OrderManager orderManager, Session playerToMove, int selectedSpawn ) : void

Описание методов

AddPlayerFlagAndName() публичный статический Метод

public static AddPlayerFlagAndName ( OpenRA.Widgets.ScrollItemWidget template, System.Net.Player player ) : void
template OpenRA.Widgets.ScrollItemWidget
player System.Net.Player
Результат void

DescriptiveIpAddress() публичный статический Метод

public static DescriptiveIpAddress ( string ip ) : string
ip string
Результат string

GetExternalIP() публичный статический Метод

public static GetExternalIP ( int clientIndex, OrderManager orderManager ) : string
clientIndex int
orderManager OpenRA.Network.OrderManager
Результат string

GetSpawnOccupants() публичный статический Метод

public static GetSpawnOccupants ( IEnumerable players, MapPreview preview ) : SpawnOccupant>.Dictionary
players IEnumerable
preview MapPreview
Результат SpawnOccupant>.Dictionary

GetSpawnOccupants() публичный статический Метод

public static GetSpawnOccupants ( Session lobbyInfo, MapPreview preview ) : SpawnOccupant>.Dictionary
lobbyInfo OpenRA.Network.Session
preview MapPreview
Результат SpawnOccupant>.Dictionary

LatencyColor() публичный статический Метод

public static LatencyColor ( Session ping ) : Color
ping OpenRA.Network.Session
Результат Color

LatencyDescription() публичный статический Метод

public static LatencyDescription ( Session ping ) : string
ping OpenRA.Network.Session
Результат string

SelectSpawnPoint() публичный статический Метод

public static SelectSpawnPoint ( OrderManager orderManager, OpenRA.Widgets.MapPreviewWidget mapPreview, MapPreview preview, MouseInput mi ) : void
orderManager OpenRA.Network.OrderManager
mapPreview OpenRA.Widgets.MapPreviewWidget
preview MapPreview
mi MouseInput
Результат void

SetupClientWidget() публичный статический Метод

public static SetupClientWidget ( OpenRA.Widgets.Widget parent, Session c, OrderManager orderManager, bool visible ) : void
parent OpenRA.Widgets.Widget
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
visible bool
Результат void

SetupColorWidget() публичный статический Метод

public static SetupColorWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
Результат void

SetupEditableColorWidget() публичный статический Метод

public static SetupEditableColorWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, World world, ColorPreviewManagerWidget colorPreview ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
world World
colorPreview ColorPreviewManagerWidget
Результат void

SetupEditableFactionWidget() публичный статический Метод

public static SetupEditableFactionWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, LobbyFaction>.Dictionary factions ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
factions LobbyFaction>.Dictionary
Результат void

SetupEditableNameWidget() публичный статический Метод

public static SetupEditableNameWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
Результат void

SetupEditableReadyWidget() публичный статический Метод

public static SetupEditableReadyWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, MapPreview map ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
map MapPreview
Результат void

SetupEditableSlotWidget() публичный статический Метод

public static SetupEditableSlotWidget ( LobbyLogic logic, OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager ) : void
logic LobbyLogic
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
Результат void

SetupEditableSpawnWidget() публичный статический Метод

public static SetupEditableSpawnWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, MapPreview map ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
map MapPreview
Результат void

SetupEditableTeamWidget() публичный статический Метод

public static SetupEditableTeamWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, MapPreview map ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
map MapPreview
Результат void

SetupFactionWidget() публичный статический Метод

public static SetupFactionWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, LobbyFaction>.Dictionary factions ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
factions LobbyFaction>.Dictionary
Результат void

SetupKickSpectatorsWidget() публичный статический Метод

public static SetupKickSpectatorsWidget ( OpenRA.Widgets.Widget parent, OrderManager orderManager, OpenRA.Widgets.Widget lobby, System.Action before, System.Action after, bool skirmishMode ) : void
parent OpenRA.Widgets.Widget
orderManager OpenRA.Network.OrderManager
lobby OpenRA.Widgets.Widget
before System.Action
after System.Action
skirmishMode bool
Результат void

SetupKickWidget() публичный статический Метод

public static SetupKickWidget ( OpenRA.Widgets.Widget parent, Session s, Session c, OrderManager orderManager, OpenRA.Widgets.Widget lobby, System.Action before, System.Action after ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
lobby OpenRA.Widgets.Widget
before System.Action
after System.Action
Результат void

SetupNameWidget() публичный статический Метод

public static SetupNameWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
Результат void

SetupReadyWidget() публичный статический Метод

public static SetupReadyWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
Результат void

SetupSlotWidget() публичный статический Метод

public static SetupSlotWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
Результат void

SetupSpawnWidget() публичный статический Метод

public static SetupSpawnWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
Результат void

SetupTeamWidget() публичный статический Метод

public static SetupTeamWidget ( OpenRA.Widgets.Widget parent, Session s, Session c ) : void
parent OpenRA.Widgets.Widget
s OpenRA.Network.Session
c OpenRA.Network.Session
Результат void

ShowColorDropDown() публичный статический Метод

public static ShowColorDropDown ( DropDownButtonWidget color, Session client, OrderManager orderManager, World world, ColorPreviewManagerWidget preview ) : void
color DropDownButtonWidget
client OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
world World
preview ColorPreviewManagerWidget
Результат void

ShowFactionDropDown() публичный статический Метод

public static ShowFactionDropDown ( DropDownButtonWidget dropdown, Session client, OrderManager orderManager, LobbyFaction>.Dictionary factions ) : void
dropdown DropDownButtonWidget
client OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
factions LobbyFaction>.Dictionary
Результат void

ShowSlotDropDown() публичный статический Метод

public static ShowSlotDropDown ( LobbyLogic logic, DropDownButtonWidget dropdown, Session slot, Session client, OrderManager orderManager ) : void
logic LobbyLogic
dropdown DropDownButtonWidget
slot OpenRA.Network.Session
client OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
Результат void

ShowSpawnDropDown() публичный статический Метод

public static ShowSpawnDropDown ( DropDownButtonWidget dropdown, Session client, OrderManager orderManager, IEnumerable spawnPoints ) : void
dropdown DropDownButtonWidget
client OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
spawnPoints IEnumerable
Результат void

ShowTeamDropDown() публичный статический Метод

public static ShowTeamDropDown ( DropDownButtonWidget dropdown, Session client, OrderManager orderManager, int teamCount ) : void
dropdown DropDownButtonWidget
client OpenRA.Network.Session
orderManager OpenRA.Network.OrderManager
teamCount int
Результат void