本文整理汇总了C#中ChampionTitleInfo类的典型用法代码示例。如果您正苦于以下问题:C# ChampionTitleInfo类的具体用法?C# ChampionTitleInfo怎么用?C# ChampionTitleInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ChampionTitleInfo类属于命名空间,在下文中一共展示了ChampionTitleInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PlayerMobile
public PlayerMobile()
{
m_AutoStabled = new List<Mobile>();
m_VisList = new List<Mobile>();
m_PermaFlags = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
m_RecentlyReported = new List<Mobile>();
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();
}
示例2: 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();
}
示例3: Deserialize
//.........这里部分代码省略.........
if (GetCustomFlag(CustomPlayerFlag.DisplayStaffRank))
{
m_StaffTitle = reader.ReadString();
}
}
goto case 25;
case 25:
{
int recipeCount = reader.ReadInt();
if (recipeCount > 0)
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for (int i = 0; i < recipeCount; i++)
{
int r = reader.ReadInt();
//Don't add in recipies which we haven't gotten or have been removed
if (reader.ReadBool())
{
m_AcquiredRecipes.Add(r, true);
}
}
}
}
goto case 24;
case 24:
reader.ReadDeltaTime(); //m_LastHonorLoss = reader.ReadDeltaTime();
// TODO: Remove
goto case 23;
case 23:
ChampionTitles = new ChampionTitleInfo(reader);
goto case 22;
case 22:
reader.ReadDateTime(); //m_LastValorLoss = reader.ReadDateTime();
// TODO: Remove
goto case 21;
case 21:
{
ToTItemsTurnedIn = reader.ReadEncodedInt();
ToTTotalMonsterFame = reader.ReadInt();
}
goto case 20;
case 20:
{
AllianceMessageHue = reader.ReadEncodedInt();
GuildMessageHue = reader.ReadEncodedInt();
}
goto case 19;
case 19:
{
int rank = reader.ReadEncodedInt();
int maxRank = RankDefinition.Ranks.Length - 1;
if (rank > maxRank)
{
rank = maxRank;
}
m_GuildRank = RankDefinition.Ranks[rank];
LastOnline = reader.ReadDateTime();
}
goto case 18;
case 18:
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 29:
{
m_GauntletPoints = reader.ReadDouble();
m_SSNextSeed = reader.ReadDateTime();
m_SSSeedExpire = reader.ReadDateTime();
m_SSSeedLocation = reader.ReadPoint3D();
m_SSSeedMap = reader.ReadMap();
m_LevelExp = reader.ReadLong();
m_Exp = reader.ReadLong();
m_Level = reader.ReadInt();
m_ExpTitle = reader.ReadString();
m_VASTotalMonsterFame = reader.ReadInt();
m_Quests = QuestReader.Quests(reader, this);
m_Chains = QuestReader.Chains(reader);
m_Collections = new Dictionary<Collection, int>();
m_CollectionTitles = new List<object>();
for (int i = reader.ReadInt(); i > 0; i--)
{
m_Collections.Add((Collection)reader.ReadInt(), reader.ReadInt());
}
for (int i = reader.ReadInt(); i > 0; i--)
{
m_CollectionTitles.Add(QuestReader.Object(reader));
}
m_SelectedTitle = reader.ReadInt();
goto case 28;
}
case 28:
{
m_PeacedUntil = reader.ReadDateTime();
goto case 27;
}
case 27:
{
m_AnkhNextUse = reader.ReadDateTime();
goto case 26;
}
case 26:
{
m_AutoStabled = reader.ReadStrongMobileList();
goto case 25;
}
case 25:
{
int recipeCount = reader.ReadInt();
if (recipeCount > 0)
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for (int i = 0; i < recipeCount; i++)
{
int r = reader.ReadInt();
if (reader.ReadBool()) //Don't add in recipies which we haven't gotten or have been removed
{
m_AcquiredRecipes.Add(r, true);
}
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo(reader);
goto case 22;
}
case 22:
{
m_LastValorLoss = reader.ReadDateTime();
goto case 21;
}
case 21:
{
m_ToTItemsTurnedIn = reader.ReadEncodedInt();
m_ToTTotalMonsterFame = reader.ReadInt();
goto case 20;
//.........这里部分代码省略.........
示例5: PlayerMobile
public PlayerMobile()
{
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;
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = DateTime.UtcNow + ShortTermDuration;
LongTermLastDecayGameTime = TimeSpan.Zero;
m_GuildRank = RankDefinition.Lowest;
//InvalidateLegends();
}
示例6: Deserialize
//.........这里部分代码省略.........
case 28:
/*Item nullItem = reader.ReadItem();
goto case 27;*/
case 27:
m_Stoned = reader.ReadBool();
goto case 26;
case 26:
UseUnicodeSpeech = reader.ReadBool();
goto case 25;
case 25:
{
int recipeCount = reader.ReadInt();
if( recipeCount > 0 )
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for( int i = 0; i < recipeCount; i++ )
{
int r = reader.ReadInt();
if( reader.ReadBool() ) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add( r, true );
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo( reader );
goto case 22;
}
case 22:
{
m_LastValorLoss = reader.ReadDateTime();
goto case 21;
}
case 21:
{
m_ToTItemsTurnedIn = reader.ReadEncodedInt();
m_ToTTotalMonsterFame = reader.ReadInt();
goto case 20;
}
case 20:
{
AllianceMessageHue = reader.ReadEncodedInt();
GuildMessageHue = reader.ReadEncodedInt();
goto case 19;
}
case 19:
{
int rank = reader.ReadEncodedInt();
int maxRank = RankDefinition.Ranks.Length -1;
if( rank > maxRank )
rank = maxRank;
m_GuildRank = RankDefinition.Ranks[rank];
LastOnline = reader.ReadDateTime();
goto case 18;
}
case 18:
示例7: 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();
}
示例8: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
int counttype =31;
switch ( version )
{
// Plume addiction
case 33:
{
counttype = reader.ReadInt();
goto case 32;
}
case 32:
{
Addiction = new double[Enum.GetValues(typeof(PotionEffect)).Length];
for (int i = 0; i < counttype; i++)
Addiction[i] = reader.ReadDouble();
goto case 31;
}
//Vinds : ajout pour les chevaliers d'artedar
case 31:
{
m_IsArtedarKnight = reader.ReadBool();
goto case 30;
}
// Scriptiz : ajout pour l'alignement sur Malas
case 30:
{
m_Alignment = (Alignment)reader.ReadInt();
goto case 29;
}
// Scriptiz : ajout pour les fées
case 29:
{
m_IsFairy = reader.ReadBool();
goto case 28;
}
case 28:
{
m_PeacedUntil = reader.ReadDateTime();
goto case 27;
}
case 27:
{
m_AnkhNextUse = reader.ReadDateTime();
goto case 26;
}
case 26:
{
m_AutoStabled = reader.ReadStrongMobileList();
goto case 25;
}
case 25:
{
int recipeCount = reader.ReadInt();
if( recipeCount > 0 )
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for( int i = 0; i < recipeCount; i++ )
{
int r = reader.ReadInt();
if( reader.ReadBool() ) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add( r, true );
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo( reader );
goto case 22;
}
case 22:
{
m_LastValorLoss = reader.ReadDateTime();
goto case 21;
}
case 21:
{
m_ToTItemsTurnedIn = reader.ReadEncodedInt();
m_ToTTotalMonsterFame = reader.ReadInt();
goto case 20;
}
case 20:
{
m_AllianceMessageHue = reader.ReadEncodedInt();
//.........这里部分代码省略.........
示例9: PlayerMobile
public PlayerMobile( Serial s )
: base(s)
{
m_VisList = new List<Mobile>();
m_AntiMacroTable = new Hashtable();
InvalidateMyRunUO();
m_PermaFlags = new List<Mobile>();
m_BOBFilter = new Engines.BulkOrders.BOBFilter();
m_GameTime = TimeSpan.Zero;
m_ShortTermElapse = ShortTermMurderDecay;
m_LongTermElapse = LongTermMurderDecay;
m_JusticeProtectors = new List<Mobile>();
m_GuildRank = Guilds.RankDefinition.Lowest;
m_ChampionTitles = new ChampionTitleInfo();
}
示例10: 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();
}
示例11: Deserialize
//.........这里部分代码省略.........
m_FeatSlots = reader.ReadInt();
goto case 26;
}
case 26:
{
m_Class = (Class)reader.ReadInt();
m_Nation = (Nation)reader.ReadInt();
goto case 25;
}
case 25:
{
int recipeCount = reader.ReadInt();
if( recipeCount > 0 )
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for( int i = 0; i < recipeCount; i++ )
{
int r = reader.ReadInt();
if( reader.ReadBool() ) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add( r, true );
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo( reader );
goto case 22;
}
case 22:
{
m_LastValorLoss = reader.ReadDateTime();
goto case 21;
}
case 21:
{
m_ToTItemsTurnedIn = reader.ReadEncodedInt();
m_ToTTotalMonsterFame = reader.ReadInt();
goto case 20;
}
case 20:
{
m_AllianceMessageHue = reader.ReadEncodedInt();
m_GuildMessageHue = reader.ReadEncodedInt();
goto case 19;
}
case 19:
{
int rank = reader.ReadEncodedInt();
int maxRank = Guilds.RankDefinition.Ranks.Length -1;
if( rank > maxRank )
rank = maxRank;
m_GuildRank = Guilds.RankDefinition.Ranks[rank];
m_LastOnline = reader.ReadDateTime();
goto case 18;
}
case 18:
示例12: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
switch ( version )
{
case 36:
{
m_PeacedUntil = reader.ReadDateTime();
goto case 35;
}
case 35:
{
m_AnkhNextUse = reader.ReadDateTime();
goto case 34;
}
case 34:
{
m_AutoStabled = reader.ReadStrongMobileList();
m_CustomFlags = (CustomPlayerFlag)reader.ReadEncodedInt();
if ( GetCustomFlag( CustomPlayerFlag.VisibilityList ) )
{
int length = reader.ReadInt();
for( int i = 0; i < length; i++ )
VisibilityList.Add( reader.ReadMobile() );
}
if ( GetCustomFlag( CustomPlayerFlag.StaffLevel ) )
AccessLevelToggler.m_Mobiles.Add( this, new AccessLevelMod( (AccessLevel)reader.ReadInt() ) );
if ( GetCustomFlag( CustomPlayerFlag.StaffRank ) )
m_StaffRank = (StaffRank)reader.ReadInt();
if ( GetCustomFlag( CustomPlayerFlag.DisplayStaffRank ) )
m_StaffTitle = reader.ReadString();
goto case 33;
}
case 33: // Added by Blady for Sphynx
{
m_FortuneType = reader.ReadEncodedInt();
if ( m_FortuneType > 0 )
{
m_FortunePower = reader.ReadEncodedInt();
FortuneExpire = reader.ReadDateTime();
if ( FortuneExpire > DateTime.Now )
{
ApplyFortune( m_FortuneType, m_FortunePower );
FortuneGump.Told.Add( this );
}
else
m_FortuneType = m_FortunePower = 0;
}
goto case 32;
}
case 32: //PowerHour added by Blady
{
m_PowerHourStart = reader.ReadDeltaTime();
goto case 31;
}
//*** Edit by Sunny ***\\
case 31:
case 30:
{
m_OSIHouseLoading = reader.ReadBool();
goto case 29;
}
//*** End edit ***\\
case 29:
{
int recipeCount = reader.ReadInt();
if ( recipeCount > 0 )
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for (int i = 0; i < recipeCount; i++)
{
int r = reader.ReadInt();
if (reader.ReadBool()) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add(r, true);
}
}
goto case 28;
}
case 28:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 27;
}
case 27:
{
m_ChampionTitles = new ChampionTitleInfo(reader);
//.........这里部分代码省略.........
示例13: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
switch (version)
{
case 26:
{
#region GeNova: Mondain's Legacy
m_Quests = QuestReader.Quests(reader, this);
m_Chains = QuestReader.Chains(reader);
m_Collections = new Dictionary<Collection, int>();
m_CollectionTitles = new List<object>();
for (int i = reader.ReadInt(); i > 0; i--)
m_Collections.Add((Collection)reader.ReadInt(), reader.ReadInt());
for (int i = reader.ReadInt(); i > 0; i--)
m_CollectionTitles.Add(QuestReader.Object(reader));
m_SelectedTitle = reader.ReadInt();
m_Peaced = reader.ReadDateTime();
#endregion
goto case 25;
}
case 25:
{
int recipeCount = reader.ReadInt();
if (recipeCount > 0)
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for (int i = 0; i < recipeCount; i++)
{
int r = reader.ReadInt();
if (reader.ReadBool()) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add(r, true);
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo(reader);
goto case 22;
}
case 22:
{
m_LastValorLoss = reader.ReadDateTime();
goto case 21;
}
case 21:
{
m_ToTItemsTurnedIn = reader.ReadEncodedInt();
m_ToTTotalMonsterFame = reader.ReadInt();
goto case 20;
}
case 20:
{
m_AllianceMessageHue = reader.ReadEncodedInt();
m_GuildMessageHue = reader.ReadEncodedInt();
goto case 19;
}
case 19:
{
int rank = reader.ReadEncodedInt();
int maxRank = Guilds.RankDefinition.Ranks.Length - 1;
if (rank > maxRank)
rank = maxRank;
m_GuildRank = Guilds.RankDefinition.Ranks[rank];
m_LastOnline = reader.ReadDateTime();
goto case 18;
}
case 18:
{
m_SolenFriendship = (SolenFriendship)reader.ReadEncodedInt();
goto case 17;
}
case 17: // changed how DoneQuests is serialized
case 16:
{
m_Quest = QuestSerializer.DeserializeQuest(reader);
if (m_Quest != null)
m_Quest.From = this;
int count = reader.ReadEncodedInt();
//.........这里部分代码省略.........
示例14: Deserialize
//.........这里部分代码省略.........
goto case 26;
}
case 26:
{
m_AutoStabled = reader.ReadStrongMobileList();
goto case 25;
}
case 25:
{
int recipeCount = reader.ReadInt();
if( recipeCount > 0 )
{
m_AcquiredRecipes = new Dictionary<int, bool>();
for( int i = 0; i < recipeCount; i++ )
{
int r = reader.ReadInt();
if( reader.ReadBool() ) //Don't add in recipies which we haven't gotten or have been removed
m_AcquiredRecipes.Add( r, true );
}
}
goto case 24;
}
case 24:
{
m_LastHonorLoss = reader.ReadDeltaTime();
goto case 23;
}
case 23:
{
m_ChampionTitles = new ChampionTitleInfo( reader );
goto case 22;
}
case 22:
{
m_LastValorLoss = reader.ReadDateTime();
goto case 21;
}
case 21:
{
m_ToTItemsTurnedIn = reader.ReadEncodedInt();
m_ToTTotalMonsterFame = reader.ReadInt();
goto case 20;
}
case 20:
{
m_AllianceMessageHue = reader.ReadEncodedInt();
m_GuildMessageHue = reader.ReadEncodedInt();
goto case 19;
}
case 19:
{
int rank = reader.ReadEncodedInt();
int maxRank = Guilds.RankDefinition.Ranks.Length -1;
if( rank > maxRank )
rank = maxRank;
m_GuildRank = Guilds.RankDefinition.Ranks[rank];
m_LastOnline = reader.ReadDateTime();
goto case 18;
}
case 18:
示例15: Serialize
public static void Serialize(GenericWriter writer, ChampionTitleInfo titles)
{
writer.WriteEncodedInt((int)0); // version
writer.WriteEncodedInt(titles.m_Harrower);
int length = titles.m_Values.Length;
writer.WriteEncodedInt(length);
for (int i = 0; i < length; i++)
{
if (titles.m_Values[i] == null)
titles.m_Values[i] = new TitleInfo();
TitleInfo.Serialize(writer, titles.m_Values[i]);
}
}