Exemplo n.º 1
0
 public void Decline()
 {
     InvinteCase.OnDecline(this);
     InvinteCase = null;
     Case        = null;
     Session.SendMessage(new CloseHelperSessionComposer());
 }
Exemplo n.º 2
0
        public static HelperCase AddCall(GameClient Session, string message, int category)
        {
            var c = GetCall(Session);

            if (c != null)
            {
                return(c);
            }
            var hcase = new HelperCase(Session, message, category);

            Cases.Add(hcase);
            return(hcase);
        }
Exemplo n.º 3
0
 public void CancelCall()
 {
     if (InvinteCase != null)
     {
         InvinteCase.Session.SendMessage(new CloseHelperSessionComposer());
     }
     InvinteCase = null;
     if (Case != null)
     {
         Case.Session.SendMessage(new CloseHelperSessionComposer());
     }
     Case = null;
     Session.SendMessage(new CloseHelperSessionComposer());
 }
Exemplo n.º 4
0
        public void Accept()
        {
            if (InvinteCase == null)
            {
                Session.SendMessage(new CloseHelperSessionComposer());
                return;
            }
            Case        = InvinteCase;
            InvinteCase = null;


            Session.SendMessage(new InitHelperSessionChatComposer(Case.Session.GetHabbo(), Session.GetHabbo()));
            Case.Session.SendMessage(new InitHelperSessionChatComposer(Case.Session.GetHabbo(), Session.GetHabbo()));
        }
Exemplo n.º 5
0
 public static List <HabboHelper> GetHelpersToCase(HelperCase Case)
 {
     return(GetAvaliableHelpers().Where(c => !Case.DeclinedHelpers.Any(d => d == c)).Where(c => Case.Session != c.Session && ((c.IsGuide && Case.Type == HelpCaseType.MEET_HOTEL) || (c.IsHelper && Case.Type == HelpCaseType.INSTRUCTION))).ToList());
 }
Exemplo n.º 6
0
 public static void InvinteHelpCall(HabboHelper Helper, HelperCase hcase)
 {
     Helper.InvinteCase = hcase;
     Helper.Session.SendMessage(new CallForHelperWindowComposer(true, hcase));
     hcase.Helper = Helper;
 }
Exemplo n.º 7
0
 public static void RemoveCall(HelperCase Call)
 {
     Cases.Remove(Call);
 }
Exemplo n.º 8
0
 public void Close()
 {
     Case        = null;
     InvinteCase = null;
     Session.SendMessage(new CloseHelperSessionComposer());
 }