Beispiel #1
0
        private void _lt_OnConnectionAccepted(object sender, SocketArg e)
        {
            Connection client = new Connection(e.Socket);

            client.OnLoginRequest          += Client_OnLoginRequest;
            client.OnCharacterListRequest  += Client_OnCharacterListRequest;
            client.OnCreateCharacter       += Client_OnCharacterCreate;
            client.OnDeleteCharacter       += Client_OnDeleteCharacter;
            client.OnSelectCharacter       += Client_OnSelectCharacter;
            client.OnLoadSelectedCharacter += Client_OnLoadSelectedCharacter;
            client.OnPlayerEnterMap        += Client_OnPlayerEnterMap;
            client.OnMoveTo              += Client_OnMoveTo;
            client.OnUpdatePosition      += Client_OnUpdatePosition;
            client.OnNPCDialogNextButton += Client_OnNPCDialogNextButton;
            client.OnGMCommand           += Client_OnGMCommand;
            client.OnMoveItem            += Client_OnMoveItem;
            client.OnToolbarItemSet      += Client_OnToolbar;
            client.OnToolbarItemClear    += Client_OnToolbarItemClear;
            client.OnUseItem             += Client_OnUseItem;
            client.OnEquipItem           += Client_OnEquipItem;
            client.OnUnEquipItem         += Client_OnUnEquipItem;
            client.OnAttack              += Client_OnAttack;

            InputThread.AddConnection(client);
        }
Beispiel #2
0
        private void _lt_OnConnectionAccepted(object sender, SocketArg e)
        {
            Connection client = new Connection(e.Socket);

            client.OnLoginRequest += Client_OnLoginRequest;
            client.OnCharacterListRequest += Client_OnCharacterListRequest;
            client.OnCreateCharacter += Client_OnCharacterCreate;
            client.OnDeleteCharacter += Client_OnDeleteCharacter;
            client.OnSelectCharacter += Client_OnSelectCharacter;
            client.OnLoadSelectedCharacter += Client_OnLoadSelectedCharacter;
            client.OnPlayerEnterMap += Client_OnPlayerEnterMap;
            client.OnMoveTo += Client_OnMoveTo;
            client.OnUpdatePosition += Client_OnUpdatePosition;
            client.OnNPCDialogNextButton += Client_OnNPCDialogNextButton;
            client.OnGMCommand += Client_OnGMCommand;
            client.OnMoveItem += Client_OnMoveItem;
            client.OnToolbarItemSet += Client_OnToolbar;
            client.OnToolbarItemClear += Client_OnToolbarItemClear;
            client.OnUseItem += Client_OnUseItem;
            client.OnEquipItem += Client_OnEquipItem;
            client.OnUnEquipItem += Client_OnUnEquipItem;
            client.OnAttack += Client_OnAttack;

            InputThread.AddConnection(client);
        }