Esempio n. 1
0
 public UsersController(QuestContext context, AccountController register, User user, UserEdit userEdit)
 {
     _context  = context;
     _register = register;
     _user     = user;
     _userEdit = userEdit;
 }
 public HomeController(ILogger <HomeController> logger, QuestContext context, AccountController login, User user)
 {
     _logger  = logger;
     _context = context;
     _login   = login;
     _user    = user;
 }
Esempio n. 3
0
        public static void BarkIngredient(Mobile from)
        {
            if (!QuestStarted(from))
            {
                return;
            }

            QuestContext context = m_Table[from];

            from.PublicOverheadMessage(MessageType.Regular, 0x3B2, 1112821, string.Format("#{0}", (int)context.CurrentIngredient)); // I need to add some ~1_INGREDIENT~.
        }
Esempio n. 4
0
        public static void StartQuest(Mobile from, ClockworkMechanism mechanism)
        {
            if (QuestStarted(from))
            {
                return;
            }

            QuestContext context = m_Table[from] = new QuestContext(from, mechanism);

            context.StartTimer();
        }
Esempio n. 5
0
        public static void OnDoubleClickIngredient(Mobile from, SutekIngredient ingredient)
        {
            if (!QuestStarted(from))
            {
                return;
            }

            QuestContext context = m_Table[from];

            if (ingredient == context.CurrentIngredient)
            {
                from.SendLocalizedMessage(1112819); // You've successfully added this ingredient.

                context.OnIngredientAcquired();
            }
            else
            {
                from.SendLocalizedMessage(1112820); // That is not the right ingredient.

                BarkIngredient(from);
            }
        }
Esempio n. 6
0
 public BonusesController(QuestContext context)
 {
     _context = context;
 }
 public MentorController(QuestContext context, GroupsController group, GroupAssignment groupAssignment)
 {
     _context         = context;
     _group           = group;
     _groupAssignment = groupAssignment;
 }
 public AccountController(QuestContext context)
 {
     _context = context;
 }
Esempio n. 9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestType != 0)
            {
                hash ^= QuestType.GetHashCode();
            }
            if (dailyQuest_ != null)
            {
                hash ^= DailyQuest.GetHashCode();
            }
            if (multiPart_ != null)
            {
                hash ^= MultiPart.GetHashCode();
            }
            if (catchPokemon_ != null)
            {
                hash ^= CatchPokemon.GetHashCode();
            }
            if (addFriend_ != null)
            {
                hash ^= AddFriend.GetHashCode();
            }
            if (tradePokemon_ != null)
            {
                hash ^= TradePokemon.GetHashCode();
            }
            if (QuestId.Length != 0)
            {
                hash ^= QuestId.GetHashCode();
            }
            if (QuestSeed != 0L)
            {
                hash ^= QuestSeed.GetHashCode();
            }
            if (QuestContext != 0)
            {
                hash ^= QuestContext.GetHashCode();
            }
            if (TemplateId.Length != 0)
            {
                hash ^= TemplateId.GetHashCode();
            }
            if (Progress != 0)
            {
                hash ^= Progress.GetHashCode();
            }
            if (goal_ != null)
            {
                hash ^= Goal.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            hash ^= questRewards_.GetHashCode();
            if (CreationTimestampMs != 0L)
            {
                hash ^= CreationTimestampMs.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0L)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (CompeletionTimestampMs != 0L)
            {
                hash ^= CompeletionTimestampMs.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (AdminGenerated != false)
            {
                hash ^= AdminGenerated.GetHashCode();
            }
            if (StampCountOverrideEnabled != false)
            {
                hash ^= StampCountOverrideEnabled.GetHashCode();
            }
            if (StampCountOverride != 0)
            {
                hash ^= StampCountOverride.GetHashCode();
            }
            if (S2CellId != 0L)
            {
                hash ^= S2CellId.GetHashCode();
            }
            if (StoryQuestTemplateVersion != 0)
            {
                hash ^= StoryQuestTemplateVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 10
0
 public TeamManager(QuestContext context)
 {
     this.context = context;
 }
Esempio n. 11
0
 public QuestManager(QuestContext context)
 {
     this.context = context;
 }
Esempio n. 12
0
 public QuestController(QuestContext context, Quest quest, QuestAssignment questAssignment)
 {
     _context         = context;
     _questAssignment = questAssignment;
     _quest           = quest;
 }
Esempio n. 13
0
        public static void StartQuest( Mobile from, ClockworkMechanism mechanism )
        {
            if ( QuestStarted( from ) )
                return;

            QuestContext context = m_Table[from] = new QuestContext( from, mechanism );
            context.StartTimer();
        }