本文整理汇总了C#中Server.GenericReader.ReadString方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadString方法的具体用法?C# GenericReader.ReadString怎么用?C# GenericReader.ReadString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericReader
的用法示例。
在下文中一共展示了GenericReader.ReadString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int entryCount = reader.ReadInt();
for (int i = 0; i < entryCount; i++)
m_SystemEntries.Add(new SlayerSystemTracker(reader.ReadString(), reader.ReadInt(), reader.ReadString()));
if (Owner is Mobile)
{
Mobile player = (Mobile)Owner;
SlayerModule module = player.GetModule(typeof(SlayerModule)) as SlayerModule;
if (module == null)
module = new SlayerModule(player);
foreach (SlayerSystemTracker entry in m_SystemEntries)
module.SetSlayerCount(entry.SystemName, entry.SlayerCount);
Delete();
}
}
示例2: VendorInventory
public VendorInventory( BaseHouse house, GenericReader reader )
{
m_House = house;
int version = reader.ReadEncodedInt();
m_Owner = reader.ReadMobile();
m_VendorName = reader.ReadString();
m_ShopName = reader.ReadString();
m_Items = reader.ReadStrongItemList();
m_Gold = reader.ReadInt();
m_ExpireTime = reader.ReadDeltaTime();
if ( m_Items.Count == 0 && m_Gold == 0 )
{
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) );
}
else
{
TimeSpan delay = m_ExpireTime - DateTime.UtcNow;
m_ExpireTimer = new ExpireTimer( this, delay > TimeSpan.Zero ? delay : TimeSpan.Zero );
m_ExpireTimer.Start();
}
}
示例3: 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;
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
string name = reader.ReadString();
if ( name != null && name.Length > 0 )
{
try
{
m_Contains = Type.GetType( name );
}
catch
{
m_Contains = null;
}
}
goto case 0;
}
case 0:
{
break;
}
}
}
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 1:
{
reader.ReadInt();
reader.ReadInt();
reader.ReadInt();
//this.m_TextColor = reader.ReadInt();
//this.m_TitleColor = reader.ReadInt();
//this.m_size = reader.ReadInt();
}
break;
case 0:
{
reader.ReadString();
reader.ReadString();
reader.ReadInt();
reader.ReadInt();
reader.ReadInt();
//this.NoteString = reader.ReadString();
//this.TitleString = reader.ReadString();
//this.m_TextColor = reader.ReadInt();
//this.m_TitleColor = reader.ReadInt();
//this.m_size = reader.ReadInt();
}
break;
}
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_MapMarkerNameAddon = reader.ReadString();
m_MapMarkerNote = reader.ReadString();
}
示例7: VendorEntry
public VendorEntry( GenericReader reader )
{
int version = reader.ReadInt();
m_TypeName = reader.ReadString();
m_Price = reader.ReadInt();
m_Remove = reader.ReadBool();
if( version > 0 )
m_ItemName = reader.ReadString();
}
示例8: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
int entryCount = reader.ReadInt();
for (int i = 0; i < entryCount; i++)
SystemEntries.Add(new SlayerSystemTracker(reader.ReadString(), reader.ReadInt(), reader.ReadString()));
}
示例9: Load
public void Load(GenericReader reader)
{
int version = reader.ReadInt();
c_Text = reader.ReadString();
c_Name = reader.ReadString();
c_Gump = reader.ReadBool();
c_AntiMacro = reader.ReadBool();
c_Recur = reader.ReadTimeSpan();
StartNotify();
}
示例10: Load
public void Load( GenericReader reader )
{
int version = reader.ReadInt();
if ( version >= 1 )
{
c_Hue = reader.ReadInt();
c_Name = reader.ReadString();
}
c_TypeString = reader.ReadString();
c_ItemID = reader.ReadInt();
c_Location = reader.ReadPoint3D();
c_Map = reader.ReadMap();
}
示例11: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Winner = reader.ReadString();
m_Loser = reader.ReadString();
m_GameEnd = reader.ReadDateTime();
m_GameTime = reader.ReadTimeSpan();
m_WinnerTime = reader.ReadTimeSpan();
m_LoserTime = reader.ReadTimeSpan();
m_WinnerScore = reader.ReadInt();
m_LoserScore = reader.ReadInt();
}
示例12: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 1:
m_Condition = reader.ReadString();
goto case 0;
case 0:
m_Action = reader.ReadString();
break;
}
}
示例13: Deserialize
public void Deserialize( GenericReader reader )
{
int versao = reader.ReadInt();
int numPropriedades = reader.ReadInt();
//Console.WriteLine( "num propriedades: {0}", numpropriedades);
//recuperas os objectivos
propriedades = new Hashtable();
for(int i = 0; i < numPropriedades; i++) {
string chave = reader.ReadString();
string valor = reader.ReadString();
propriedades.Add(chave, valor);
}
}
示例14: Deserialize
public void Deserialize( GenericReader reader )
{
int version = reader.ReadInt();
switch( version )
{
case 1:
{
m_SpellType = ScriptCompiler.FindTypeByName(reader.ReadString());
m_Icon = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_School = (School)reader.ReadInt();
break;
}
case 0:
{
int bad = reader.ReadInt();
m_Icon = reader.ReadInt();
m_Location = reader.ReadPoint3D();
m_SpellType = null;
m_School = School.Invalid;
break;
}
}
}
示例15: DeathEntry
public DeathEntry( GenericReader reader )
{
int version = reader.ReadByte();
m_Name = reader.ReadString();
m_Deaths = reader.ReadInt();
}