// ------------------------------------------------------------------------ public void FoundClue(ClueID id) { // don't do anything if we already knew if (m_clueLockStates[id] == true) { return; } // if this is a phone number, send a new contact notif if (PhoneNumberClueNames.ContainsKey(id)) { NotificationManager.NewContactNotif(PhoneNumberClueNames[id]); } else { // otherwise, send generic clue notif NotificationManager.FoundClueNotif(id); // really should send an event but meh } // if it unlocks a ruddit post, send a ruddit notif foreach (ForumPostData post in m_allForumPosts) { if (post.ClueNeeded == id) { NotificationManager.ForumPostNotif(post); } } m_clueLockStates[id] = true; }
public void FoundClueNotif(ClueID id) { if (!NotesApp.clueNotes.ContainsKey(id)) { return; } QueueNotif(NotesApp.Icon, NotesApp.clueNotes[id], NotesApp); }
// ------------------------------------------------------------------------ // Methods // ------------------------------------------------------------------------ public ForumPostData(ForumPostSerializable post) { m_username = post.username; m_title = post.title; m_clueGiven = post.clueGiven; m_clueNeeded = post.clueNeeded; m_body = post.body; m_numComments = post.numComments; m_time = post.time; m_icon = post.icon; m_photo = post.photo; m_imageHeight = post.imageHeight; }
// ------------------------------------------------------------------------ // Methods // ------------------------------------------------------------------------ public Message(MessageSerializable serializedMessage) { node = serializedMessage.node; player = serializedMessage.player; clueGiven = serializedMessage.clueGiven; Messages = serializedMessage.messages; options = serializedMessage.options; clueNeeded = serializedMessage.clueNeeded; branch = serializedMessage.branch; image = serializedMessage.image; imageHeight = serializedMessage.imageHeight; imageWidth = serializedMessage.imageWidth; OptionSelection = -1; }
// ------------------------------------------------------------------------ // Methods // ------------------------------------------------------------------------ public Chat(ChatSerializable serializedChat) { friend = serializedChat.friend; clueNeeded = serializedChat.clueNeeded; icon = serializedChat.icon; order = 0; lastVisitedMessage = 0; if (serializedChat.messages == null) { return; } messages = new Message[serializedChat.messages.Length]; for (int i = 0; i < messages.Length; i++) { messages[i] = new Message(serializedChat.messages[i]); } visitedMessages = new List <Message>(); visitedMessages.Add(messages[0]); }
// ------------------------------------------------------------------------ // Methods: Clues // ------------------------------------------------------------------------ public bool ClueRequirementMet(ClueID id) { return(m_clueLockStates[id]); }