示例#1
0
        public void onClientEvent(Client player, params object[] arguments)
        {
            if (arguments.Length == 0)
            {
                return;
            }
            ERPCs rpc = (ERPCs)arguments[0];

            switch (rpc)
            {
            case ERPCs.EXAMS_QUESTIONS:
                CRPCExamsQuestion examsQuestions = new CRPCExamsQuestion();
                if (ProcessRPC(examsQuestions, arguments))
                {
                    OnExamsQuestions(player, examsQuestions);
                }
                break;
            }
        }
示例#2
0
 void OnExamsQuestions(Client player, CRPCExamsQuestion rpc)
 {
     //    player.TriggerClient(ERPCs.EXAMS_QUESTIONS_CALLBACK, Globals.Systems.exams.GetExamQuestions((byte)rpc.examID));
 }