Shift player palette definitions onto the player/client. Needs ui; for now everyone is teal.

This commit is contained in:
Paul Chote
2010-07-16 20:51:20 +12:00
parent 84ac8d9d16
commit 8abc8e03cb
11 changed files with 54 additions and 144 deletions

View File

@@ -148,7 +148,7 @@ namespace OpenRA.Server
new Session.Client()
{
Index = newConn.PlayerIndex,
PaletteIndex = ChooseFreePalette(),
Color = System.Drawing.Color.FromArgb(93,194,165),
Name = "Player {0}".F(1 + newConn.PlayerIndex),
Country = "random",
State = Session.ClientState.NotReady,
@@ -323,6 +323,8 @@ namespace OpenRA.Server
{ "pal",
s =>
{
return true;
/*
int pali;
if (!int.TryParse(s, out pali))
@@ -340,6 +342,7 @@ namespace OpenRA.Server
GetClient(conn).PaletteIndex = pali;
SyncLobbyInfo();
return true;
*/
}},
{ "map",
s =>