コード例 #1
0
		public RaffleEntry( GenericReader reader, int version )
		{
			switch ( version )
			{
				case 0:
				{
					m_From = reader.ReadMobile();
					m_Address = Utility.Intern( reader.ReadIPAddress() );
					m_Date = reader.ReadDateTime();

					break;
				}
			}
		}
コード例 #2
0
ファイル: ShardPoller.cs プロジェクト: zerodowned/angelisland
		public ShardPollOption( GenericReader reader )
		{
			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Title = reader.ReadString();
					m_LineBreaks = GetBreaks( m_Title );

					m_Voters = new IPAddress[reader.ReadInt()];

					for ( int i = 0; i < m_Voters.Length; ++i )
						m_Voters[i] = reader.ReadIPAddress();

					break;
				}
			}
		}
コード例 #3
0
		public Voter( GenericReader reader, Mobile candidate )
		{
			m_Candidate = candidate;

			int version = reader.ReadEncodedInt();

			switch ( version )
			{
				case 0:
				{
					m_From = reader.ReadMobile();
					m_Address = reader.ReadIPAddress();
					m_Time = reader.ReadDateTime();

					break;
				}
			}
		}