本文整理汇总了C#中Server.GenericReader.ReadUInt方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadUInt方法的具体用法?C# GenericReader.ReadUInt怎么用?C# GenericReader.ReadUInt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadUInt方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Boat = reader.ReadItem() as BaseBoat;
m_Side = (PlankSide) reader.ReadInt();
m_Locked = reader.ReadBool();
m_KeyValue = reader.ReadUInt();
if ( m_Boat == null )
Delete();
break;
}
}
if ( IsOpen )
{
m_CloseTimer = new CloseTimer( this );
m_CloseTimer.Start();
}
}
示例2: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
case 0:
{
m_MultiID = reader.ReadInt();
m_Offset = reader.ReadPoint3D();
m_ShipName = reader.ReadString();
if ( version == 0 )
reader.ReadUInt();
break;
}
}
if ( LootType == LootType.Newbied )
LootType = LootType.Blessed;
if ( Weight == 0.0 )
Weight = 1.0;
}
示例3: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
{
m_Locked = reader.ReadBool();
m_KeyValue = reader.ReadUInt();
break;
}
}
if (!Deleted && IsOpen)
{
m_CloseTimer = new CloseTimer(this);
m_CloseTimer.Start();
}
}
示例4: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadEncodedInt();
m_Combination = reader.ReadString();
m_Area = reader.ReadString();
m_Design = DesignTypes.FindDesign( reader.ReadString() );
m_NormalHue = reader.ReadInt();
m_ActivateHue = reader.ReadInt();
m_DeactivateHue = reader.ReadInt();
m_StartingPos = reader.ReadUInt();
m_Reversed = reader.ReadBool();
m_DropChance = reader.ReadDouble();
m_GateHue = reader.ReadInt();
}
示例5: Deserialize
//.........这里部分代码省略.........
{
m_VendorRentalContracts = new ArrayList();
m_InternalizedVendors = new ArrayList();
}
if ( version < 4 )
m_Addons = new ArrayList();
if ( version < 7 )
m_Access = new ArrayList();
if ( version < 8 )
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
if ( version < 5 )
{
count = reader.ReadInt();
for(int i=0;i<count;i++)
reader.ReadRect2D();
}
UpdateRegion();
m_CoOwners = reader.ReadMobileList();
m_Friends = reader.ReadMobileList();
m_Bans = reader.ReadMobileList();
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Chest = reader.ReadItem() as TentChest;
m_KeyOwner = reader.ReadUInt();
m_SmallForge = reader.ReadItem() as SmallForgeAddon;
m_LargeForge = reader.ReadItem() as LargeForgeSouthHouseAddon;
m_Anvil = reader.ReadItem() as AnvilEastAddon;
m_Loom = reader.ReadItem() as LoomSouthAddon;
m_SpinningWheel1 = reader.ReadItem() as SpinningwheelEastAddon;
m_SpinningWheel2 = reader.ReadItem() as SpinningwheelSouthAddon;
m_Oven = reader.ReadItem() as StoneOvenSouthAddon;
m_Fireplace = reader.ReadItem() as GrayBrickFireplaceSouthAddon;
m_Mill = reader.ReadItem() as FlourMillSouthAddon;
m_Training1 = reader.ReadItem() as TrainingDummyEastAddon;
m_Training2 = reader.ReadItem() as TrainingDummySouthAddon;
m_Pick1 = reader.ReadItem() as PickpocketDipEastAddon;
m_Pick2 = reader.ReadItem() as PickpocketDipSouthAddon;
m_Doors = reader.ReadItemList();
m_LockDowns = reader.ReadItemList();
for ( int i = 0; i < m_LockDowns.Count; ++i )
((Item)m_LockDowns[i]).IsLockedDown = true;
for ( int i = 0; i < m_VendorRentalContracts.Count; ++i )
((Item)m_VendorRentalContracts[i]).IsLockedDown = true;
if ( version < 3 )
{
ArrayList items = reader.ReadItemList();
m_Secures = new ArrayList( items.Count );
for ( int i = 0; i < items.Count; ++i )
{
Container c = items[i] as Container;
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
case 1:
{
key_KeyVal = reader.ReadUInt();
key_Description = reader.ReadString();
key_Max = reader.ReadInt();
key_Delay = TimeSpan.Parse(reader.ReadString());
i_Door = reader.ReadItem();
goto case 0;
}
case 0:
{
m_WalkingRange = reader.ReadInt();
m_WayPoint = reader.ReadItem() as WayPoint;
m_MinDelay = reader.ReadTimeSpan();
m_MaxDelay = reader.ReadTimeSpan();
m_Count = reader.ReadInt();
m_Team = reader.ReadInt();
m_HomeRange = reader.ReadInt();
m_Running = reader.ReadBool();
if (version == 1)
m_WalkingRange = m_HomeRange;
TimeSpan ts = TimeSpan.Zero;
if ( m_Running )
ts = reader.ReadDeltaTime() - DateTime.Now;
int size = reader.ReadInt();
m_CreaturesName = new ArrayList( size );
for ( int i = 0; i < size; ++i )
{
string typeName = reader.ReadString();
m_CreaturesName.Add( typeName );
if ( SpawnerType.GetType( typeName ) == null )
{
if ( m_WarnTimer == null )
m_WarnTimer = new gWarnTimer();
m_WarnTimer.Add( Location, Map, typeName );
}
}
int count = reader.ReadInt();
m_Creatures = new ArrayList( count );
for ( int i = 0; i < count; ++i )
{
IEntity e = World.FindEntity( reader.ReadInt() );
if ( e != null )
m_Creatures.Add( e );
}
if ( m_Running )
DoTimer( ts );
break;
}
}
}
示例7: BaseAttributes
public BaseAttributes( Item owner, GenericReader reader )
{
m_Owner = owner;
int version = reader.ReadByte();
switch( version )
{
case 1:
{
m_Names = reader.ReadUInt();
m_Values = new int[reader.ReadEncodedInt()];
for( int i = 0; i < m_Values.Length; ++i )
m_Values[i] = reader.ReadEncodedInt();
break;
}
case 0:
{
m_Names = reader.ReadUInt();
m_Values = new int[reader.ReadInt()];
for( int i = 0; i < m_Values.Length; ++i )
m_Values[i] = reader.ReadInt();
break;
}
}
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Region = new HouseRegion( this );
switch ( version )
{
case 0:
{
m_KeyValue = reader.ReadUInt();
m_Visits = reader.ReadInt();
m_Price = reader.ReadInt();
m_BuiltOn = reader.ReadDateTime();
m_LastTraded = reader.ReadDateTime();
m_Public = reader.ReadBool();
m_Region.GoLocation = reader.ReadPoint3D();
if ( version < 8 )
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
UpdateRegionArea();
Region.AddRegion( m_Region );
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Doors = reader.ReadItemList();
m_Addons = reader.ReadItemList();
if ( (Map == null || Map == Map.Internal) && Location == Point3D.Zero )
Delete();
break;
}
}
}
示例9: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 0:
m_KeyValue = reader.ReadUInt();
break;
}
}
示例10: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 0:
{
m_Owner = reader.ReadItem() as BaseHouse;
m_OrgOwner = reader.ReadMobile();
m_KeyOwner = reader.ReadUInt();
break;
}
}
if ( this.Name == "a house sign" )
this.Name = null;
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Combination = reader.ReadString();
m_Area = reader.ReadString();
m_Design = DesignTypes.FindDesign( reader.ReadString() );
m_StartingPos = reader.ReadUInt();
m_Reversed = reader.ReadBool();
}
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 5:
{
m_MultiID = reader.ReadInt();
m_Offset = reader.ReadPoint3D();
m_ShipName = reader.ReadString();
m_BoatItem = reader.ReadItem() as BaseBoat;
break;
}
case 4:
{
switch (reader.ReadInt())
{
default:
case 0: break;
case 1: m_PilotEntry = new PilotEntry(reader);
break;
}
goto case 3;
}
case 3:
{
m_BaseHue = reader.ReadInt();
if(version < 5)
reader.ReadItem();
reader.ReadItem();
m_Owner = reader.ReadMobile();
goto case 2;
}
case 2:
{
switch (reader.ReadInt())
{
default:
case 0: break;
case 1: m_SecurityEntry = new SecurityEntry(null, reader);
break;
}
goto case 1;
}
case 1:
case 0:
{
m_MultiID = reader.ReadInt();
m_Offset = reader.ReadPoint3D();
m_ShipName = reader.ReadString();
if ( version == 0 )
reader.ReadUInt();
break;
}
}
if ( LootType == LootType.Newbied )
LootType = LootType.Blessed;
if ( Weight == 0.0 )
Weight = 1.0;
}
示例13: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
case 0:
{
m_MultiID = reader.ReadInt();
m_Offset = reader.ReadPoint3D();
m_ShipName = reader.ReadString();
if ( version == 0 )
reader.ReadUInt();
break;
}
}
}