⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gametime.cpp

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 CPP
字号:
//--------------------------------------------------------------------------------//// Filename    : GameTime.cpp// Written By  : Reiot////--------------------------------------------------------------------------------// include files#include "GameTime.h"//--------------------------------------------------------------------------------// read from socket input stream//--------------------------------------------------------------------------------void GameTime::read ( SocketInputStream & iStream ) 	throw ( ProtocolException , Error ){	__BEGIN_TRY	iStream.read( m_Year );	iStream.read( m_Month );	iStream.read( m_Day );	iStream.read( m_Hour );	iStream.read( m_Minute );	iStream.read( m_Second );	__END_CATCH}//--------------------------------------------------------------------------------// write to socket output stream//--------------------------------------------------------------------------------void GameTime::write ( SocketOutputStream & oStream ) const	throw ( ProtocolException , Error ){	__BEGIN_TRY	oStream.write( m_Year );	oStream.write( m_Month );	oStream.write( m_Day );	oStream.write( m_Hour );	oStream.write( m_Minute );	oStream.write( m_Second );	__END_CATCH}//--------------------------------------------------------------------------------// get debug string//--------------------------------------------------------------------------------string GameTime::toString () const 	throw () {	StringStream msg;	msg << (int)m_Year << "斥 " << (int)m_Month << "岿 " << (int)m_Day << "老 " << (int)m_Hour << "矫 " << (int)m_Minute << "盒 " << (int)m_Second << "檬";	return msg.toString();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -