Exemple #1
0
            /// <summary>
            /// Constructs a new DisambigHelper.
            /// </summary>
            /// <param name="instance">The instance where disambiguation is occurring.</param>
            /// <param name="line">The command that will need disambiguation, starting with
            /// the player ID and a colon.</param>
            public DisambigHelper(FyreVMInstance instance, string line)
                : base("")
            {
                string[] parts = line.Split(':');
                int      num;

                if (parts.Length >= 2 && int.TryParse(parts[0], out num))
                {
                    using (instance.playersLock.ReaderLock())
                        instance.players.TryGetValue(num, out this.Player);
                }
            }
Exemple #2
0
 public RealmIO(FyreVMInstance instance)
 {
     this.instance = instance;
 }