Core: Made stuff public so people (read: openrg) can have its own lobby, based on the core lobby
This commit is contained in:
@@ -80,7 +80,7 @@ namespace OpenRA
|
|||||||
internal static int LocalTick { get { return orderManager.LocalFrameNumber; } }
|
internal static int LocalTick { get { return orderManager.LocalFrameNumber; } }
|
||||||
const int NetTickScale = 3; // 120ms net tick for 40ms local tick
|
const int NetTickScale = 3; // 120ms net tick for 40ms local tick
|
||||||
|
|
||||||
internal static event Action<OrderManager> ConnectionStateChanged = _ => { };
|
public static event Action<OrderManager> ConnectionStateChanged = _ => { };
|
||||||
static ConnectionState lastConnectionState = ConnectionState.PreConnecting;
|
static ConnectionState lastConnectionState = ConnectionState.PreConnecting;
|
||||||
public static int LocalClientId { get { return orderManager.Connection.LocalClientId; } }
|
public static int LocalClientId { get { return orderManager.Connection.LocalClientId; } }
|
||||||
|
|
||||||
@@ -152,8 +152,8 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static event Action LobbyInfoChanged = () => { };
|
public static event Action LobbyInfoChanged = () => { };
|
||||||
internal static event Action ConnectedToLobby = () => { };
|
public static event Action ConnectedToLobby = () => { };
|
||||||
|
|
||||||
internal static void SyncLobbyInfo()
|
internal static void SyncLobbyInfo()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using OpenRA.Graphics;
|
|||||||
|
|
||||||
namespace OpenRA.Widgets
|
namespace OpenRA.Widgets
|
||||||
{
|
{
|
||||||
class CheckboxWidget : Widget
|
public class CheckboxWidget : Widget
|
||||||
{
|
{
|
||||||
public string Text = "";
|
public string Text = "";
|
||||||
public int baseLine = 1;
|
public int baseLine = 1;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using OpenRA.Graphics;
|
|||||||
|
|
||||||
namespace OpenRA.Widgets
|
namespace OpenRA.Widgets
|
||||||
{
|
{
|
||||||
class ColorBlockWidget : Widget
|
public class ColorBlockWidget : Widget
|
||||||
{
|
{
|
||||||
public Func<Color> GetColor;
|
public Func<Color> GetColor;
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ using OpenRA.Graphics;
|
|||||||
|
|
||||||
namespace OpenRA.Widgets
|
namespace OpenRA.Widgets
|
||||||
{
|
{
|
||||||
class MapPreviewWidget : Widget
|
public class MapPreviewWidget : Widget
|
||||||
{
|
{
|
||||||
public int SpawnClickRadius = 50;
|
public int SpawnClickRadius = 50;
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ using OpenRA.Graphics;
|
|||||||
|
|
||||||
namespace OpenRA.Widgets
|
namespace OpenRA.Widgets
|
||||||
{
|
{
|
||||||
class TextFieldWidget : Widget
|
public class TextFieldWidget : Widget
|
||||||
{
|
{
|
||||||
public string Text = "";
|
public string Text = "";
|
||||||
public int MaxLength = 0;
|
public int MaxLength = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user