1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-17 15:46:33 +09:00

major update; gen 3.5

This commit is contained in:
lidgren
2010-10-19 17:45:55 +00:00
parent baaa5926f8
commit 609bc1afe2
167 changed files with 4065 additions and 9640 deletions

View File

@@ -30,12 +30,12 @@ namespace Lidgren.Network
private static readonly Dictionary<Type, MethodInfo> s_readMethods;
private int m_readPosition;
internal int m_readPosition;
/// <summary>
/// Gets or sets the read position in the buffer, in bits (not bytes)
/// </summary>
public override long Position // override of Stream property
public long Position
{
get { return (long)m_readPosition; }
set { m_readPosition = (int)value; }
@@ -62,7 +62,7 @@ namespace Lidgren.Network
string n = mi.Name.Substring(4);
foreach (Type it in integralTypes)
{
if (it.Name == n && mi.ReturnType.Name == it.Name)
if (it.Name == n)
s_readMethods[it] = mi;
}
}
@@ -83,7 +83,7 @@ namespace Lidgren.Network
//
// 8 bit
//
public new byte ReadByte()
public byte ReadByte()
{
NetException.Assert(m_bitLength - m_readPosition >= 8, c_readOverflowError);
byte retval = NetBitWriter.ReadByte(m_data, 8, m_readPosition);