コード例 #1
0
ファイル: Actor.cs プロジェクト: OlegGelezcov/neb
 /// <summary>
 ///   Tries to get an <see cref = "InterestArea" />.
 /// </summary>
 /// <param name = "interestAreaId">
 ///   The interest area id.
 /// </param>
 /// <param name = "interestArea">
 ///   The result <see cref = "InterestArea" />.
 /// </param>
 /// <returns>
 ///   true if the <see cref = "InterestArea" /> with the <paramref name = "interestAreaId" /> was found.
 /// </returns>
 public bool TryGetInterestArea(byte interestAreaId, out InterestArea interestArea)
 {
     return(this.interestAreas.TryGetValue(interestAreaId, out interestArea));
 }
コード例 #2
0
ファイル: Actor.cs プロジェクト: OlegGelezcov/neb
 /// <summary>
 ///   Adds an <see cref = "InterestArea" />.
 /// </summary>
 /// <param name = "interestArea">
 ///   The <see cref = "InterestArea" /> to add.
 /// </param>
 public void AddInterestArea(InterestArea interestArea)
 {
     this.interestAreas.Add(interestArea.Id, interestArea);
 }