Exemple #1
0
 internal void Add(ArbiterKey key, Arbiter arbiter)
 {
     lock (dictionary)
     {
         dictionary.Add(key, arbiter);
     }
 }
Exemple #2
0
        /// <summary>
        /// Checks if two objects are equal.
        /// </summary>
        /// <param name="obj">The object to check against.</param>
        /// <returns>Returns true if they are equal, otherwise false.</returns>
        public override bool Equals(object obj)
        {
            ArbiterKey other = (ArbiterKey)obj;

            return(other.body1.Equals(body1) && other.body2.Equals(body2) ||
                   other.body1.Equals(body2) && other.body2.Equals(body1));
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the ArbiterMap class.
 /// </summary>
 public ArbiterMap()
 {
     lookUpKey = new ArbiterKey(null, null);
 }