本文整理汇总了C#中Server.Engines.BulkOrders.BOBFilter类的典型用法代码示例。如果您正苦于以下问题:C# BOBFilter类的具体用法?C# BOBFilter怎么用?C# BOBFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BOBFilter类属于Server.Engines.BulkOrders命名空间,在下文中一共展示了BOBFilter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BulkOrderBook
public BulkOrderBook() : base( 0x2259 )
{
Weight = 1.0;
LootType = LootType.Blessed;
m_Entries = new ArrayList();
m_Filter = new BOBFilter();
m_Level = SecureLevel.CoOwners;
}
示例2: Deserialize
//.........这里部分代码省略.........
{
Type questType = QuestSerializer.ReadType( QuestSystem.QuestTypes, reader );
DateTime restartTime;
if ( version < 17 )
restartTime = DateTime.MaxValue;
else
restartTime = reader.ReadDateTime();
m_DoneQuests.Add( new QuestRestartInfo( questType, restartTime ) );
}
}
Profession = reader.ReadEncodedInt();
goto case 15;
}
case 15:
{
m_LastCompassionLoss = reader.ReadDeltaTime();
goto case 14;
}
case 14:
{
m_CompassionGains = reader.ReadEncodedInt();
if ( m_CompassionGains > 0 )
m_NextCompassionDay = reader.ReadDeltaTime();
goto case 13;
}
case 13: // just removed m_PayedInsurance list
case 12:
{
m_BOBFilter = new BOBFilter( reader );
goto case 11;
}
case 11:
{
if ( version < 13 )
{
List<Item> payed = reader.ReadStrongItemList();
for ( int i = 0; i < payed.Count; ++i )
payed[i].PayedInsurance = true;
}
goto case 10;
}
case 10:
{
if ( reader.ReadBool() )
{
m_HairModID = reader.ReadInt();
m_HairModHue = reader.ReadInt();
m_BeardModID = reader.ReadInt();
m_BeardModHue = reader.ReadInt();
}
goto case 9;
}
case 9:
{
SavagePaintExpiration = reader.ReadTimeSpan();
if ( SavagePaintExpiration > TimeSpan.Zero )
{
示例3: BODModule
public BODModule( Serial serial ) : base( serial )
{
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
}
示例4: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch( version )
{
/* case 2:
{
Hallucinating = ( bool )reader.ReadBool();
goto case 1;
}*/
case 1:
{
IsMarried = ( bool )reader.ReadBool();
m_AllowGayMarriages = ( bool )reader.ReadBool();
m_AllowCelestialMarriages = ( bool )reader.ReadBool();
m_MarriageTime = reader.ReadDateTime();
m_WifeLoc = reader.ReadPoint3D();
m_HusbandLoc = reader.ReadPoint3D();
m_MaritalStatus = ( MaritalStatus )reader.ReadInt();
m_TypeOfMarriage = ( TypeOfMarriage )reader.ReadInt();
m_FirstName = ( string )reader.ReadString();
m_LastName = ( string )reader.ReadString();
m_MaidenName = ( string )reader.ReadString();
m_RankPoints = reader.ReadInt();
/*GD13_HS_Start_5*/
m_HuntMode = ( HuntMode )reader.ReadInt();
m_HuntRank = ( HuntRank )reader.ReadInt();
m_HuntReward = ( HuntReward )reader.ReadInt();
m_Hunting = ( bool )reader.ReadBool();
m_EasyKills = reader.ReadInt();
m_HardKills = reader.ReadInt();
m_ExtremeKills = reader.ReadInt();
m_GodKills = reader.ReadInt();
/*GD13_HS_End_5*/
goto case 0;
}
case 0:
{
m_Class = ( PlayerClasses )reader.ReadInt();
m_Race = ( PlayerRaces )reader.ReadInt();
m_Tribe = ( PlayerTribes )reader.ReadInt();
m_Rank = ( PlayerRanks )reader.ReadInt();
m_RewardsClaimed = reader.ReadInt();
m_Level = reader.ReadInt();
m_SkillPts = reader.ReadInt();
m_Experience = reader.ReadInt();
m_Age = reader.ReadInt();
m_NextLevelUp = reader.ReadInt();
m_Updated = reader.ReadBool();
m_Bioenginer = reader.ReadBool();
NextSmithBulkOrder = reader.ReadTimeSpan();
NextTailorBulkOrder = reader.ReadTimeSpan();
//NextFletcherBulkOrder = reader.ReadTimeSpan();
//NextCarpenterBulkOrder = reader.ReadTimeSpan();
//NextTinkerBulkOrder = reader.ReadTimeSpan();
//NextTamingBulkOrder = reader.ReadTimeSpan();
m_BOBFilter = new Engines.BulkOrders.BOBFilter( reader );
//m_TinkBOBFilter = new Engines.BulkOrders.TinkBOBFilter( reader );
//m_TamingBOBFilter = new Engines.BulkOrders.TamingBOBFilter( reader );
m_Flags = (MyPlayerFlag)reader.ReadInt();
break;
}
}
if ( m_BOBFilter == null )
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
/* if ( m_TinkBOBFilter == null )
m_TinkBOBFilter = new Engines.BulkOrders.TinkBOBFilter();
if ( m_TamingBOBFilter == null )
m_TamingBOBFilter = new Engines.BulkOrders.TamingBOBFilter();*/
}
示例5: PlayerMobile
public PlayerMobile()
{
#region GeNova: Mondain's Legacy
m_Quests = new List<BaseQuest>();
m_Chains = new Dictionary<QuestChain, BaseChain>();
m_DoneQuests = new List<QuestRestartInfo>();
m_Collections = new Dictionary<Collection, int>();
m_CollectionTitles = new List<object>();
m_Peaced = DateTime.Now;
#endregion
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = TimeSpan.FromHours(8.0);
m_LongTermElapse = TimeSpan.FromHours(40.0);
m_JusticeProtectors = new List<Mobile>();
m_GuildRank = Guilds.RankDefinition.Lowest;
m_ChampionTitles = new ChampionTitleInfo();
InvalidateMyRunUO();
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 2:
{
m_ItemCount = reader.ReadInt();
goto case 1;
}
case 1:
{
m_Level = (SecureLevel)reader.ReadInt();
goto case 0;
}
case 0:
{
m_BookName = reader.ReadString();
m_Filter = new BOBFilter( reader );
int count = reader.ReadEncodedInt();
m_Entries = new ArrayList( count );
for ( int i = 0; i < count; ++i )
{
int v = reader.ReadEncodedInt();
switch ( v )
{
case 0: m_Entries.Add( new BOBLargeEntry( reader ) ); break;
case 1: m_Entries.Add( new BOBSmallEntry( reader ) ); break;
}
}
break;
}
}
}
示例7: PlayerMobile
public PlayerMobile()
{
m_AutoStabled = new List<Mobile>();
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = TimeSpan.FromHours(8.0);
m_LongTermElapse = TimeSpan.FromHours(40.0);
m_JusticeProtectors = new List<Mobile>();
m_GuildRank = Guilds.RankDefinition.Lowest;
m_ChampionTitles = new ChampionTitleInfo();
InvalidateMyRunUO();
}
示例8: PlayerMobile
public PlayerMobile(Serial s)
: base(s)
{
AllFollowers = new List<Mobile>();
AutoStabled = new List<Mobile>();
RecentlyReported = new List<Mobile>();
SkillGainMods = new List<SkillGainMod>();
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
BOBFilter = new BOBFilter();
ChampionTitles = new ChampionTitleInfo();
Learning = (SkillName)(-1);
LastHelped = DateTime.MinValue;
StatEnd = DateTime.MinValue;
EventMsgFlag = true;
//InvalidateLegends();
}
示例9: PlayerMobile
public PlayerMobile()
{
m_AllyList = new List<Mobile>();
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = TimeSpan.FromHours( 8.0 );
m_LongTermElapse = TimeSpan.FromHours( 40.0 );
m_JusticeProtectors = new List<Mobile>();
m_GuildRank = Guilds.RankDefinition.Lowest;
m_ChampionTitles = new ChampionTitleInfo();
m_CrimesList = new Dictionary<Mobiles.Nation, int>();
m_CrimesList.Add(Nation.Alyrian, 0);
m_CrimesList.Add(Nation.Azhuran, 0);
m_CrimesList.Add(Nation.Khemetar, 0);
m_CrimesList.Add(Nation.Mhordul, 0);
m_CrimesList.Add(Nation.Tyrean, 0);
m_CrimesList.Add(Nation.Vhalurian, 0);
m_CrimesList.Add(Nation.Imperial, 0);
m_CrimesList.Add(Nation.Sovereign, 0);
m_CrimesList.Add(Nation.Society, 0);
m_CrimesList.Add(Nation.Insularii, 0);
InvalidateMyRunUO();
}
示例10: Deserialize
//.........这里部分代码省略.........
{
Type questType = QuestSerializer.ReadType( QuestSystem.QuestTypes, reader );
DateTime restartTime;
if ( version < 17 )
restartTime = DateTime.MaxValue;
else
restartTime = reader.ReadDateTime();
m_DoneQuests.Add( new QuestRestartInfo( questType, restartTime ) );
}
}
m_Profession = reader.ReadEncodedInt();
goto case 15;
}
case 15:
{
m_LastCompassionLoss = reader.ReadDeltaTime();
goto case 14;
}
case 14:
{
m_CompassionGains = reader.ReadEncodedInt();
if ( m_CompassionGains > 0 )
m_NextCompassionDay = reader.ReadDeltaTime();
goto case 13;
}
case 13: // just removed m_PayedInsurance list
case 12:
{
m_BOBFilter = new Engines.BulkOrders.BOBFilter( reader );
goto case 11;
}
case 11:
{
if ( version < 13 )
{
List<Item> payed = reader.ReadStrongItemList();
for ( int i = 0; i < payed.Count; ++i )
payed[i].PayedInsurance = true;
}
goto case 10;
}
case 10:
{
if ( reader.ReadBool() )
{
m_HairModID = reader.ReadInt();
m_HairModHue = reader.ReadInt();
m_BeardModID = reader.ReadInt();
m_BeardModHue = reader.ReadInt();
// We cannot call SetHairMods( -1, -1 ) here because the items have not yet loaded
Timer.DelayCall( TimeSpan.Zero, new TimerCallback( RevertHair ) );
}
goto case 9;
}
case 9:
{
SavagePaintExpiration = reader.ReadTimeSpan();
示例11: PlayerMobile
public PlayerMobile()
{
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = TimeSpan.FromHours( 8.0 );
m_LongTermElapse = TimeSpan.FromHours( 40.0 );
InvalidateMyRunUO();
}
示例12: Deserialize
//.........这里部分代码省略.........
{
Type questType = QuestSerializer.ReadType( QuestSystem.QuestTypes, reader );
DateTime restartTime;
if ( version < 17 )
restartTime = DateTime.MaxValue;
else
restartTime = reader.ReadDateTime();
m_DoneQuests.Add( new QuestRestartInfo( questType, restartTime ) );
}
}
m_Profession = reader.ReadEncodedInt();
goto case 15;
}
case 15:
{
m_LastCompassionLoss = reader.ReadDeltaTime();
goto case 14;
}
case 14:
{
m_CompassionGains = reader.ReadEncodedInt();
if ( m_CompassionGains > 0 )
m_NextCompassionDay = reader.ReadDeltaTime();
goto case 13;
}
case 13: // just removed m_PaidInsurance list
case 12:
{
m_BOBFilter = new Engines.BulkOrders.BOBFilter( reader );
goto case 11;
}
case 11:
{
if ( version < 13 )
{
List<Item> paid = reader.ReadStrongItemList();
for ( int i = 0; i < paid.Count; ++i )
paid[i].PaidInsurance = true;
}
goto case 10;
}
case 10:
{
if ( reader.ReadBool() )
{
m_HairModID = reader.ReadInt();
m_HairModHue = reader.ReadInt();
m_BeardModID = reader.ReadInt();
m_BeardModHue = reader.ReadInt();
// We cannot call SetHairMods( -1, -1 ) here because the items have not yet loaded
// Timer.DelayCall( TimeSpan.Zero, new TimerCallback( RevertHair ) );
}
goto case 9;
}
case 9:
{
SavagePaintExpiration = reader.ReadTimeSpan();
示例13: PlayerMobile
public PlayerMobile()
{
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = TimeSpan.FromHours( 8.0 );
m_LongTermElapse = TimeSpan.FromHours( 40.0 );
m_JusticeProtectors = new List<Mobile>();
m_GuildRank = Guilds.RankDefinition.Lowest;
m_ChampionTitles = new ChampionTitleInfo();
//######################## -- Mobile Settings Start <<<
#region -- Mobile Settings --
m_Settings = new MobileSettings(this);
#endregion
//######################## -- Mobile Settings End <<<
InvalidateMyRunUO();
}
示例14: PlayerMobile
public PlayerMobile()
{
m_ShowChat = true;
m_ShowChat = true;
m_LastCraftPlatinum = DateTime.Now;
m_LastPvPPlatinum = DateTime.Now;
m_LastGatherPlatinum = DateTime.Now;
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_MonthlyGameTime = TimeSpan.Zero;
m_ShortTermElapse = TimeSpan.FromHours( 8.0 );
m_DeathCountElapse = TimeSpan.FromMinutes( 20.0 );
m_LongTermElapse = TimeSpan.FromHours( 12.0/*40.0*/ );
m_JusticeProtectors = new List<Mobile>();
m_GuildRank = Guilds.RankDefinition.Lowest;
m_ChampionTitles = new ChampionTitleInfo();
InvalidateMyRunUO();
}
示例15: Deserialize
//.........这里部分代码省略.........
{
Type questType = QuestSerializer.ReadType( QuestSystem.QuestTypes, reader );
DateTime restartTime;
if ( version < 17 )
restartTime = DateTime.MaxValue;
else
restartTime = reader.ReadDateTime();
m_DoneQuests.Add( new QuestRestartInfo( questType, restartTime ) );
}
}
m_Profession = reader.ReadEncodedInt();
goto case 15;
}
case 15:
{
m_LastCompassionLoss = reader.ReadDeltaTime();
goto case 14;
}
case 14:
{
m_CompassionGains = reader.ReadEncodedInt();
if ( m_CompassionGains > 0 )
m_NextCompassionDay = reader.ReadDeltaTime();
goto case 13;
}
case 13: // just removed m_PayedInsurance list
case 12:
{
m_BOBFilter = new Engines.BulkOrders.BOBFilter( reader );
goto case 11;
}
case 11:
{
if ( version < 13 )
{
List<Item> payed = reader.ReadStrongItemList();
for ( int i = 0; i < payed.Count; ++i )
payed[i].PayedInsurance = true;
}
goto case 10;
}
case 10:
{
if ( reader.ReadBool() )
{
m_HairModID = reader.ReadInt();
m_HairModHue = reader.ReadInt();
m_BeardModID = reader.ReadInt();
m_BeardModHue = reader.ReadInt();
}
goto case 9;
}
case 9:
{
SavagePaintExpiration = reader.ReadTimeSpan();
if ( SavagePaintExpiration > TimeSpan.Zero )
{