Added command 10, and added tweening for ScreneNetEvaluation.

This commit is contained in:
Charles Lohr
2004-09-03 15:33:00 +00:00
parent 3326f6579e
commit 34d10acdb9
4 changed files with 35 additions and 4 deletions
+20
View File
@@ -11,6 +11,7 @@ NetworkSyncManager::~NetworkSyncManager () { }
void NetworkSyncManager::CloseConnection() { }
void NetworkSyncManager::PostStartUp( CString ServerIP ) { }
bool NetworkSyncManager::Connect(const CString& addy, unsigned short port) { return false; }
void NetworkSyncManager::ReportNSSOnOff(int i) { }
void NetworkSyncManager::ReportTiming(float offset, int PlayerNumber) { }
void NetworkSyncManager::ReportScore(int playerID, int step, int score, int combo) { }
void NetworkSyncManager::ReportSongOver() { }
@@ -35,6 +36,7 @@ void NetworkSyncManager::SelectUserSong() { }
#include "PrefsManager.h"
#include "ProductInfo.h"
#include "ScreenMessage.h"
#include "GameManager.h"
#include "arch/LoadingWindow/LoadingWindow.h"
const ScreenMessage SM_AddToChat = ScreenMessage(SM_User+4);
@@ -242,6 +244,12 @@ bool NetworkSyncManager::Listen(unsigned short port)
return useSMserver;
}
void NetworkSyncManager::ReportNSSOnOff(int i)
{
m_packet.ClearPacket();
m_packet.Write1( 10 );
m_packet.Write1( i );
}
void NetworkSyncManager::ReportTiming(float offset, int PlayerNumber)
{
@@ -618,6 +626,18 @@ void NetworkSyncManager::ProcessInput()
}
}
break;
case 10:
{
CString StyleName, GameName;
GameName = m_packet.ReadNT();
StyleName = m_packet.ReadNT();
GAMESTATE->m_pCurGame = GAMEMAN->StringToGameType( GameName );
GAMESTATE->m_pCurStyle = GAMEMAN->GameAndStringToStyle( GAMESTATE->m_pCurGame, StyleName );
SCREENMAN->SetNewScreen( "ScreenNetSelectMusic" ); //Should this be metric'd out?
}
break;
}
m_packet.ClearPacket();
}