本文整理汇总了C#中GenericReader.ReadUShort方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadUShort方法的具体用法?C# GenericReader.ReadUShort怎么用?C# GenericReader.ReadUShort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadUShort方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DesignState
public DesignState( HouseFoundation foundation, GenericReader reader )
{
m_Foundation = foundation;
int version = reader.ReadInt();
switch( version )
{
case 0:
{
m_Components = new MultiComponentList( reader );
int length = reader.ReadInt();
m_Fixtures = new MultiTileEntry[length];
for( int i = 0; i < length; ++i )
{
m_Fixtures[i].m_ItemID = reader.ReadUShort();
m_Fixtures[i].m_OffsetX = reader.ReadShort();
m_Fixtures[i].m_OffsetY = reader.ReadShort();
m_Fixtures[i].m_OffsetZ = reader.ReadShort();
m_Fixtures[i].m_Flags = reader.ReadInt();
}
m_Revision = reader.ReadInt();
break;
}
}
}
示例2: PokeString
public PokeString( GenericReader reader )
{
m_PokeChars = new ushort[Length];
for ( int i = 0; i < Length; i++ )
{
m_PokeChars[i] = reader.ReadUShort();
if ( !HasTrash && IsTerminatedAt( i ) )
break;
}
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
this.m_Code = reader.ReadUShort();
this.m_Controller = reader.ReadItem() as LeverPuzzleController;
}
示例4: Deserialize
public void Deserialize( GenericReader reader )
{
m_PokeChar = reader.ReadUShort();
m_Unicode = reader.ReadUShort();
}