Can't wait till I get to this part

Here we speak about Code and Design.
Post Reply
User avatar
nemerle
Posts: 397
Joined: Thu Jan 10, 2013 3:40 pm

Can't wait till I get to this part

Post by nemerle » Mon Mar 04, 2013 11:42 pm

Freaking input processing...

So much fun is waiting for us :)
Like all these server->client messages

Code: Select all

switch ( command_to_handle )
        {
            case 14: recv_Dialog(pak); break;
            case 15: recv_InfoBox(pak); break;
            case 16: recv_DoorCmd(pak); break;
            case 17: recv_SendConsoleOutput(pak); break;
            case 18: recv_SetClientState(pak); break;
            case 19: recv_ConsolePrintf(pak); break;
            case 20: recv_ChatMessage(pak); break;
            case 21: recv_FloatingDamage(pak); break;
            case 22: clientcommreceive_VisitedMapCells(pak); break;
            case 23: clientcommreceive_SendWaypoint(pak); break;
            case 24: uiNet_TeamOffer(pak); break;
            case 25: uiNet_TeamLooking(pak); break;
            case 26: uiNet_TaskForce_Kick(pak); break;
            case 27: uiNet_TaskForce_Quit(); break;
            case 28: uiNet_SidekickOffer(pak); break;
            case 29: uiNet_Supergroup_Offer(pak); break;
            case 30: uiNet_Supergroup_CreateRply(pak); break;
            case 31: uiNet_Supergroup_Costume(pak); break;
            case 32: uiNet_TradeOffer(pak); break;
            case 33: uiNet_TradeInit(pak); break;
            case 34: uiNet_TradeCancel(pak); break;
            case 35: uiNet_TradeUpdate(pak); break;
            case 36: uiNet_TradeSuccess(pak); break;
            case 37: uiNet_receiveFriendsList(pak, playerPtr()); break;
            case 38: recv_ControlPlayer(pak); break;
            case 39: recv_ContactDialogOpen(pak); break;
            case 40: recv_ContactDialogClose(); break;
            case 41: recv_ContactDialogOk(pak); break;
            case 42: recv_ContactDialogYesNo(pak); break;
            case 43: recv_Contact_Status(pak); break;
            case 44: recv_Contact_Select(pak); break;
            case 45: contactClient_Task_Status(pak); break;
            case 46: contactClient_Task_Select(pak); break;
            case 47: contactClient_Remove_Teammate_Tasks(); break;
            case 48: uiNet_TimeUpdate(pak); break;
            case 49: recv_MissionEntry(pak); break;
            case 50: recv_MissionKicktimer(pak); break;
            case 51: recv_DeadNogurney(); break;
            case 52: dooranimclient_DoorAnim(pak); break;
            case 53: dooranimclient_DoorExit(pak); break;
            case 54: recv_FaceEntity(pak); break;
            case 55: recv_FaceLocation(pak); break;
            case 56: recv_SendFloatingInfo(pak); break;
            case 57: entity_power_client_SetStance(pak); break;
            case 58: recv_MapXFerList(pak); break;
            case 59: recv_MapXFerListClosr(); break;
            case 60: recv_EnableControlLog(pak); break;
            case 61: recv_LevelUp(); break;
            case 62: clientcommreceive_NewTittle(pak); break;
            case 63:
            case 64:
                break;
            case 65: uiNet_SendEmailHeaders(pak); break;
            case 66: uiNet_EmailMessage(pak); break;
            case 67: uiNet_EmailStatus(pak); break;
            case 68: clientcommreceive_TASK_VISITLOCATION_UPDATE(pak); break;
            case 69: recv_PlayerInfo(pak); break;
            case 70: recv_ClueUpdate(pak); break;
            case 71: storyarcClient_SOUVENIRCLUE_UPDATE(pak); break;
            case 72: storyarcClient_SERVER_SOUVENIRCLUE_DETAIL(pak); break;
            case 73: missionClient_OBJECTIVE_TIMER_UPDATE(pak); break;
            case 74: uiNet_REGISTER_SUPERGROUP(pak); break;
            case 75: contactClient_TASK_DETAIL(pak); break;
            case 76: uiNet_BROWSER_TEXT(pak); break;
            case 77: uiNet_BROWSER_CLOSE(); break;
            case 78: uiNet_STORE_OPEN(pak); break;
            case 79: uiNet_STORE_CLOSE(); break;
            case 80: clientcommreceive_BUG_REPORT(pak); break;
            case 81: recv_MISSION_SURVEY(); break;
            case 82: uiNet_Tray_Add(pak); break;
            case 83: recv_COMBINE_RESPONSE(pak); break;
            case 84: recv_ARENA_SCORE_UPDATE(pak); break;
            case 85: recv_ARENA_FULL_SCORE_UPDATE(pak); break;
            case 86: recv_ARENA_START(pak); break;
            case 87: recv_ARENA_STOP(); break;
            case 88: recv_TAILOR_OPEN(); break;
            default:
                if ( command_to_handle < 2 )
                {
                    buf_str<<"Invalid Command "<<command_to_handle<<"\nPrevious Commands: ";
                    while ( v22 < commands_stack_ptr )
                        buf_str<<command_stack[v22++]<<", ";
                    assert(0); //, ".\\clientcomm\\clientcomm.c", 1068) )
                }
        }
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest