Core: Made stuff public so people (read: openrg) can have its own lobby, based on the core lobby

This commit is contained in:
geckosoft
2010-10-26 00:58:26 +02:00
committed by Chris Forbes
parent 9b3533abc0
commit 380e7e8b20
5 changed files with 7 additions and 7 deletions

View File

@@ -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()
{ {

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;