Beispiel #1
0
 public bool Contain(SHA256Hash hash, MessageTypes type)
 {
     if (type.Equals(MessageTypes.MsgType.BLOCK))
     {
         return(Manager.Instance.DBManager.ContainBlock(hash));
     }
     else if (type.Equals(MessageTypes.MsgType.TX))
     {
         return(Manager.Instance.DBManager.Transaction.Contains(hash.Hash));
     }
     return(false);
 }
Beispiel #2
0
 public MessageEventArgs(MessageTypes typeMessage, string name, string value)
 {
     if (typeMessage.Equals(MessageTypes.MonsterDidDamageYou))
     {
         Message         = "The " + name + " did " + value + " points of damage.";
         AddExtraNewLine = true;
     }
 }
Beispiel #3
0
        public MessageEventArgs(MessageTypes typeMessage, string name)
        {
            if (typeMessage.Equals(MessageTypes.NeedAKey))
            {
                Message         = "You must have a " + name + " to enter this location.";
                AddExtraNewLine = true;
            }

            if (typeMessage.Equals(MessageTypes.LoadingLocationGrid))
            {
                Message    = "Loading Location " + name;
                Percentage = 85;
            }

            if (typeMessage.Equals(MessageTypes.MosterKilledYou))
            {
                Message         = "The " + name + " killed you.";
                AddExtraNewLine = true;
            }
        }
Beispiel #4
0
        public MessageEventArgs(MessageTypes typeMessage)
        {
            if (typeMessage.Equals(MessageTypes.LoadingItems))
            {
                Message         = "Loading Items...";
                AddExtraNewLine = false;
                Percentage      = 20;
            }

            if (typeMessage.Equals(MessageTypes.LoadingMonsters))
            {
                Message         = "Loading Monsters...";
                AddExtraNewLine = false;
                Percentage      = 40;
            }

            if (typeMessage.Equals(MessageTypes.LoadingQuests))
            {
                Message         = "Loading Quests...";
                AddExtraNewLine = false;
                Percentage      = 50;
            }

            if (typeMessage.Equals(MessageTypes.LoadingVendors))
            {
                Message         = "Loading Vendors...";
                AddExtraNewLine = false;
                Percentage      = 60;
            }

            if (typeMessage.Equals(MessageTypes.LoadingLocations))
            {
                Message         = "Loading Locations...";
                AddExtraNewLine = false;
                Percentage      = 70;
            }
        }