WO2024027308A1 - 虚拟物品的转移方法、装置、电子设备及存储介质 - Google Patents

虚拟物品的转移方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2024027308A1
WO2024027308A1 PCT/CN2023/096883 CN2023096883W WO2024027308A1 WO 2024027308 A1 WO2024027308 A1 WO 2024027308A1 CN 2023096883 W CN2023096883 W CN 2023096883W WO 2024027308 A1 WO2024027308 A1 WO 2024027308A1
Authority
WO
WIPO (PCT)
Prior art keywords
item
virtual
storage
target
storage container
Prior art date
Application number
PCT/CN2023/096883
Other languages
English (en)
French (fr)
Inventor
余伟祥
杨芸
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2024027308A1 publication Critical patent/WO2024027308A1/zh

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • A63F13/2145Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads the surface being also a display device, e.g. touch screens
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1068Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad
    • A63F2300/1075Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals being specially adapted to detect the point of contact of the player on a surface, e.g. floor mat, touch pad using a touch screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6045Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Definitions

  • the present application relates to the field of computer technology, and in particular to a virtual item transfer method, device, electronic equipment and storage medium.
  • survival and construction games are a relatively popular game. Survival and construction games use survival and construction as the game theme and gameplay. Players In the game scene, you can control virtual objects to collect various virtual items as survival materials, and build a territory for virtual objects.
  • Embodiments of the present application provide a virtual item transfer method, device, electronic device, and storage medium, which can reduce the complexity of batch transfer operations and improve the efficiency of human-computer interaction.
  • the technical solution is as follows:
  • a virtual item transfer method is provided, applied to a terminal, and the method includes:
  • a first storage space and a second storage space are displayed. Multiple virtual items are displayed in the first storage space. Multiple storage container labels are displayed in the second storage space. Each storage container The label corresponds to an item storage area;
  • a release position of the first drag operation is determined, and the first drag operation is used to drag the target virtual item in the first storage space to the second storage space.
  • object space the target virtual item is any virtual item in the first storage space;
  • the target virtual item is transferred from the first storage space to the first item storage area, and the first item storage area is the plurality of storage areas.
  • the object storage area corresponding to the target storage container label among the object container labels, and the target storage container label is any one of the plurality of storage container labels;
  • release position is located on the target storage container label, transfer at least one first-type virtual item in the first storage space to the first item storage area, and the first-type virtual item A virtual item of the same type as the target virtual item.
  • a virtual item transfer device which device includes:
  • a display module configured to display a first storage space and a second storage space, with multiple virtual items displayed in the first storage space and multiple storage container labels displayed in the second storage space, Each storage container label corresponds to an item storage area;
  • Determining module configured to determine the release position of the first drag operation in response to the first drag operation, the first drag operation being used to drag the target virtual item in the first storage space to the second storage space;
  • An item transfer module configured to transfer the target virtual item from the first storage space to the first item storage area if the release position is located in the first item storage area. is an item storage area corresponding to a target storage container label among the plurality of storage container labels, and the target storage container label is any one of the plurality of storage container labels;
  • the item transfer module is also configured to transfer at least one first-type virtual item in the first storage space to the first item storage if the release position is located on the target storage container label. area, the first type of virtual item is a virtual item of the same type as the target virtual item.
  • an electronic device which is configured in a terminal.
  • the electronic device includes one or more processors and one or more memories.
  • At least one computer program is stored in the one or more memories.
  • the at least one computer program The program is loaded and executed by the one or more processors to implement the virtual item transfer method as described above.
  • a storage medium is provided, and at least one computer program is stored in the storage medium.
  • the at least one computer program is loaded and executed by a processor to implement the above-mentioned transfer method of virtual items.
  • a computer program product includes one or more computer programs, and the one or more computer programs are stored in a computer-readable storage medium.
  • One or more processors of the electronic device can read the one or more computer programs from the computer-readable storage medium, and the one or more processors execute the one or more computer programs so that the electronic device can Execute the above virtual item transfer method.
  • Figure 1 is a schematic diagram of the implementation environment of a virtual item transfer method provided by an embodiment of the present application
  • Figure 2 is a flow chart of a virtual item transfer method provided by an embodiment of the present application.
  • Figure 3 is a flow chart of a virtual item transfer method provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of a display interface of a storage space provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of a drag operation provided by an embodiment of the present application.
  • Figure 6 is a schematic interface diagram of an item transfer result provided by an embodiment of the present application.
  • Figure 7 is a flow chart of a virtual item transfer method provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a drag operation provided by an embodiment of the present application.
  • Figure 9 is a schematic interface diagram of an item retrieval result provided by an embodiment of the present application.
  • Figure 10 is a principle flow chart of a virtual item transfer method provided by an embodiment of the present application.
  • Figure 11 is a schematic interface diagram of an item transfer process provided by an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a virtual item transfer device provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • Figure 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Virtual scene It is the virtual environment displayed (or provided) when the application is running on the terminal.
  • the virtual scene can be a simulation environment of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment.
  • the virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.
  • the embodiments of this application do not limit the dimensions of the virtual scene.
  • the virtual scene can include the sky, land, ocean, etc.
  • the land can include environmental elements such as deserts and cities, and the user can control virtual objects to move in the virtual scene.
  • the virtual scene can also be used for a virtual scene confrontation between at least two virtual objects, and there are virtual resources available for use by the at least two virtual objects in the virtual scene.
  • Virtual object refers to the movable object in the virtual scene.
  • the movable object may be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil barrels, walls, stones, etc. displayed in the virtual scene.
  • the virtual object may be a virtual avatar representing the user in the virtual scene.
  • the virtual scene may include multiple virtual objects. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
  • the virtual object can be a three-dimensional model, and the three-dimensional model can be a three-dimensional character built based on three-dimensional human skeleton technology.
  • the same virtual object can be worn in different skin to show different external images.
  • the virtual object can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
  • the virtual object can be a player character controlled through operations on the client, or it can also be a non-player character (NPC), a neutral virtual object (NPC), or a neutral virtual object that is set in the virtual scene and can interact. like Wild monsters that can provide buffs, experience points, virtual treasure chests, etc.), or game robots (such as companion robots) set up in virtual scenes.
  • the virtual object is a virtual character competing in a virtual scene.
  • the number of virtual objects participating in the interaction in the virtual scene can be set in advance, or can be dynamically determined based on the number of clients participating in the interaction.
  • Virtual items refer to objects that can be interacted with by virtual objects in a virtual scene.
  • Virtual items can be virtual materials, virtual props, virtual plants, virtual animals, virtual clothing, etc., for example, seeds, ingredients, tables, chairs, bricks, etc. displayed in the virtual scene.
  • a virtual scene can contain a large number of virtual items.
  • Each virtual item has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
  • the virtual item may be a three-dimensional model.
  • virtual items can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
  • Survival construction game A game with survival construction as the game theme and gameplay. Players can collect various virtual items as survival materials in the game scene, and can build their own territory. It also supports the use of collected raw materials to synthesize their own. Essential Products. Survival and construction games have diverse gameplay and a high degree of freedom. Players can freely explore the game scene and use any items in the game scene to build, create or combine into new items needed for survival. For example, depending on the game background settings, survival and construction games include: space survival and construction games, sandbox survival and construction games, etc.
  • the player In the above-mentioned process of transferring virtual items from the backpack to the cabinet, the player often needs to frequently manually transfer a large number of virtual items in the backpack to the cabinet, and the player is also required to manually classify the items transferred to the cabinet. For example, when transferring items, the player needs to open the cabinet interface, select the virtual item to be transferred in the backpack, drag the selected virtual item from the backpack to the item storage area of a locker in the cabinet, and then let go, thereby realizing the transfer of a single item. Transfer of items. Repeat the above dragging operation multiple times until all similar items are transferred to the cabinet, then click the cabinet settings button to open a pop-up window to rename the cabinet or select the cabinet icon. It can be seen that the above-mentioned batch item transfer operation is cumbersome and the operation link is long, so the item transfer efficiency is low, the human-computer interaction efficiency is low, and the user experience is poor.
  • embodiments of the present application provide a virtual item transfer method, aiming at the frequent batch item transfer needs of players in survival and construction games, and providing a method to quickly transfer similar items from one storage space to another.
  • An interactive way of storage space For example, similar items can be transferred from the backpack to the cabinet in batches with one click, and similar items can be retrieved from the cabinet in batches to the backpack with one click, realizing rapid batch transfer of items, improving item transfer efficiency and human-computer interaction efficiency, thereby optimizing user experience.
  • Figure 1 is a schematic diagram of the implementation environment of a virtual item transfer method provided by an embodiment of the present application.
  • the implementation environment includes: a first terminal 120, a server 140 and a second terminal 160.
  • the first terminal 120 has an application program supporting virtual scenes installed and running.
  • the application includes: survival and construction games, open world games, management and construction games, exploration games, sandbox games, FPS (First-Person Shooting) games, TPS (Third-Personal Shooting) , third-person shooter) game, MOBA (Multiplayer Online Battle Arena, multiplayer online tactical competition) game, virtual reality application, three-dimensional map program or any of the multiplayer equipment survival games.
  • the first terminal 120 is a terminal used by the first user.
  • the user interface of the application program is displayed on the screen of the first terminal 120, and a virtual scene is loaded and displayed in the application program based on the first user's deployment operation in the user interface.
  • the first user uses the first terminal 120 to operate the first virtual object located in the virtual scene to perform activities. This activity includes but is not limited to: adjusting body posture, crawling, walking, running, riding At least one of walking, jumping, driving, picking up, shooting, attacking, throwing, and fighting.
  • the first virtual object may be a virtual character, such as a simulated character or an animation character.
  • the first terminal 120 can control the first virtual object to pick up or collect virtual items in the virtual scene.
  • the first terminal 120 and the second terminal 160 communicate directly or indirectly with the server 140 through a wireless network or a wired network.
  • the server 140 includes at least one of one server, multiple servers, a cloud computing platform, or a virtualization center.
  • the server 140 is used to provide background services for applications that support virtual scenes.
  • the server 140 undertakes the main calculation work, and the first terminal 120 and the second terminal 160 undertake the secondary calculation work; or, the server 140 undertakes the secondary calculation work, and the first terminal 120 and the second terminal 160 undertake the main calculation work;
  • the server 140, the first terminal 120, and the second terminal 160 use a distributed computing architecture to perform collaborative computing.
  • the server 140 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, and cloud communications. , middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN) and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • cloud services cloud databases, cloud computing, cloud functions, cloud storage, network services, and cloud communications.
  • middleware services domain name services, security services
  • content delivery network Content Delivery Network, CDN
  • cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • the second terminal 160 has an application program supporting virtual scenes installed and run.
  • the application includes: survival and construction games, open world games, management and construction games, exploration games, sandbox games, FPS games, TPS games, MOBA games, virtual reality applications, three-dimensional map programs, or more Any one of the human-machine survival games.
  • the second terminal 160 is a terminal used by a second user.
  • the user interface of the application program is displayed on the screen of the second terminal 160, and a virtual scene is loaded and displayed in the application program based on the second user's deployment operation in the user interface.
  • the second user uses the second terminal 160 to operate the second virtual object located in the virtual scene to perform activities.
  • the activity includes, but is not limited to: at least one of adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and confrontation.
  • the second virtual object may be another virtual character different from the first virtual object, such as a simulated character or an animation character.
  • the second terminal 160 can control the second virtual object to pick up or collect virtual items in the virtual scene.
  • the first virtual object controlled by the first terminal 120 and the second virtual object controlled by the second terminal 160 are in the same virtual scene. At this time, the first virtual object can interact with the second virtual object in the virtual scene. interactive.
  • the first virtual object and the second virtual object have a hostile relationship.
  • the first virtual object and the second virtual object belong to different camps or teams; or the first virtual object and the second virtual object are teammates.
  • the first virtual object and the second virtual object belong to the same camp or the same team.
  • the first terminal 120 or the second terminal 160 displays a first storage space and a second storage space, and a plurality of storage container labels are displayed in the second storage space, and each storage container label is Corresponds to an item storage area.
  • the target virtual item is directly transferred from the first storage space to the item storage area corresponding to the target storage container label; if the release position is located in the target storage container label, Then all virtual items of the same type as the target virtual item are batched into the item storage area corresponding to the target storage container label.
  • the first storage space is a portable storage space for virtual objects such as backpacks and luggage.
  • the second storage space is a non-portable storage space for virtual objects such as cabinets, warehouses, homes, courtyards, and bases. This enables one-click batch transfer of virtual items and similar items, greatly improving item transfer efficiency and human-computer interaction efficiency.
  • the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different operating system platforms.
  • the first terminal 120 and the second terminal 160 both generally refer to one of multiple terminals. This embodiment of the present application only takes the first terminal 120 and the second terminal 160 as an example.
  • the device types of the first terminal 120 and the second terminal 160 are the same or different. Device types include: smartphones, tablets, smart speakers, smart watches, smart handheld consoles, portable gaming devices, vehicle-mounted terminals, laptop computers and At least one of, but not limited to, desktop computers.
  • the first terminal 120 and the second terminal 160 are both smart phones or other handheld portable game devices.
  • the terminal includes a smart phone as an example.
  • the number of the above terminals may be more or less. For example, there is only one terminal, or there are dozens, hundreds, or more terminals. The embodiments of this application do not limit the number of terminals and device types.
  • FIG. 2 is a flow chart of a virtual item transfer method provided by an embodiment of the present application. Referring to Figure 2, this embodiment is executed by an electronic device. The electronic device is used as a terminal as an example for illustration. This embodiment includes the following steps:
  • the terminal displays a first storage space and a second storage space.
  • the first storage space displays multiple virtual items
  • the second storage space displays multiple storage container labels.
  • Each storage container label Corresponds to an item storage area.
  • the terminal involved in the embodiment of this application refers to any electronic device used by the user that supports the transfer of virtual items between different storage spaces.
  • Applications supporting virtual scenes are installed and run on the terminal.
  • the application includes: survival and construction games, open world games, management and construction games, exploration games, sandbox games, FPS games, TPS games, MOBA games, virtual reality applications, three-dimensional map programs or multiplayer games Equipment survival games, etc.
  • virtual items involved in the embodiments of this application refer to objects that can be collected by virtual objects in a virtual scene and stored in a storage space.
  • virtual items include: virtual materials, virtual props, virtual plants, virtual animals or virtual clothing, etc.
  • the storage space involved in the embodiment of this application refers to a virtual space that can temporarily or permanently store virtual items.
  • storage space can be divided into portable storage space and non-portable storage space.
  • Portable storage space refers to a storage space that can follow the movements of virtual objects, such as backpacks, luggage, packages, material bags, etc. of virtual objects.
  • Non-portable storage spaces refer to storage spaces that cannot follow the movements of virtual objects, such as cabinets, safes, warehouses, homes, courtyards, bases, etc. for virtual objects.
  • a virtual object can be bound to a storage space, and the storage space only opens relevant operation permissions to the bound virtual object.
  • the operation permissions include: permission to store items, permission to take out items, permission to use items, permission to discard items, etc. This can ensure the security of virtual items stored in the storage space and prevent virtual objects from losing their own virtual items.
  • the first storage space and the second storage space involved in the embodiment of the present application refer to two different storage spaces bound to the same virtual object.
  • the first storage space is portable storage space A
  • the second storage space is non-portable storage space B.
  • the first storage space is the portable storage space A1
  • the second storage space is the portable storage space A2.
  • the first storage space is a non-portable storage space B1
  • the second storage space is a non-portable storage space B2.
  • the embodiments of the present application do not specifically limit this.
  • the user starts a game application on the terminal, loads and displays a virtual scene through the game application, and can control virtual objects to collect or pick up virtual items in the virtual scene.
  • the user can open the first storage space where the virtual items to be transferred are stored, and then open the second storage space to which the virtual items are to be transferred. storage space, so that the terminal displays the above-mentioned first storage space and the above-mentioned second storage space.
  • the first storage space is a portable storage space and the second storage space is a storage space different from the first storage space. That is, the second storage space may be a portable or non-portable storage space.
  • the user opens the first storage space through a UI (User Interface, user interface) control of the first storage space.
  • UI User Interface
  • the UI control of the first storage space refers to the backpack control.
  • the user opens the second storage space through the UI control of the second storage space.
  • the UI control of the second storage space refers to the cabinet control.
  • the user can successively open the backpack interface through the backpack control and open the cabinet interface through the cabinet control, so that the terminal displays both the backpack interface (i.e. the first storage space)
  • the cabinet interface i.e. the second storage space
  • the user enters the item transfer interface through the item management control.
  • Item management controls can It is a UI control displayed directly in the virtual scene; or the item management control is an interactive option that is expanded and displayed after the user clicks the menu control in the virtual scene; or the item management control is displayed after the user enters the backpack interface through the backpack control Setting Options.
  • the embodiment of this application does not specifically limit the item management control.
  • the item transfer interface displayed by the game application includes a first storage space and a second storage space bound to the virtual object.
  • a plurality of virtual items to be transferred are displayed in the first storage space. Multiple virtual items are stored in the first storage space.
  • the plurality of virtual items may include one or more virtual items of different item types.
  • multiple virtual items include: 10 pieces of grass cotton (each piece contains 20 pieces of grass cotton), 6 pieces of ore (each piece contains 20 ores), 4 pieces of crabs (each piece contains 20 crabs), etc.
  • the embodiment of the present application does not specifically limit the types of items included in the plurality of virtual items.
  • multiple storage container labels are displayed in the second storage space, and each storage container label corresponds to an item storage area.
  • the plurality of storage container labels are displayed in the second storage space in the form of a storage container list, or the plurality of storage container labels are displayed in the second storage space in a tiled or other arrangement manner.
  • Storage container label the embodiment of the present application does not specifically limit the display method of the storage container label.
  • Each storage container label corresponds to a storage container in the second storage space, and each storage container has its own item storage area. For example, when the second storage space is a "cabinet", the storage container label "Storage Cabinet No. 1" corresponds to the first locker in the cabinet, and the storage capacity of the first locker is The object space is the item storage area corresponding to the storage container label.
  • each storage container label displayed in the second storage space is an interactive UI control.
  • the UI control corresponding to the storage container label will be set to the selected state, thereby displaying the item storage area corresponding to the selected storage container label in the second storage space.
  • the terminal determines the release position of the first drag operation, and the first drag operation is used to drag the target virtual item in the first storage space to the second storage space.
  • the terminal When detecting the operation of dragging the target virtual item in the first storage space to the second storage space, the terminal confirms that the first drag operation is detected.
  • the terminal when the user performs a drag operation of dragging the target virtual item among the plurality of virtual items stored in the first storage space to the second storage space, the terminal responds by dragging the target virtual item to the second storage space.
  • the drag operation of dragging the target virtual item to the second storage space determines the release position of the drag operation.
  • dragging the target virtual item in the first storage space to the second storage space is called a first drag operation.
  • the user performs the first drag operation.
  • the terminal determines the release position of the first drag operation.
  • the release position refers to the position where the user releases the target virtual item after dragging it into the second storage space, which is equivalent to the end point of the dragging trajectory of the dragging operation.
  • the target virtual item is any virtual item in the first storage space.
  • the second storage space includes both an area for displaying storage container labels and an item storage area corresponding to the storage container labels. If the release position is located in the object storage area corresponding to the target storage container label, the following step 203 is executed. If the release position is located on the target storage container label, the following step 204 is performed.
  • the target storage container label may be any storage container label among multiple storage container labels displayed in the second storage space, which is not specifically limited in the embodiment of the present application.
  • the terminal transfers the target virtual item from the first storage space to the first item storage area, and the first item storage area is the target storage container among the multiple storage container tags.
  • the item storage area corresponding to the label, and the target storage container label is any one of multiple storage container labels.
  • the terminal detects that the release position determined in step 202 is located in the first item storage area, that is, the item storage area corresponding to the target storage container label in the second storage space, it represents the user's virtual release of the target.
  • the item is dragged from the first storage space to the item storage area displayed in the second storage space.
  • the transfer operation of a single virtual item is triggered, that is, the terminal determines the target virtual item selected at the starting position of the first drag operation, and then determines the first item storage location where the release position of the first drag operation is located. area, and then transfer the target virtual item from the first storage space to the first item storage area in the second storage space.
  • the target virtual item refers to any virtual item stored in the first storage space selected at the starting position of the first drag operation
  • the target storage container label refers to the item located at the release position of the drag operation.
  • an interactive method is provided to perform an item transfer operation only on the selected target virtual item.
  • the target virtual item selected by the drag operation may contain one or more target virtual items. This is because the target virtual items may be merged/stacked when stored in the first storage space. Multiple target virtual items are merged into one target virtual item for management and storage to save storage resources in the first storage space. For example, one piece of straw cotton displayed in the first storage space contains 20 pieces of straw cotton.
  • one virtual item will be used as the unit of operation. That is, transferring one copy of straw cotton at a time is equivalent to transferring 20 straw cotton contained in one copy of straw cotton at one time.
  • a target virtual item may contain one or more target virtual items
  • the terminal will only perform item transfer on the target virtual items selected by the drag operation in response to the drag operation. If the target virtual item selected by the drag operation only contains a single target virtual item, then a single target virtual item will be transferred at a time. If the target virtual item selected by the drag operation contains multiple target virtual items, multiple target virtual items will be transferred at one time. However, the terminal will not transfer items other than the target virtual items selected in this drag operation.
  • the terminal transfers at least one first-type virtual item in the first storage space to the first item storage area.
  • the first-type virtual item is a virtual item of the same type as the target virtual item. thing.
  • the terminal detects that the release position determined in the above step 202 is located in the target storage container label (rather than the item storage area) in the second storage space, it means that the user transfers the target virtual item from the first storage area.
  • the storage space is dragged to the target storage container label displayed in the second storage space.
  • a batch transfer operation of all virtual items of the same type is triggered. That is, the terminal determines the target virtual item selected at the starting position of the drag operation, then determines the target storage container label where the release position of the drag operation is located, and then determines the target virtual item from the first storage space.
  • the target virtual item refers to any virtual item stored in the first storage space selected at the starting position of the drag operation
  • the target storage container label refers to the storage container where the release position of the drag operation is located. Label.
  • all the above-mentioned virtual items of the same type as the target virtual item include: the target virtual item itself, and similar virtual items in the first storage space that have the same item type as the target virtual item.
  • the terminal detects the third A drag operation, that is, a drag operation of dragging the target virtual item in the first storage space to the second storage space, and the release position of the first drag operation is located at the target storage container label of the second storage space.
  • the terminal determines the item type of the target virtual item, and acquires all virtual items with the item type from a plurality of virtual items stored in the first storage space.
  • all virtual items include: the target virtual item itself, and similar virtual items in the first storage space that have the same item type as the target virtual item. Then, the terminal transfers all virtual items of the same type as the target virtual items in the first storage space to the item storage area corresponding to the target storage container tag in batches.
  • the starting position of the drag operation refers to the starting point of the drag trajectory of the drag operation
  • the virtual item associated with the starting position refers to the display area of the virtual item in which the starting position is located.
  • each virtual item will have a display area on the first storage space. According to the display area of which virtual item the starting position is located, it can be determined which virtual item is associated with the starting position.
  • the terminal uses the item identifier of the target virtual item as the item type of the target virtual item. For example, if the target virtual item selected by the drag operation is "grass cotton", then Use the item identifier 031 of "grass cotton” as the item type of the target virtual item.
  • the terminal may also use the type identifier associated with the target virtual item selected by the drag operation as the item type of the target virtual item.
  • the virtual item selected by the drag operation is "grass cotton"
  • the type identifier 001 associated with "grass cotton” for example, the type identifier 001 represents "crop"
  • the embodiments of this application do not specifically limit the acquisition method of item types.
  • the terminal detects a drag operation and the release position of the drag operation is located on the storage container label displayed in the second storage space (rather than the item storage area), it represents that the user has interest in the selected virtual item. Bulk item transfer requirements for and similar items. Furthermore, the terminal determines the target virtual item selected by the drag operation, and acquires all virtual items of the same type as the target virtual item from the plurality of virtual items stored in the first storage space according to the item type of the target virtual item. Among them, all virtual items of the same type as the target virtual item include: the target virtual item itself, and similar virtual items in the first storage space that have the same item type as the target virtual item.
  • similar virtual items refer to other virtual items that are not selected by the drag operation and have the same item type as the target virtual item in the first storage space. Similar virtual items may be referred to as similar items for short. Then, the terminal automatically and in batches transfers all the above-mentioned virtual items of the same type as the target virtual items from the first storage space to the item storage area corresponding to the target storage container label of the second storage space.
  • the above-mentioned target virtual item refers to a virtual item selected by a drag operation
  • a target virtual item may include one or more target virtual items.
  • the drag operation selects 1 piece of grass cotton, and 1 piece of grass cotton contains 20 pieces of grass cotton; similarly, the above-mentioned virtual items of the same type refer to a piece that is not selected by the drag operation but has the same item type as the target virtual item. or multiple virtual items.
  • there can be one or more virtual items of the same type and each virtual item of the same type may contain one or more virtual items of the same type. For example, if 1 copy of straw cotton is selected by the drag operation, a total of 8 copies of straw cotton are stored in the first storage space.
  • the remaining 7 copies of the same type of straw cotton can be obtained.
  • Each of the 7 portions of straw cotton contains 20 straw cotton.
  • all the virtual items of the same type as the target virtual item "Cao Mian" obtained by the terminal include: 1 target virtual item (1 piece of Cao Mian selected by the drag operation) and 7 virtual items of the same type (the first storage space (7 pieces of straw cotton of the same type), a total of 8 pieces of straw cotton, or 160 pieces of straw cotton, need to be transferred from the first storage space to the item storage area corresponding to the label of the target storage container.
  • the terminal removes all virtual items of the same type as the target virtual item from the first storage space, and displays the virtual item corresponding to the target storage container label in the second storage space.
  • the item storage area in order to realize the batch transfer of all virtual items of the same type as the target virtual item, and to visually display the completion of the item transfer to the user.
  • the terminal sends a batch item transfer request to the server.
  • the batch item transfer request carries the respective item numbers of all virtual items of the same type as the target virtual item.
  • the item number is used to characterize the specific number of the virtual item
  • the item identifier is used to characterize what kind of item the virtual item is.
  • Different virtual items have different and unique item numbers, and virtual items of the same type have the same item ID.
  • the item ID of a certain virtual item is 031, which means that the virtual item is "grass cotton", but the item number of the virtual item is 000010, which means that the virtual item is the 10th virtual item collected by the virtual object.
  • the terminal stores the respective item numbers of all virtual items of the same type as the target virtual item into an item number queue, and encapsulates the item number queue into the batch item transfer request.
  • the server parses the item number queue. The server removes each item number in the item number queue from the storage metadata of the first storage space, and adds each item number to the storage metadata associated with the target storage container label of the second storage space. , thereby achieving batch dump of all virtual items indicated by each item number.
  • the terminal after determining the target virtual item selected by the drag operation, the terminal encapsulates the item number and item type of the target virtual item into the batch item transfer request, and sends the batch item transfer request. to the server.
  • the server parses and obtains the item number and item type of the target virtual item.
  • the server queries the storage metadata of the first storage space to determine the respective item numbers of all virtual items of the same type as the target virtual items stored in the first storage space. The server will request all virtual items of the same type as the target virtual item.
  • the respective item numbers of the items are deleted from the storage metadata of the first storage space.
  • the server adds the respective item numbers of all virtual items of the same type as the target virtual item to the storage metadata associated with the target storage container label in the second storage space, thereby realizing the storage metadata of all virtual items of the same type as the target virtual item. Bulk dump of items.
  • the method provided by the embodiment of the present application provides a single transfer of the selected virtual item based on the difference in the release position of the drag operation when a drag operation from one storage space to another storage space is detected. Operation and batch transfer operation for all virtual items of the same type, that is, when the release position is located in the item storage area, only the virtual items selected this time are transferred, and when the release position is located at the storage container label, all virtual items of the same type are transferred in batches Items allow the user to control the release position of the drag operation to flexibly control which virtual items are to be transferred this time, and only require one drag operation to control the batch transfer of similar items, avoiding the user's manual repeated item transfer operations. , reducing the complexity of user operations and improving the efficiency of item transfer and human-computer interaction.
  • FIG 3 is a flow chart of a virtual item transfer method provided by an embodiment of the present application. Referring to Figure 3, this embodiment is executed by an electronic device. The electronic device is used as a terminal for illustration. The embodiment includes the following steps:
  • the terminal displays a first storage space and a second storage space.
  • the first storage space displays multiple virtual items
  • the second storage space displays multiple storage container labels.
  • Each storage container label Corresponds to an item storage area.
  • multiple storage container labels are displayed in the second storage space, and each storage container label corresponds to an item storage area.
  • multiple storage container labels are displayed in the second storage space in the form of a storage container list, or the multiple storage container labels are displayed in the second storage space in a tiled or other arrangement manner.
  • Storage container labels the embodiment of the present application does not specifically limit the display method of storage container labels.
  • Each storage container label corresponds to a storage container in the second storage space, and each storage container has its own item storage area. For example, when the second storage space is a "cabinet", the storage container label "Storage Cabinet No. 1" corresponds to the first locker in the cabinet, and the storage capacity of the first locker is The object space is the item storage area corresponding to the storage container label.
  • each storage container label displayed in the second storage space is an interactive UI (User Interface, user interface) control.
  • UI User Interface, user interface
  • the UI control corresponding to the storage container label will be set to the selected state, thereby displaying the item storage area corresponding to the selected storage container label in the second storage space.
  • the user starts a game application on the terminal, loads and displays a virtual scene through the game application, and can control virtual objects to collect or pick up virtual items in the virtual scene.
  • the user can open the first storage space where the virtual items to be transferred are stored, and then open the second storage space to which the virtual items are to be transferred. storage space, so that the terminal displays the above-mentioned first storage space and the above-mentioned second storage space.
  • the first storage space is a portable storage space and the second storage space is a storage space different from the first storage space. That is, the second storage space may be a portable or non-portable storage space.
  • the first storage space is a portable storage space for backpacks, luggage, packages, material packages, etc. of virtual objects controlled by the terminal.
  • the second storage space is a non-portable storage space such as cabinets, safes, warehouses, homes, courtyards, and bases that do not move with virtual objects.
  • the user opens the first storage space through the UI control of the first storage space.
  • the UI control of the first storage space refers to the backpack control.
  • the user opens the second storage space through the UI control of the second storage space.
  • the UI control of the second storage space refers to the cabinet control.
  • the user can successively open the backpack interface through the backpack control and the cabinet interface through the cabinet control, so that the terminal displays both the backpack interface and the cabinet interface.
  • the cabinet interface i.e., the second storage space
  • the user enters the item transfer interface through the item management control, which may be a UI control directly displayed in the virtual scene.
  • the item management control is an interactive option that is expanded and displayed after the user clicks on the menu control in the virtual scene.
  • the item management control is a setting option displayed after the user enters the backpack interface through the backpack control.
  • the embodiment of this application does not specifically limit the item management control.
  • the item transfer interface displayed by the game application includes a first storage space and a second storage space bound to the virtual object.
  • a plurality of virtual items to be transferred are displayed in the first storage space. Multiple virtual items are stored in the first storage space.
  • the plurality of virtual items may include one or more virtual items of different item types.
  • the multiple virtual items include: 10 pieces of grass cotton (each piece contains 20 pieces of grass cotton), 6 pieces of ore (each piece contains 20 ores), 4 pieces of crabs (each piece contains 20 crabs), etc., this application
  • the embodiment does not specifically limit the item types included in the plurality of virtual items.
  • a list of storage containers is displayed in the second storage space.
  • the storage container list contains multiple storage container tags.
  • Each storage container label is an interactive UI control.
  • the item storage area corresponding to the storage container label of the currently selected interactive UI control is also displayed in the second storage space.
  • the interactive UI control of the storage container label when the user selects any storage container label, the interactive UI control of the storage container label will be set to the selected state, so that the selected storage container will be displayed in the second storage space.
  • the item storage area corresponding to the tag.
  • the interactive UI control of the first storage container label in the storage container list is set to the selected state by default, and the selected state is displayed in the second storage space.
  • the storage container label corresponds to the item storage area.
  • the storage container list can only support the selection of one storage container label, so that whenever the user selects a new storage container label, the interactive UI control of the selected new storage container label is set. is in the selected state, and automatically switches the interactive UI control of the previously selected storage container label from the selected state to the unselected state.
  • the storage container list can also support the simultaneous selection of multiple storage container labels, so that whenever the user selects a new storage container label, the interactive UI control of the selected new storage container label is set to be disabled. selected state, and the interactive UI controls of the storage container labels originally in the selected state remain unchanged, which is equivalent to displaying the respective storage container labels of all interactive UI controls in the selected state in the second storage space. The corresponding item storage area.
  • a list of storage containers is displayed by default in the second storage space, as well as an item storage area corresponding to each storage container label in the storage container list. That is, it is equivalent to not distinguishing the selected state and the unselected state of the interactive UI control of the storage container label, but displaying the corresponding item storage areas of all storage container labels by default.
  • the above implementation method facilitates users to check which virtual items are currently stored in the item storage area corresponding to the label of each storage container, and is conducive to visually displaying the storage status of the second storage space, thereby facilitating users to formulate batch item transfer strategies and improving item management. efficiency.
  • Figure 4 is a schematic diagram of a display interface of a storage space provided by an embodiment of the present application.
  • a first storage space 410 and a second storage space 420 are displayed.
  • Three different types of virtual items 411-413 are included in the first storage space 410.
  • Six storage container labels 421-426 are displayed in the second storage space 420.
  • the interactive UI controls of the storage container labels 422-426 are all unselected, while the interactive UI controls of the storage container label 421 are selected. Therefore, the interactive UI controls of the storage container label 421 are still displayed in the second storage space 420.
  • the item storage area 4211 corresponding to the selected storage container label 421.
  • the storage container label 421 is highlighted in the second storage space 420 .
  • storage The item storage area corresponding to the container label 421 is free, that is, no virtual items are stored in the item storage area corresponding to the storage container label 421.
  • the terminal determines the release position of the first drag operation.
  • the first drag operation is used to drag the target virtual item in the first storage space to the second storage space.
  • the target virtual item The item is any virtual item in the first storage space.
  • the target virtual item refers to any virtual item selected by the first drag operation.
  • the target virtual item refers to the display area of the virtual item in the first storage space where the starting position of the drag operation is located, and the virtual item corresponding to the starting position is determined as the target virtual item.
  • the user's finger first touches and presses the target virtual item in the first storage space. After detecting the pressure signal exerted by the user's finger on the terminal screen, the terminal touch sensor determines the touch point associated with the pressure signal as the starting position of the drag operation. Then, the terminal continuously senses the pressure signal exerted by the user's finger through the touch sensor. Since the user's finger slides dynamically, the terminal can determine a dragging trajectory of the user's finger based on a series of touch points sensed in real time.
  • the terminal represents the user's finger leaving the terminal screen (that is, the drag operation stops and the drag operation ends), and the release position of the drag track is determined at this time.
  • the default duration is any value greater than 0.
  • the starting position and release position of the drag trajectory are determined in the above manner, if the screen coordinates that satisfy the starting position are located in the display area of any virtual item in the first storage space, and the release position is If the screen coordinates of the position are located in the second storage space, it is determined that the first drag operation involved in the above step 302 is detected, that is, the drag operation of dragging the target virtual item in the first storage space to the second storage space. operate.
  • the terminal determines the virtual item associated with the starting position as the target virtual item selected by the first drag operation. At the same time, the terminal obtains the release position of the first drag operation and determines which area of the second storage space the release position is located in.
  • the virtual item associated with the above-mentioned starting position refers to the display area of which virtual item in the first storage space the screen coordinates of the starting position are located.
  • the second storage space includes both the area displaying the storage container label and the item storage area corresponding to the storage container label, if the above-mentioned release position is located in the item storage area, the following step 303 is executed. If the above-mentioned release position If the position is located at the storage container label, the following step 304 is performed.
  • the terminal transfers the target virtual item from the first storage space to the first item storage area, and the first item storage area is the target storage container among the multiple storage container tags.
  • the item storage area corresponding to the label, and the target storage container label is any one of multiple storage container labels.
  • the target storage container refers to any storage container label indicated by the release position of the drag operation in the second storage space.
  • the target storage container label refers to the storage container label corresponding to the item storage area where the release position is located.
  • the target storage container label is the storage container label where the release position is located.
  • step 303 is the same as step 203 of the previous embodiment, and will not be described again here.
  • the terminal determines at least one first-type virtual item from the multiple virtual items stored in the first storage space based on the item type of the target virtual item.
  • Class virtual items are virtual items of this item type.
  • At least one first-type virtual item is a virtual item of the same type as the target virtual item.
  • the terminal detects that the release position determined in step 302 is located in the target storage container label in the second storage space (rather than the item storage area), it means that the user transfers the target virtual item from the first storage space.
  • the storage space is dragged to the target storage container label displayed in the second storage space.
  • a batch transfer operation is triggered for all virtual items of the same type, that is, the terminal determines all virtual items of the same type as the target virtual item from the first storage space, that is, all first-type virtual items. Then, the terminal transfers all the first-type virtual items from the first storage space to the first item storage area.
  • the terminal when the user drags the target virtual item displayed in the first storage space to the second storage space, the After the target storage container label is displayed, the terminal detects the drag operation of dragging the target virtual item in the first storage space to the second storage space, and the drag operation is released. The location is on the target storage container label of the secondary storage space. At this time, the terminal determines the item type of the target virtual item, and acquires all virtual items of the item type from the plurality of virtual items stored in the first storage space.
  • all virtual items include: the target virtual item itself, and similar virtual items in the first storage space that have the same item type as the target virtual item.
  • FIG. 5 is a schematic diagram of a drag operation provided by an embodiment of the present application.
  • a first storage space 510 and a second storage space 520 are displayed.
  • six storage container labels 521-526 are displayed in the second storage space 520.
  • the interactive UI control of the storage container label 521 is in a selected state, so the item storage area 5211 corresponding to the selected storage container label 521 is also displayed in the second storage space 520 .
  • the terminal determines that the first storage space is detected.
  • the drag operation of dragging the target virtual item in to the second storage space Furthermore, the terminal determines that the virtual item 511 is the target virtual item selected by the drag operation, and determines the storage container label 521 as the target storage container label selected by the drag operation. Furthermore, the terminal determines that the release position of the drag operation is located at the target storage container label (ie, the storage container label 521), thereby triggering the transfer of all virtual items of the same type as the target virtual item (ie, the virtual item 511) in the first storage space 510. Items 511-518. Thus, batch transfer to the item storage area 5211 corresponding to the target storage container tag (ie, the storage container tag 521) in the second storage space 520 is achieved. It should be noted that each of the above-mentioned virtual items 511-518 includes 20 virtual items.
  • the user drags a certain virtual item in the first storage space to a certain storage container label in the second storage space to open all virtual items of the same type as the virtual item.
  • a possible implementation of the bulk item transfer process Through this implementation, the batch item transfer process will be triggered only when the user drags the virtual item to the storage container label through the drag operation.
  • the single item transfer process is still triggered. In other words, in the single item transfer process, the drag-and-drop operation will only trigger the transfer of the selected target virtual item (which may be one or more), but will not transfer unselected virtual items of the same type.
  • the drag and drop operation will batch transfer all virtual items of the same type as the target virtual items.
  • the drag operation can be triggered by the user dragging the target virtual item in the first storage space to the target storage container label in the second storage space and then letting go.
  • the terminal detects that the starting position of the drag trajectory is located at the target virtual item in the first storage space. in the display area, and the latest touch point of the drag track (but not necessarily the release position, because the user may continue to maintain the touch state, that is, the user does not let go) is located in the display area of the target storage container label of the second storage space. It is also deemed that the above drag operation is detected.
  • the embodiment of this application does not specifically limit whether the user needs to let go before triggering the drag operation.
  • the terminal may also display the target virtual item and follow the user's finger to move along the drag track until the target virtual item is dragged to the target storage container label. .
  • the terminal determines the target virtual item selected by the drag operation and the target storage container label, and starts a batch item transfer process for all virtual items of the same type as the target virtual item.
  • the terminal may not display the target virtual item and follow the user's finger to move along the dragging trajectory. This is not specifically limited in the embodiments of the present application.
  • the batch item transfer process can also be started through the following interactive method: after the user long-presses the target virtual item in the first storage space to exceed the pressing threshold, clicks on the target storage container in the second storage space. Label.
  • the pressing threshold is any value greater than 0. That is, after the user long-presses the target virtual item in the first storage space until it exceeds the pressing threshold, clickable areas such as storage container labels and item storage areas will be prompted in the second storage space. If it is detected that the user clicked on the target storage container label, it means that all virtual items of the same type as the target virtual item need to be executed.
  • a batch transfer operation is performed to transfer all virtual items of the same type as the target virtual items to the item storage area corresponding to the target storage container label.
  • this item storage area must correspond to a certain storage container label, which means that only the target virtual item needs to be transferred, without the need to transfer the item. Similar virtual items are transferred. At this time, the long-pressed target virtual item is transferred to the clicked item storage area.
  • the terminal determines the release position of the drag operation. . If the release position is located at any of the target storage container labels among the storage container labels 421-426, it means that the user has a batch transfer demand for items, and the terminal will transfer all virtual items of the same type as the target virtual items to the target storage container label at one time. in the corresponding item storage area. If the release position is located in the item storage area 4211, it means that the user has a need to transfer a single item, and the terminal will transfer the target virtual item selected in this drag operation to the item storage area 4211 without transferring similar virtual items.
  • the server side can support one or more drag and drop operations, all of which can trigger batch item transfer operations for all virtual items of the same type as the target virtual item. , which is conducive to improving the success rate of batch item transfer operations.
  • users can also configure the drag and drop operations supported by their terminals according to their personalized operating habits to improve the suitability of drag and drop operations for users.
  • the interaction method for transfer operation of a single item selected this time is still retained, allowing users to flexibly choose the appropriate interaction according to their own item transfer needs. This method greatly improves the user's operational convenience and improves the efficiency of human-computer interaction.
  • the terminal uses the item identifier of the target virtual item as the item type of the target virtual item. For example, the target virtual item selected by the drag operation is "grass cotton" , then use the item identifier 031 of "Grass Cotton” as the item type of the target virtual item. Further, the terminal queries and obtains all virtual items with item identifiers (that is, all virtual items of the same type as the target virtual items) from the plurality of virtual items stored in the first storage space.
  • the user performs a drag operation of dragging the target virtual item 511 located in the upper left corner of the first storage space 510 to the target storage container label 521 and then letting go.
  • the terminal determines the item identifier 031 of the target virtual item 511, that is, "grass cotton", as the item type of the target virtual item.
  • the terminal queries the first storage space 510 to obtain all "grass cotton" 511-518 with the item identification 031, that is, these queried "grass cotton” 511-518 are the same as the target virtual item. 511 All virtual items of the same type.
  • the terminal side may also store a mapping relationship between virtual items and type identifiers. Furthermore, after the terminal determines the target virtual item selected by the drag operation, the terminal queries and obtains the type identifier associated with the target virtual item based on the above mapping relationship. Furthermore, the terminal uses the type identifier obtained by query as the item type of the target virtual item. For example, if the target virtual item selected by the drag operation is "grass cotton", then the type identifier associated with "grass cotton” is queried from the mapping relationship, which is "crop" 001, and then the above type identifier 001 is used as the item of the target virtual item. type. The embodiments of this application do not specifically limit the acquisition method of item types. Further, the terminal queries and obtains all virtual items associated with the type identifier (that is, all virtual items of the same type as the target virtual item) from the plurality of virtual items stored in the first storage space.
  • the user performs a drag operation of dragging the target virtual item 511 located in the upper left corner of the first storage space 510 to the target storage container label 521 and then letting go.
  • the terminal determines the type identifier "crop" 001 associated with the target virtual item 511 as the item type of the target virtual item.
  • the terminal will query and obtain all virtual items associated with the type identifier "crop" 001 in the first storage space 510.
  • the batch transfer operation of all virtual items of the same type as the target virtual item can be started with one click through the drag and drop operation.
  • the user does not need to manually repeat multiple times to transfer a single virtual item, but can transfer the same virtual items as the target at one time.
  • All virtual items of the same type are transferred to the item storage area corresponding to the target storage container label of the second storage space. In the domain, it can improve the efficiency of item transfer and human-computer interaction.
  • the terminal transfers all of at least one first-type virtual item from the first storage space to the first item storage area.
  • At least one first-category virtual item is all virtual items of the above item type, which refers to all virtual items of the same type as the target virtual item.
  • the terminal removes all virtual items of the same type as the target virtual item from the first storage space, and displays the same virtual item as the target virtual item in the item storage area corresponding to the target storage container label in the second storage space. All virtual items of the same type as the item. In other words, the terminal removes at least one first-type virtual item from the first storage space, and displays at least one first-type virtual item in the first item storage area. For example, if each storage container label is displayed in the second storage space in the form of a storage container list, then all virtual items of the same type as the target virtual item can be used as drop-down expansion list items of the target storage container label.
  • the above method can reflect that all virtual items of the same type as the target virtual items have been transferred from the first storage space to the item storage area corresponding to the target storage container label, achieving a visual display of the item transfer results and improving the item transfer results.
  • the intuitiveness improves the efficiency of users’ information acquisition.
  • the interactive UI control of the target storage container label can be set to the selected state, and in the second The item storage area corresponding to the target storage container label is displayed in the storage space.
  • the terminal may remove all virtual items of the same type as the target virtual item from the first storage space. That is, all virtual items of the same type as the target virtual item are no longer displayed in the first storage space.
  • the terminal displays all virtual items of the same type as the target virtual item in the item storage area corresponding to the target storage container label, which is equivalent to realizing in the virtual scene that all virtual items of the same type as the target virtual item are stored in the first storage area. Transfer of storage space to second storage space. Moreover, the user only needs to perform a drag and drop operation to transfer all virtual items of the same type as the target virtual item at once, which improves the efficiency of human-computer interaction.
  • Figure 6 is a schematic interface diagram of an item transfer result provided by an embodiment of the present application.
  • the terminal assume that the user drags the target virtual item 511 located in the upper left corner of the first storage space 510 to the target storage container in the second storage space 520 on the virtual scene 500 shown in Figure 5. If you release the drag operation after tag 521, the terminal will be triggered to determine the item type of the target virtual item 511. Assume that the item type is item identification 031, that is, "grass cotton”. At this time, the terminal obtains all "grass cotton” 511-518 with item identification 031 in the first storage space 510 as all virtual items of the same type as the target virtual item 511. Furthermore, all the "grass cotton” 511-518 originally located in the first storage space 510 in FIG.
  • the terminal displays all the above-mentioned "grass cotton" 511-518 (that is, all virtual items of the same type as the target virtual item 511) to the items corresponding to the target storage container label 521 in the second storage space 520. In storage area 5211.
  • the items are transferred in batches to the item storage area corresponding to which storage container label, thereby improving the user's information acquisition efficiency.
  • the terminal after the terminal determines the target virtual item selected by the drag operation and determines all virtual items of the same type as the target virtual item in the first storage space, stores all the virtual items of the same type as the target virtual item.
  • the respective item numbers of virtual items are stored in an item number queue.
  • the terminal encapsulates the item number queue into a batch item transfer request, and sends the batch item transfer request to the server.
  • the server parses the item number queue, removes each item number in the item number queue from the storage metadata of the first storage space, and adds each item number to the second storage space. in the storage metadata associated with the target storage container tag.
  • This method can achieve batch dump of all virtual items of the same type as the target virtual item.
  • the storage metadata of each storage space is used to record the item numbers of all virtual items stored in this storage space.
  • the item number is used to characterize the specific number of the virtual item
  • the item identifier is used to characterize the type of item the virtual item is.
  • the item ID of a certain virtual item is 031, which means that the virtual item is "grass cotton”, but the item number of the virtual item is 000010, which means the 10th virtual item collected by the virtual object of the virtual item.
  • the terminal encapsulates the item number and item type of the target virtual item into a batch item transfer request, and sends the batch item transfer request to the server.
  • the server parses and obtains the item number and item type of the target virtual item.
  • the server queries the storage metadata of the first storage space to determine all virtual items of the same type as the target virtual item stored in the first storage space, and stores all the queried virtual items of the same type as the target virtual item respectively.
  • the item numbers are deleted from the storage metadata of the first storage space.
  • the server adds the respective item numbers of all virtual items of the same type as the target virtual item to the storage metadata associated with the target storage container label in the second storage space, thereby realizing the integration of all virtual items of the same type as the target virtual item. Bulk dump of items. In this way, there is no need for the terminal to perform the operation of determining all virtual items of the same type as the target virtual item. By transferring this operation to the server, the processing resources of the terminal can be saved.
  • the server side deletes the respective item numbers of all virtual items of the same type as the target virtual items from the storage metadata of the first storage space, and adds them to the target storage container tag of the second storage space.
  • a batch transfer success response is returned to the terminal.
  • the terminal removes all virtual items of the same type as the target virtual items from the first storage space in the virtual scene, and displays the storage of items corresponding to the target storage container label in the second storage space. in the area.
  • the batch transfer success response may be an ACK (Acknowledge Character) message.
  • a possible implementation is provided to transfer all virtual items of the same type as the target virtual item in the first storage space to the item storage area corresponding to the target storage container label. That is, the item type of the target virtual item is first obtained, and then all virtual items of the item type are determined from a plurality of virtual items stored in the first storage space.
  • the above method can ensure that all similar items in the first storage space are traversed to avoid missing similar items, and the user only needs to perform a drag and drop operation on the target virtual item to move all virtual items of the same type as the target virtual item.
  • One-time transfer to the item storage area corresponding to the label of the target storage container eliminates the need for the user to repeatedly drag and drop each similar item, which greatly improves the efficiency of item transfer and human-computer interaction.
  • the terminal displays the UI changes in the virtual scene only after the metadata is modified and stored on the server side, which can save the local processing resources of the terminal.
  • the modified storage metadata can be synchronized to the server, or the modified control information can be synchronized to the server, which can improve the response efficiency of batch item transfers. .
  • the terminal modifies the label name of the target storage container label so that the label name is consistent with the item name of the target virtual item.
  • the terminal may also determine the item name of the target virtual item. For example, the item name of the target virtual item is "grass cotton", and then the determined item name "grass cotton” is set as the label name of the target storage container label. That is, the name of the target virtual item is set to the label name of the target storage container label. As shown in Figure 6, you can see that the label name of the target storage container label is automatically changed from the initial "Storage Cabinet No. 1" to "Grass Cotton". In this way, the user does not need to manually set the label name of the target storage container label. Instead, after the user performs the drag and drop operation, the terminal automatically completes the setting operation of the label name of the target storage container label, which improves the efficiency of human-computer interaction.
  • the terminal sets the item name of the target virtual item to the label name of the target storage container label only when it detects that the label name of the target storage container label is the initial name. For example, assuming that before the user performs the drag-and-drop operation, the label name of the target storage container label is the initial name "Locker No. 1", then after the user performs the drag-and-drop operation, all virtual items of the same type as the target virtual items will be transferred in batches to in the item storage area corresponding to the target storage container label, and change the label name of the target storage container label to the item name of the target virtual item, such as "grass cotton". For another example, suppose that before the user performs the drag and drop operation, the label name of the target storage container label is not the initial name.
  • the terminal will not automatically modify the label name of the target storage container label. That is, the label name of the target storage container label still remains the original name "crop".
  • the terminal after performing a batch item transfer, only transfers the target virtual item to the target storage container when detecting that the item storage area corresponding to the target storage container label contains virtual items of the same item type.
  • the item name is set to the label name of the target storage container label. For example, assume that 10 copies of "grass cotton” are originally stored in the item storage area corresponding to the label of the target storage container, and 8 copies of "grass cotton” are transferred in batches through the drag operation. Since after the batch transfer of items, the item storage area corresponding to the target storage container label still only contains the same virtual item "grass cotton", the item name of the target virtual item is automatically set to the label name of the target storage container label.
  • each item may be counted.
  • the storage quantity of virtual items of the type and automatically sets the item name of the virtual item with the largest storage quantity to the label name of the target storage container label. For example, assume that 10 copies of "Wheat” are originally stored in the item storage area corresponding to the label of the target storage container, and 8 copies of "Grass Cotton” are transferred in batches through the drag operation. At this time, the virtual item with the largest amount of storage is "Wheat", then "Wheat” is automatically set as the label name of the target storage container label.
  • the terminal may also set the label name of the target storage container label to the item names of two or more item types of virtual items stored in the item storage area corresponding to the target storage container label.
  • the label name of the target storage container label For example, assume that 10 copies of "wheat” are originally stored in the item storage area corresponding to the label of the target storage container, and 8 copies of "grass cotton” are transferred in batches through the drag operation. Then set the label name of the target storage container label to "Wheat & Grass Cotton".
  • the embodiment of the present application does not specifically limit the setting method of the label name of the target storage container label.
  • the terminal modifies the label icon of the target storage container label so that the label icon is consistent with the item icon of the target virtual item.
  • the terminal may also determine an item icon of the target virtual item.
  • the item icon of the target virtual item is a grass-cotton pattern, and then the determined grass-cotton pattern is set as the label icon of the target storage container label.
  • the label icon of the target storage container label automatically changes from the initial "empty" to "grass cotton pattern".
  • the above method does not require the user to manually set the label icon of the target storage container label. Instead, after the user performs the drag and drop operation, the terminal automatically completes the setting operation of the label icon of the target storage container label, which improves the efficiency of human-computer interaction.
  • the terminal sets the item icon of the target virtual item to the label icon of the target storage container label only when it detects that the label icon of the target storage container label is the initial icon. For example, assume that before the user performs a drag operation, the label icon of the target storage container label is the initial icon "empty". Then after the user performs the drag and drop operation, all virtual items of the same type as the target virtual item will be transferred in batches to the item storage area corresponding to the target storage container label, and the label icon of the target storage container label will be changed to the item of the target virtual item. Icon like grass cotton pattern. For another example, suppose that before the user performs a drag operation, the label icon of the target storage container label is not the initial icon.
  • a user once changed the target storage container label from the initial icon "empty" to a plant pattern. Then after the user performs the drag operation, since it is detected that the label icon of the target storage container label is not the initial icon, the terminal will not automatically modify the label icon of the target storage container label at this time. That is, the label icon of the target storage container label still maintains the original plant pattern.
  • the terminal after performing a batch item transfer, only transfers the target virtual item to the target storage container when detecting that the item storage area corresponding to the target storage container label contains virtual items of the same item type.
  • the item icon is set to the label icon of the target storage container label. For example, assume that 10 copies of "grass cotton" are originally stored in the item storage area corresponding to the label of the target storage container, and 8 copies of "grass cotton" are transferred in batches through the drag operation. Because in After the batch transfer of items, the item storage area corresponding to the target storage container label still only contains the same virtual item "grass cotton". Therefore, the item icon of the target virtual item, that is, the grass cotton pattern is automatically set to the target storage container label. label icon.
  • each item may be counted.
  • the storage quantity of virtual items of the type and automatically sets the item icon of the virtual item with the largest storage quantity to the label icon of the target storage container label. For example, assume that 10 copies of "Wheat” are originally stored in the item storage area corresponding to the label of the target storage container, and 8 copies of "Grass Cotton” are transferred in batches through the drag operation. At this time, the virtual item with the largest amount of storage is "wheat", and the wheat pattern is automatically set as the label icon of the target storage container label.
  • the embodiment of the present application does not specifically limit the setting method of the label icon of the target storage container label.
  • the user can quickly complete all virtual items of the same type as the target virtual item from the first Batch transfer from one storage space to a second storage space.
  • the user drags the target virtual item 511 to the target storage container label 521 and then lets go, all virtual items 511-518 of the same type as the target virtual item 511 are deemed to be transferred to the target storage container label 521.
  • the corresponding item storage area 5211 In the corresponding item storage area 5211.
  • the method provided by the embodiment of the present application provides a single transfer of the selected virtual item based on the difference in the release position of the drag operation when a drag operation from one storage space to another storage space is detected.
  • Operations and batch transfer operations for all virtual items of the same type That is, when the release position is in the item storage area, only the selected virtual items are transferred.
  • all virtual items of the same type are transferred in batches, so that the user can control the release position of the drag operation.
  • the operation method for the user to quickly transfer all similar items is introduced in detail.
  • the user can quickly complete all virtual items of the same type as the target virtual item. Batch transfer from the first storage space to the second storage space.
  • a method is proposed to retrieve all virtual items of the same item type from the second storage space to the first storage space in batches. The operation process of the storage space is explained below.
  • FIG. 7 is a flow chart of a virtual item transfer method provided by an embodiment of the present application. Referring to Figure 7, this embodiment is executed by an electronic device. The electronic device is used as a terminal for illustration. This embodiment includes the following steps:
  • the terminal displays a first storage space and a second storage space.
  • a plurality of storage container labels are displayed in the second storage space, and each storage container label corresponds to an item storage area.
  • the method of displaying the storage space in step 701 is the same as the method of displaying the storage space in step 301 of the previous embodiment, and will not be described again here.
  • the terminal determines the target item type associated with the first storage container label, and the second drag operation is used to drag the first storage container label among the plurality of storage container labels. to the first storage space.
  • the user's finger first touches and presses the first storage container label displayed in the second storage space.
  • the first storage container label may be any storage container label in the second storage space.
  • the terminal touch sensor determines the touch point associated with the pressure signal as the starting position of the drag operation.
  • the terminal continuously senses the pressure signal exerted by the user's finger through the touch sensor. Since the user's finger slides dynamically, the terminal can determine a dragging trajectory of the user's finger based on a series of touch points sensed in real time.
  • the terminal represents the user's finger leaving the terminal screen (that is, the drag operation stops and the drag operation ends), and the release position of the drag track is determined at this time.
  • the default duration is any value greater than 0.
  • the terminal determines the storage container label associated with the starting position as the first storage container label selected by the second drag operation.
  • the storage container label associated with the above-mentioned starting position refers to the display area of the interactive UI control of which storage container label in the second storage space the screen coordinates of the starting position are located.
  • FIG. 8 is a schematic diagram of a drag operation provided by an embodiment of the present application.
  • a first storage space 810 and a second storage space 820 are displayed.
  • six storage container labels 821-826 are displayed in the second storage space 820.
  • the interactive UI control of the storage container label 821 is in a selected state, so the item storage area 8211 of the selected storage container label 821 is also displayed in the second storage space 820 .
  • the storage container label 821 is the first storage container label as an example for explanation. Assume that the user performs an operation of dragging the first storage container label 821 in the second storage space 820 to any position in the first storage space 810 and then letting go.
  • the terminal obtains the first storage item.
  • the target item type associated with the container tag 821 is retrieved in batches to the first storage space 810 with all virtual items having the target item type in the item storage area corresponding to the first storage container tag 821 .
  • the user drags a certain storage container label in the second storage space to any position in the first storage space to trigger the drag operation to start the subsequent batch item retrieval process.
  • the batch item retrieval process will be triggered only when the user drags the storage container label to the first storage space through a drag operation.
  • the single item retrieval process can still be supported. In other words, only the dragging operation of dragging the storage container label to the first storage space will trigger the batch retrieval of all virtual objects of the associated target item type in the item storage area corresponding to the first storage container label. thing.
  • the user drags the label of the first storage container in the second storage space to any position in the first storage space and then lets go, which can trigger the dragging of the label of the first storage container to the first storage space.
  • Drag and drop operation in object space.
  • the user does not let go after dragging the first storage container label to the first storage space, as long as the terminal detects that the starting position of the drag trajectory is located in the first storage space of the second storage space, Within the display area of the interactive UI control of the object container label, and the latest touch point of the drag track (but not necessarily the release position, because the user may continue to maintain the touch state, that is, the user does not let go) is located in the first storage space. It is also deemed that the drag operation of dragging the first storage container label to the first storage space is detected.
  • the embodiment of this application does not specifically limit whether the user needs to let go before triggering the drag operation.
  • the terminal may also display the first storage container label and follow the user's finger to move along the dragging trajectory until the first storage container label is Drag it to the first storage space. At this time, the terminal starts a batch item retrieval process for all virtual items with the target item type in the item storage area corresponding to the first storage container tag.
  • the terminal may not display the first storage container label and follow the user's finger to move along the dragging trajectory. The embodiments of this application do not do this Specific limitations.
  • the batch item retrieval process can also be started through the following interactive method: after the user long-presses the interactive UI control of the label of the first storage container in the second storage space to exceed the pressing threshold, clicks on the first storage container. any position in object space.
  • the pressing threshold is any value greater than 0. That is, after the user long presses the interactive UI control of the label of the first storage container until it exceeds the pressing threshold, the first storage space will be prompted as a clickable area on the terminal screen.
  • the server side can support one or more drag operations, all of which can trigger targets in the item storage area corresponding to the label of the first storage container.
  • Batch item retrieval operations for all virtual items of the item type will help improve the success rate of batch item retrieval operations.
  • users can also configure the drag and drop operations supported by their terminals according to their personalized operating habits to improve the suitability of drag and drop operations for users.
  • the interactive mode of retrieving single items selected in the item storage area is still retained, such as retrieving virtual items displayed in the item storage area.
  • the drag-and-drop operation to the first storage space will trigger the process of retrieving a single virtual item from the second storage space to the first storage space, allowing users to flexibly choose appropriate interactions according to their own item retrieval needs.
  • This method greatly improves the user's operational convenience and improves the efficiency of human-computer interaction.
  • the terminal may determine the item type of the virtual item associated with the label name of the first storage container label as the target item type. . That is, when the user performs a drag operation on the first storage container label, it is likely that what the user wants to retrieve in batches are all virtual items of the same type associated with the label name. By determining the item type of the virtual item associated with the tag name as the target item type, the accuracy of obtaining the target item type can be improved. For example, if the label name of the first storage container label is "cotton grass", then the item type associated with "cotton grass", that is, the item identifier 031, is used as the target item type.
  • the terminal may also determine the item type of the virtual item associated with the label icon of the first storage container label as the target item type. That is, when the user performs a drag operation on the first storage container label, the user may want to retrieve in batches all the virtual items of the same type associated with the label icon.
  • the item type of the virtual item associated with the label icon is determined by as the target item type, which can also improve the accuracy of obtaining the target item type. For example, if the label icon of the first storage container label is a straw cotton pattern, then the item type associated with the straw cotton pattern, that is, the item identifier 031, is used as the target item type.
  • the terminal may also determine the item type that stores the largest number of virtual items in the item storage area corresponding to the first storage container tag as the target item type. That is, when the item storage area corresponding to the first storage container tag contains virtual items of two or more item types, the terminal determines the item type that stores the largest number of virtual items as the target item type. For example, if the item storage area corresponding to the label of the first storage container contains 20 parts of "grass cotton" and 10 parts of "wheat", then after detecting the dragging of the label of the first storage container to the first storage space, During the drag operation, the item type of the most stored virtual item "grass cotton", that is, item ID 031, is used as the target item type.
  • This provides a possible implementation method for determining the target item type when the item storage area corresponding to the first storage container label contains two or more item types of virtual items, and broadens the applicable scenarios for batch retrieval of items.
  • This application The embodiment does not specifically limit the acquisition method of the target item type.
  • step 702 by dragging the first storage container label to the first storage space, all items with the target item type in the item storage area corresponding to the first storage container label can be opened with one click. Batch retrieval operation of virtual items.
  • the user does not need to manually repeat multiple times to retrieve each virtual item with the target item type mentioned above, but can retrieve all the virtual items with the target item type associated with the selected first storage container tag to the first storage container at once. In a storage space, it can improve the efficiency of item retrieval and human-computer interaction.
  • the terminal transfers at least one second type virtual item in the second item storage area to the first storage space.
  • the second item storage area is the item storage area corresponding to the label of the first storage container, and the second type of virtual item is a virtual item of the target item type.
  • the terminal after the terminal detects the drag operation of dragging the first storage container label to the first storage space, it can determine that the first storage container label selected by the drag operation is obtained.
  • the terminal determines the target item type associated with the first storage container tag through the above step 702.
  • the terminal obtains all virtual items of the target item type from all virtual items stored in the item storage area corresponding to the first storage container tag.
  • the terminal can remove all virtual items with the target item type from the item storage area corresponding to the first storage container label displayed in the second storage space, that is, no longer in the item storage area corresponding to the first storage container label. All virtual items with the target item type are displayed in the item storage area.
  • the terminal displays all virtual items with the target item type in the first storage space, which is equivalent to realizing in the virtual scene that all virtual items with the target item type are transferred from the second storage space to the first storage space.
  • the transfer of space Moreover, the user only needs to perform a drag-and-drop operation on the storage container label to transfer all virtual items of the target item type at one time.
  • all virtual items of the target item type retrieved in batches are the same as all virtual items of the same type as the target virtual items transferred in batches as an example for explanation.
  • all virtual items of the same type as the target virtual item can be transferred to the second storage space in one batch.
  • the first storage container label as the target storage container label as an example, by dragging the target storage container label to the first storage space, all virtual items of the same type as the target virtual item (ie.
  • All virtual items with the target item type are retrieved in batches at one time into the first storage space, but this should not constitute a violation of the virtual items retrieved in batches and Virtual items transferred in batches are limited to the same items.
  • the target item type in this case is the item type of the target virtual item
  • Virtual items transferred in batches are limited to the same items. For example, in the previous embodiment, 10 pieces of straw cotton were transferred in batches from the first storage space to the item storage area corresponding to a certain storage container label A in the second storage space. Thereafter, the user retrieved 20 pieces of "wheat" in batches from the item storage area corresponding to label B of another storage container in the second storage space to the first storage space through the method of the embodiment of the present application.
  • Figure 9 is a schematic interface diagram of an item retrieval result provided by an embodiment of the present application.
  • the terminal assume that the user drags the first storage container label 821 in the second storage space 820 to any position in the first storage space 810 on the virtual scene 800 shown in Figure 8. If you release the drag operation, the terminal will be triggered to determine the target item type associated with the first storage container label 821, such as "grass cotton". That is, the target item type is item identification 031 of "grass cotton”. Next, the terminal obtains all "grass cotton” 831-838 with the item identification 031 in the item storage area corresponding to the first storage container tag 821 as all virtual items with the target item type.
  • the terminal removes all virtual items 831-838 of the target item type originally located in the item storage area 8211 corresponding to the first storage container label 821 in FIG. 8 .
  • the terminal displays all the above-mentioned virtual items 831-838 of the target item type into the first storage space 810.
  • the terminal after the terminal determines all virtual items with the target item type from all virtual items included in the item storage area corresponding to the first storage container tag, the terminal stores all virtual items with the target item type respectively.
  • the item number is stored in an item number queue.
  • the terminal encapsulates the item number queue into a batch item retrieval request, and sends a batch item retrieval request to the server.
  • the server parses the item number queue, removes each item number in the item number queue from the storage metadata associated with the first storage container tag in the second storage space, and Multiple item numbers are added to the storage metadata of the first storage space, thereby achieving batch retrieval of all virtual items of the target item type from the second storage space to the first storage space.
  • the storage metadata of each storage space is used to record the item numbers of all virtual items stored in this storage space.
  • the item number is used to represent the specific number of the virtual item, while the item identifier is used to represent the virtual item. What kind of item is the pseudo-item? For example, the item ID of a certain virtual item is 031, which means that the virtual item is "grass cotton", but the item number of the virtual item is 000010, which means the 10th virtual item collected by the virtual object of the virtual item.
  • the terminal encapsulates the target item type and the first storage container label obtained in step 702 above into a batch item retrieval request, and sends the batch item retrieval request to the server.
  • the server parses to obtain the target item type and the first storage container label.
  • the server queries the storage metadata associated with the first storage container tag in the second storage space to determine all virtual items with the target item type stored in the first storage container tag, and queries The respective item numbers of all virtual items of the target item type are deleted from the storage metadata associated with the first storage container tag.
  • the server adds the respective item numbers of all virtual items with the target item type to the storage metadata of the first storage space, thereby realizing the transfer of all virtual items with the target item type from the second storage space to the third storage space. Batch retrieval of one storage space. In this way, there is no need for the terminal to perform the operation of determining all virtual items of the target item type. By transferring the above determination operation to the server for execution, the processing resources of the terminal can be saved.
  • the server side deletes the respective item numbers of all virtual items with the target item type from the storage metadata associated with the first storage container tag, and adds them after the storage metadata of the first storage space. , returns a batch retrieval success response to the terminal.
  • the terminal removes all virtual items with the target item type from the item storage area corresponding to the first storage container label in the second storage space, and displays them in the second storage space.
  • the batch retrieval success response may be an ACK message.
  • the terminal retrieves all virtual items of the target item type from the second storage space to the first storage space.
  • the terminal displays the UI changes in the virtual scene only after the metadata is modified and stored on the server side, which can save the local processing resources of the terminal.
  • the modified storage metadata can be synchronized to the server, or the modified control information can be synchronized to the server, which can improve the response of batch item retrieval. efficiency.
  • the terminal restores the label name of the first storage container label to the default name.
  • the terminal may change the label name of the first storage container label to The name reverts to the default name.
  • the default name can be the initial name.
  • the label name of the first storage container label is automatically changed from the figure. "Grass Cotton” shown in Figure 8 is restored to the default name "Locker No. 1" shown in Figure 9. The above method does not require the user to manually update the label name of the first storage container label.
  • the terminal automatically updates the first storage container label.
  • the label name of the container label is restored to the initial configuration to avoid user misunderstanding. For example, it prevents users from thinking that there is still grass and cotton stored in locker No. 1, which improves the efficiency of human-computer interaction.
  • the terminal when the label name of the first storage container label is different from the item names of all virtual items of the target item type retrieved in this batch, the terminal does not need to change the first storage container label to the first storage container label name.
  • the label's label name reverts to the default name. For example, the label name of the first storage container label is "crops", and the item names of all virtual items of the target item type retrieved in batches are "grass cotton". Then after the user performs the dragging operation of dragging the label of the first storage container to the first storage space, since it is detected that the label name and the item name are not the same, the terminal will not modify the label of the first storage container at this time.
  • the tag name restores the initial configuration. That is, the label name of the first storage container label still remains the original name "crop".
  • the terminal can determine the first virtual item with the largest number of stored items from other virtual items stored in the item storage area corresponding to the first storage container tag.
  • the terminal sets the label name of the first storage container label as the item name of the first virtual item. For example, assume that the item storage area corresponding to the label of the first storage container originally contains 10 copies of "Grass Cotton” and 8 copies of "Small Cotton”. "Wheat” and 2 copies of "Rose”.
  • the item storage area corresponding to the label of the first storage container still contains other virtual items, namely 8 copies of "Wheat” and 2 copies of "roses".
  • the label name of the first storage container label is updated from the original "grass cotton” to The item name of the first virtual item is "wheat”.
  • the terminal restores the label icon of the first storage container label to the default icon.
  • the terminal may change the label icon of the first storage container label to The label icon reverts to the default icon.
  • the default icon can be the initial icon.
  • the label icon of the first storage container label is automatically returned from The grass cotton pattern shown in Figure 8 is restored to the default icon "empty" shown in Figure 9 .
  • the above method does not require the user to manually update the label icon of the first storage container label.
  • the terminal automatically updates the first storage container label.
  • the label icon of the container label is restored to the initial configuration to avoid user misunderstanding. For example, it prevents users from thinking that there is still grass and cotton stored in locker No. 1, which improves the efficiency of human-computer interaction.
  • the terminal when the label icon of the first storage container label is different from the item icons of all virtual items of the target item type retrieved in this batch, the terminal does not need to change the first storage container label to the first storage container label icon.
  • the label's label icon reverts to the default icon.
  • the label icon of the first storage container label is a plant pattern
  • the item icons of all virtual items of the target item type retrieved in batches are a grass and cotton pattern.
  • the terminal may determine the first virtual item with the largest number of stored items from other virtual items stored in the item storage area corresponding to the first storage container tag.
  • the terminal sets the label icon of the first storage container label as the item icon of the first virtual item. For example, suppose that the item storage area corresponding to the label of the first storage container originally stored 10 copies of "grass cotton", 8 copies of "wheat” and 2 copies of "roses".
  • the terminal updates the label icon of the first storage container label from the original grass and cotton pattern to the item icon of the first virtual item, that is, the wheat pattern.
  • the user can quickly complete the transfer of all virtual items of the target item type from the second storage space.
  • the user drags the first storage container label 821 to the first storage space 810 and then lets go, it is deemed to have the target item type "grass cotton" associated with the first storage container label 821. All similar items 831-838 are retrieved in batches into the first storage space 810.
  • the method provided by the embodiment of the present application provides a drag operation based on dragging the storage container label in the second storage space to the first storage space, triggering the batch retrieval of objects associated with the storage container label.
  • the interaction mode of all virtual items of the item type enables the user to drag all the target item types associated with the selected storage container label only once by dragging the storage container label back to the first storage space.
  • Virtual items of the same type that is, all virtual items with the target item type, are retrieved in batches at one time into the first storage space, avoiding the need for the user to manually execute the items multiple times.
  • Item retrieval operation reduces the complexity of user operations and improves item retrieval efficiency and human-computer interaction efficiency.
  • FIG. 10 is a principle flow chart of a virtual item transfer method provided by the embodiment of this application, as shown in Figure 10
  • the first storage space is a backpack of a virtual object
  • the second storage space is a cabinet of a virtual object as an example:
  • step 1001 the user drags the virtual item to be transferred in the backpack.
  • step 1002 the terminal detects the position of the user's finger when it leaves the terminal screen, that is, the terminal detects the release position of the drag operation.
  • step 1003 the user drags the virtual item to the cabinet grid area, that is, the user drags the virtual item to the item storage area of a certain locker in the cabinet.
  • step 1004 the terminal transfers the single virtual item dragged this time from the backpack to the corresponding locker.
  • the storage cabinet is an exemplary description of the item storage area corresponding to the storage container label.
  • step 1005 the user drags the virtual item to the cabinet classification area, that is, the user drags the virtual item to any storage container label in the cabinet.
  • step 1006 the terminal transfers all virtual items of the same type as the virtual item dragged this time from the backpack to the corresponding locker.
  • step 1007 the terminal automatically names the locker in the cabinet and automatically adds an icon. That is, the terminal automatically configures the container name and container icon for the storage container.
  • FIG 11 is a schematic interface diagram of an object transfer process provided by an embodiment of the present application.
  • a backpack area 1110 and a cabinet area 1120 are displayed in the virtual scene 1100.
  • the backpack area 1110 is an exemplary illustration of the first storage space
  • the cabinet area 1120 is an example of the second storage space.
  • a plurality of virtual items stored in the backpack are displayed in the backpack area 1110 .
  • a cabinet grid area 1121 and a cabinet classification area 1122 are displayed in the cabinet area 1120 .
  • the cabinet grid area 1121 is an exemplary illustration of the item storage area corresponding to the storage container label.
  • Cabinet classification area 1122 is an exemplary illustration of an area in the second storage space where storage container labels are displayed.
  • the release position when the user lets go is in the cabinet grid area or the cabinet classification area. If it is detected that the release position is in the cabinet grid area, the dragged single virtual item will be transferred to the corresponding locker of the cabinet. If the release position is detected to be in the area where the storage container label is displayed. Determine again which locker or storage container label the release position when letting go falls on, and transfer all virtual items in the backpack that are similar to the virtual items dragged this time to the storage determined above at one time. locker, and automatically name the locker and automatically add an icon. For example, read the item name of the dragged virtual item and fill it in the locker name of the locker. At the same time, read the item icon of the dragged virtual item and fill it in the locker icon of the locker. .
  • Figure 12 is a schematic structural diagram of a virtual item transfer device provided by an embodiment of the present application. As shown in Figure 12, the device Settings include:
  • the display module 1201 is used to display a first storage space and a second storage space.
  • a plurality of virtual items are displayed in the first storage space, and a plurality of storage container labels are displayed in the second storage space.
  • Each storage space displays a plurality of virtual items.
  • the object container label corresponds to an object storage area;
  • Determining module 1202 configured to determine the release position of the first drag operation in response to the first drag operation, and the first drag operation is used to drag the target virtual item in the first storage space to the second storage space.
  • the target virtual item is any virtual item in the first storage space;
  • the item transfer module 1203 is used to transfer the target virtual item from the first storage space to the first item storage area if the release position is located in the first item storage area.
  • the first item storage area is one of the plurality of storage container tags.
  • the object storage area corresponding to the target storage container label, and the target storage container label is any one of multiple storage container labels;
  • the item transfer module 1203 is also used to transfer at least one first-type virtual item in the first storage space to the first item storage area if the release position is located on the target storage container label.
  • the first-type virtual item is the same as Virtual items of the same type as the target virtual item.
  • the device provided by the embodiment of the present application provides a single transfer of the selected virtual item based on the difference in the release position of the drag operation when a drag operation from one storage space to another storage space is detected.
  • Operations and batch transfer operations for all virtual items of the same type That is, when the release position is in the item storage area, only the virtual item selected this time is transferred.
  • all virtual items of the same type are transferred in batches, allowing the user to control the release position of the drag operation to flexibly control which virtual items are to be transferred this time.
  • only one drag-and-drop operation is needed to control the batch transfer of similar items, which avoids the user's manual repeated item transfer operations, reduces the user's tedious operations, and improves the efficiency of item transfer and human-computer interaction.
  • the item transfer module 1203 is used to:
  • All at least one first-category virtual item is transferred to the first item storage area.
  • the item transfer module 1203 is used to:
  • At least one first-type virtual item is displayed.
  • the device further includes:
  • the name setting module is used to modify the label name of the target storage container label if the release position is located on the target storage container label, so that the label name is consistent with the item name of the target virtual item.
  • the device further includes:
  • the icon setting module is used to modify the label icon of the target storage container label if the release position is located on the label of the target storage container, so that the label icon is consistent with the item icon of the target virtual item.
  • the device further includes:
  • a type determination module configured to determine the target item type associated with the first storage container label in response to a second drag operation, the second drag operation being used to select the first storage container among the plurality of storage container labels Drag the label to the first storage space, and the label of the first storage container is the label of any storage container in the second storage space;
  • the item transfer module 1203 is also used to transfer at least one second type of virtual item in the second item storage area to the first storage space.
  • the second item storage area is the item storage area corresponding to the label of the first storage container.
  • the second type of virtual item is a virtual item with a target item type.
  • the type determination module is also used to:
  • the item type that stores the largest number of virtual items in the item storage area corresponding to the first storage container label is determined as the target item type.
  • the item transfer module 1203 is also used to:
  • At least one second type virtual item is displayed.
  • the device further includes:
  • a restoration module configured to restore the label name of the first storage container label to a default name in response to the second drag operation
  • the restoration module is also configured to restore the label icon of the first storage container label to a default icon in response to the second drag operation.
  • the device further includes:
  • a setting module configured to respond to the second drag operation and determine the first virtual item with the largest number of stored items from other virtual items when other virtual items are still stored in the second item storage area; for the first storage area
  • the label name of the container label is modified so that the label name is consistent with the item name of the first virtual item
  • the label icon of the first storage container label is modified so that the label icon is consistent with the item icon of the first virtual item .
  • the virtual item transfer device provided in the above embodiment transfers virtual items in batches
  • the division of the above functional modules is only used as an example.
  • the above functions can be allocated to different functions as needed.
  • Module completion means dividing the internal structure of the electronic device into different functional modules to complete all or part of the functions described above.
  • the virtual item transfer device provided by the above embodiments and the virtual item transfer method embodiment belong to the same concept. For details of the implementation process, please refer to the virtual item transfer method embodiment, which will not be described again here.
  • FIG 13 is a schematic structural diagram of a terminal provided by an embodiment of the present application. As shown in Figure 13, terminal 1300 is an exemplary illustration of an electronic device. Generally, the terminal 1300 includes: a processor 1301 and a memory 1302.
  • the processor 1301 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor 1301 adopts at least one of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array). implemented in hardware form.
  • the processor 1301 includes a main processor and a co-processor.
  • the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit);
  • a coprocessor is a low-power processor used to process data in standby mode.
  • the processor 1301 is integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen.
  • the processor 1301 also includes an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • memory 1302 includes one or more computer-readable storage media, which optionally are non-transitory.
  • the memory 1302 also includes high-speed random access memory, and non-volatile memory, such as one or more disk storage devices and flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 1301 to implement the methods provided by various embodiments of this application. Methods of transferring virtual items.
  • the terminal 1300 optionally further includes: a peripheral device interface 1303 and at least one peripheral device.
  • the processor 1301, the memory 1302 and the peripheral device interface 1303 can be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 1303 through a bus, a signal line or a circuit board.
  • the peripheral device includes: at least one of a display screen 1305 and a power supply 1308.
  • the display screen 1305 is used to display UI (User Interface, user interface).
  • the UI includes graphics, text, icons, videos, and any combination thereof.
  • display screen 1305 also has the ability to collect touch signals on or above the surface of display screen 1305 .
  • the touch signal can be input to the processor 1301 as a control signal for processing.
  • the display screen 1305 is also used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 1305 is a flexible display screen, which is disposed on the curved surface or folding surface of the terminal 1300. Even, optionally, the display screen 1305 is set in a non-rectangular irregular shape, that is, a special-shaped screen.
  • the display screen 1305 is made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
  • the power supply 1308 is used to power various components in the terminal 1300.
  • power source 1308 is alternating current, direct current, disposable batteries, or rechargeable batteries.
  • the rechargeable battery supports wired charging or wireless charging.
  • the rechargeable battery is also used to support fast charging technology.
  • FIG. 13 does not limit the terminal 1300, and it can include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
  • FIG 14 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 1400 may vary greatly due to different configurations or performance.
  • the electronic device 1400 includes one or more processors (Central Processing Units, CPU) 1401 and one or more memories 1402, wherein at least one computer program is stored in the memory 1402, and the at least one computer program is loaded and executed by the one or more processors 1401 to implement the functions provided by the above embodiments. Methods of transferring virtual items.
  • the electronic device 1400 also has components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output.
  • the electronic device 1400 also includes other components for realizing device functions, which will not be described again here.
  • a computer-readable storage medium such as a memory including at least one computer program.
  • the at least one computer program can be executed by a processor in the terminal to complete the virtual items in the above embodiments. transfer method.
  • the computer-readable storage media includes ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), Tapes, floppy disks and optical data storage devices, etc.
  • a computer program product including one or more computer programs, the one or more computer programs being stored in a computer-readable storage medium.
  • One or more processors of the electronic device can read the one or more computer programs from the computer-readable storage medium, and the one or more processors execute the one or more computer programs so that the electronic device can execute to complete The virtual item transfer method in the above embodiment.
  • the program is stored in a computer-readable storage medium.
  • the above-mentioned storage medium is a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种虚拟物品的转移方法、装置、电子设备及存储介质。方法包括:显示(201)第一储物空间和第二储物空间;响应于第一拖拽操作,确定(202)第一拖拽操作的释放位置;若释放位置位于第一物品存放区域,则将目标虚拟物品从第一储物空间转移(203)至第一物品存放区域;若释放位置位于目标储物容器标签上,则将第一储物空间中的至少一个第一类虚拟物品转移(204)至第一物品存放区域。

Description

虚拟物品的转移方法、装置、电子设备及存储介质
本申请要求于2022年08月05日提交的申请号为202210944071.1,发明名称为“虚拟物品的转移方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别涉及一种虚拟物品的转移方法、装置、电子设备及存储介质。
背景技术
随着计算机技术的发展,在终端上能够进行的游戏种类越来越丰富,其中,生存建造类游戏是一种较为盛行的游戏,生存建造类游戏以生存和建造作为游戏主题和玩法,玩家在游戏场景中能够控制虚拟对象收集各种虚拟物品作为生存物资,并建造虚拟对象的领地。
发明内容
本申请实施例提供了一种虚拟物品的转移方法、装置、电子设备及存储介质,能够降低批量物品转移的操作繁琐度、提升人机交互效率。该技术方案如下:
一方面,提供了一种虚拟物品的转移方法,应用于终端,该方法包括:
显示第一储物空间和第二储物空间,所述第一储物空间中显示有多个虚拟物品,所述第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域;
响应于第一拖拽操作,确定所述第一拖拽操作的释放位置,所述第一拖拽操作用于将所述第一储物空间中的目标虚拟物品拖拽至所述第二储物空间,所述目标虚拟物品为所述第一储物空间中的任一虚拟物品;
若所述释放位置位于第一物品存放区域,则将所述目标虚拟物品从所述第一储物空间转移至所述第一物品存放区域,所述第一物品存放区域为所述多个储物容器标签中的目标储物容器标签对应的物品存放区域,所述目标储物容器标签为所述多个储物容器标签中的任一个;
若所述释放位置位于所述目标储物容器标签上,则将所述第一储物空间中的至少一个第一类虚拟物品转移至所述第一物品存放区域,所述第一类虚拟物品为与所述目标虚拟物品同类的虚拟物品。
一方面,提供了一种虚拟物品的转移装置,该装置包括:
显示模块,用于显示第一储物空间和第二储物空间,所述第一储物空间中显示有多个虚拟物品,所述第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域;
确定模块,用于响应于第一拖拽操作,确定所述第一拖拽操作的释放位置,所述第一拖拽操作用于将所述第一储物空间中的目标虚拟物品拖拽至所述第二储物空间;
物品转移模块,用于若所述释放位置位于第一物品存放区域,则将所述目标虚拟物品从所述第一储物空间转移至所述第一物品存放区域,所述第一物品存放区域为所述多个储物容器标签中的目标储物容器标签对应的物品存放区域,所述目标储物容器标签为所述多个储物容器标签中的任一个;
所述物品转移模块,还用于若所述释放位置位于所述目标储物容器标签上,则将所述第一储物空间中的至少一个第一类虚拟物品转移至所述第一物品存放区域,所述第一类虚拟物品为与所述目标虚拟物品同类的虚拟物品。
一方面,提供了一种电子设备,配置于终端中,该电子设备包括一个或多个处理器和一个或多个存储器,该一个或多个存储器中存储有至少一条计算机程序,该至少一条计算机程序由该一个或多个处理器加载并执行以实现如上述的虚拟物品的转移方法。
一方面,提供了一种存储介质,该存储介质中存储有至少一条计算机程序,该至少一条计算机程序由处理器加载并执行以实现如上述的虚拟物品的转移方法。
一方面,提供一种计算机程序产品,所述计算机程序产品包括一条或多条计算机程序,所述一条或多条计算机程序存储在计算机可读存储介质中。电子设备的一个或多个处理器能够从计算机可读存储介质中读取所述一条或多条计算机程序,所述一个或多个处理器执行所述一条或多条计算机程序,使得电子设备能够执行上述的虚拟物品的转移方法。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还能够根据这些附图获得其他的附图。
图1是本申请实施例提供的一种虚拟物品的转移方法的实施环境示意图;
图2是本申请实施例提供的一种虚拟物品的转移方法的流程图;
图3是本申请实施例提供的一种虚拟物品的转移方法的流程图;
图4是本申请实施例提供的一种储物空间的显示界面示意图;
图5是本申请实施例提供的一种拖拽操作的原理性示意图;
图6是本申请实施例提供的一种物品转移结果的界面示意图;
图7是本申请实施例提供的一种虚拟物品的转移方法的流程图;
图8是本申请实施例提供的一种拖拽操作的原理性示意图;
图9是本申请实施例提供的一种物品取回结果的界面示意图;
图10是本申请实施例提供的一种虚拟物品的转移方法的原理性流程图;
图11是本申请实施例提供的一种物品转移流程的原理性界面图;
图12是本申请实施例提供的一种虚拟物品的转移装置的结构示意图;
图13是本申请实施例提供的一种终端的结构示意图;
图14是本申请实施例提供的一种电子设备的结构示意图。
具体实施方式
以下,对本申请涉及的术语进行解释。
虚拟场景:是应用程序在终端上运行时显示(或提供)的虚拟环境。该虚拟场景可以是对真实世界的仿真环境,也可以是半仿真半虚构的虚拟环境,还可以是纯虚构的虚拟环境。虚拟场景可以是二维虚拟场景、2.5维虚拟场景或者三维虚拟场景中的任意一种,本申请实施例对虚拟场景的维度不加以限定。例如,虚拟场景可以包括天空、陆地、海洋等,该陆地可以包括沙漠、城市等环境元素,用户可以控制虚拟对象在该虚拟场景中进行移动。可选地,该虚拟场景还可以用于至少两个虚拟对象之间的虚拟场景对抗,在该虚拟场景中具有可供至少两个虚拟对象使用的虚拟资源。
虚拟对象:是指在虚拟场景中的可活动对象。该可活动对象可以是虚拟人物、虚拟动物、动漫人物等,比如:在虚拟场景中显示的人物、动物、植物、油桶、墙壁、石块等。该虚拟对象可以是该虚拟场景中的一个虚拟的用于代表用户的虚拟形象。虚拟场景中可以包括多个虚拟对象,每个虚拟对象在虚拟场景中具有自身的形状和体积,占据虚拟场景中的一部分空间。可选地,当虚拟场景为三维虚拟场景时,可选地,虚拟对象可以是一个三维立体模型,该三维立体模型可以是基于三维人体骨骼技术构建的三维角色,同一个虚拟对象可以通过穿戴不同的皮肤来展示出不同的外在形象。在一些实施例中,虚拟对象也可以采用2.5维或2维模型来实现,本申请实施例对此不加以限定。
可选地,该虚拟对象可以是通过客户端上的操作进行控制的玩家角色,也还可以是设置在虚拟场景中能够进行互动的非玩家角色(Non-Player Character,NPC)、中立虚拟对象(如 能够提供增益BUFF、经验值、虚拟宝箱等的野怪),还可以是设置在虚拟场景中的游戏机器人(如陪玩机器人)。示意性地,该虚拟对象是在虚拟场景中进行竞技的虚拟人物。可选地,该虚拟场景中参与互动的虚拟对象的数量可以是预先设置的,也可以是根据加入互动的客户端的数量动态确定的。
虚拟物品:是指在虚拟场景中能够被虚拟对象执行互动行为的物体。虚拟物品可以是虚拟物资、虚拟道具、虚拟植物、虚拟动物、虚拟衣物等,比如,在虚拟场景中显示的:种子、食材、桌子、椅子、砖瓦等。虚拟场景中可以包含大量的虚拟物品,每个虚拟物品在虚拟场景中具有自身的形状和体积,占据虚拟场景中的一部分空间。可选地,当虚拟场景为三维虚拟场景时,可选地,虚拟物品可以是一个三维立体模型。在一些实施例中,虚拟物品也可以采用2.5维或2维模型来实现,本申请实施例对此不加以限定。
生存建造类游戏:一种以生存建造作为游戏主题和玩法的游戏,玩家在游戏场景中可以收集各种虚拟物品作为生存物资,并能够建立自己的领地,也支持利用收集到的原材料合成自己的生活物品。生存建造类游戏的玩法多样,自由度很高,玩家能够在游戏场景中自由地进行探索,并且还可以利用游戏场景中的任何物品来建造、创造或组合成生存所需的新物品。例如,根据游戏背景设定的不同,生存建造类游戏包括:太空生存建造类游戏、沙盒生存建造类游戏等。
在目前的生存建造类游戏中,出于生存和建造的需求,玩家经常需要控制虚拟对象在虚拟场景中采集大量的虚拟物品。通常,虚拟物品会被优先放置到虚拟对象的背包中。由于背包容量有限,在背包装满时需要玩家将背包中的虚拟物品转移到橱柜中,才能够继续采集新的虚拟物品。
在上述将虚拟物品从背包转移到橱柜的过程中,经常涉及到玩家需要频繁地将背包中的大量虚拟物品手动转移到橱柜中,并还需要玩家手动对转移到橱柜中的物品进行分类。比如,在物品转移时,玩家需要打开橱柜界面,并选中背包中待转移的虚拟物品,将选中的虚拟物品从背包拖拽到橱柜的某个储物柜的物品存放区域后松手,实现对单个物品的转移。重复多次执行上述拖拽操作,直到同类物品全部转移到橱柜中,再点击橱柜设置按钮,打开弹窗对橱柜进行重命名或选择橱柜图标。可以看出,上述批量物品转移的操作繁琐且操作链路较长,因此物品转移效率低、人机交互效率低、用户体验差。
有鉴于此,本申请实施例提供一种虚拟物品的转移方法,针对生存建造类游戏中玩家频繁存在的批量物品转移的需求,提供一种快速将同类物品从一种储物空间转移到另一种储物空间的互动方式。比如,能够一键从背包将同类物品批量转移到橱柜中,也能够一键从橱柜将同类物品批量取回到背包中,实现快速批量物品转移,提升物品转移效率和人机交互效率,从而优化用户体验。
以下对本申请实施例的系统架构进行说明。
图1是本申请实施例提供的一种虚拟物品的转移方法的实施环境示意图。参见图1,该实施环境包括:第一终端120、服务器140和第二终端160。
第一终端120安装和运行有支持虚拟场景的应用程序。可选地,该应用程序包括:生存建造类游戏、开放世界游戏、经营建设类游戏、探索类游戏、沙盒游戏、FPS(First-Person Shooting,第一人称射击)游戏、TPS(Third-Personal Shooting,第三人称射击)游戏、MOBA(Multiplayer Online Battle Arena,多人在线战术竞技)游戏、虚拟现实应用程序、三维地图程序或者多人器械类生存游戏中的任意一种。
在一些实施例中,第一终端120是第一用户使用的终端。当第一终端120运行该应用程序时,第一终端120的屏幕上显示应用程序的用户界面,并基于第一用户在用户界面中的开局操作,在应用程序中加载并显示虚拟场景。第一用户使用第一终端120操作位于虚拟场景中的第一虚拟对象进行活动。该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑 行、跳跃、驾驶、拾取、射击、攻击、投掷、对抗中的至少一种。示意性的,第一虚拟对象可以是虚拟人物,比如仿真人物角色或动漫人物角色。第一终端120能够控制第一虚拟对象在虚拟场景中拾取或采集虚拟物品。
第一终端120以及第二终端160通过无线网络或有线网络与服务器140进行直接或间接地通信连接。
服务器140包括一台服务器、多台服务器、云计算平台或者虚拟化中心中的至少一种。服务器140用于为支持虚拟场景的应用程序提供后台服务。可选地,服务器140承担主要计算工作,第一终端120和第二终端160承担次要计算工作;或者,服务器140承担次要计算工作,第一终端120和第二终端160承担主要计算工作;或者,服务器140、第一终端120和第二终端160三者之间采用分布式计算架构进行协同计算。
可选地,服务器140是独立的物理服务器,或者是多个物理服务器构成的服务器集群或者分布式系统,或者是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)以及大数据和人工智能平台等基础云计算服务的云服务器。
第二终端160安装和运行有支持虚拟场景的应用程序。可选地,该应用程序包括:生存建造类游戏、开放世界游戏、经营建设类游戏、探索类游戏、沙盒游戏、FPS游戏、TPS游戏、MOBA游戏、虚拟现实应用程序、三维地图程序或者多人器械类生存游戏中的任意一种。
在一些实施例中,第二终端160是第二用户使用的终端。当第二终端160运行该应用程序时,第二终端160的屏幕上显示应用程序的用户界面,并基于第二用户在用户界面中的开局操作,在应用程序中加载并显示虚拟场景。第二用户使用第二终端160操作位于虚拟场景中的第二虚拟对象进行活动。该活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、跳跃、驾驶、拾取、射击、攻击、投掷、对抗中的至少一种。示意性的,第二虚拟对象可以是另一种与第一虚拟对象不同的虚拟人物,比如仿真人物角色或动漫人物角色。第二终端160能够控制第二虚拟对象在虚拟场景中拾取或采集虚拟物品。
在一些实施例中,第一终端120控制的第一虚拟对象和第二终端160控制的第二虚拟对象处于同一虚拟场景中,此时第一虚拟对象能够在虚拟场景中与第二虚拟对象进行互动。
可选地,上述第一虚拟对象以及第二虚拟对象为敌对关系。例如,第一虚拟对象与第二虚拟对象属于不同的阵营或队伍;或者,第一虚拟对象以及第二虚拟对象为队友关系,例如,第一虚拟对象和第二虚拟对象属于同一个阵营、同一个队伍、具有好友关系或具有临时性的通讯权限。
在一些实施例中,第一终端120或第二终端160显示第一储物空间和第二储物空间,第二储物空间中显示有多个储物容器标签,每个储物容器标签都对应于一个物品存放区域。通过本申请实施例涉及的虚拟物品的转移方法,在检测到从第一储物空间中的目标虚拟物品拖拽至第二储物空间的拖拽操作时,判断拖拽操作的释放位置。若释放位置位于目标储物容器标签对应的物品存放区域,则将目标虚拟物品直接从第一储物空间转移到目标储物容器标签对应的物品存放区域;若释放位置位于目标储物容器标签,则与目标虚拟物品同类的全部虚拟物品都批量到目标储物容器标签对应的物品存放区域中。比如,第一储物空间是虚拟对象的背包、行囊等随身的储物空间。第二储物空间是虚拟对象的橱柜、仓库、家园、庭院、基地等非随身的储物空间。这样能够实现一键批量转移虚拟物品和同类物品,极大提升物品转移效率和人机交互效率。
可选地,第一终端120和第二终端160上安装的应用程序是相同的,或两个终端上安装的应用程序是不同操作系统平台的同一类型应用程序。第一终端120和第二终端160均泛指多个终端中的一个,本申请实施例仅以第一终端120和第二终端160来举例说明。
第一终端120和第二终端160的设备类型相同或不同。设备类型包括:智能手机、平板电脑、智能音箱、智能手表、智能掌机、便携式游戏设备、车载终端、膝上型便携计算机和 台式计算机中的至少一种,但并不局限于此。例如,第一终端120和第二终端160均是智能手机,或者其他手持便携式游戏设备。以下实施例,以终端包括智能手机来举例说明。
本领域技术人员能够知晓,上述终端的数量为更多或更少。比如上述终端仅为一个,或者上述终端为几十个或几百个,或者更多数量。本申请实施例对终端的数量和设备类型不加以限定。
以下,对本申请实施例的批量物品转移流程进行简单介绍。
图2是本申请实施例提供的一种虚拟物品的转移方法的流程图。参见图2,该实施例由电子设备执行,以电子设备为终端为例进行说明,该实施例包括下述步骤:
201、终端显示第一储物空间和第二储物空间,第一储物空间中显示有多个虚拟物品,第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域。
本申请实施例涉及的终端,是指用户所使用的任一支持将虚拟物品在不同储物空间之间转移的电子设备。终端上安装和运行有支持虚拟场景的应用程序。可选地,应用程序包括:生存建造类游戏、开放世界游戏、经营建设类游戏、探索类游戏、沙盒游戏、FPS游戏、TPS游戏、MOBA游戏、虚拟现实应用程序、三维地图程序或者多人器械类生存游戏等。
本申请实施例涉及的虚拟物品,是指在虚拟场景中能够被虚拟对象采集并存放到储物空间的物体。可选地,虚拟物品包括:虚拟物资、虚拟道具、虚拟植物、虚拟动物或者虚拟衣物等。
本申请实施例涉及的储物空间,是指能够暂时性或者永久性存放虚拟物品的虚拟空间。例如,储物空间可以划分为随身的储物空间和非随身的储物空间。随身的储物空间是指能够跟随虚拟对象的行动而随之移动的储物空间,如虚拟对象的背包、行囊、包裹、物资包等。非随身的储物空间则是指不能够跟随虚拟对象的行动而随之移动的储物空间,如虚拟对象的橱柜、保险柜、仓库、家园、庭院、基地等。
可选地,虚拟对象可以绑定储物空间,且储物空间仅对已绑定的虚拟对象开放相关操作权限。如,操作权限包括:物品存放权限、物品取出权限、物品使用权限、物品丢弃权限等。这样能够保证存放在储物空间中的虚拟物品的安全性,避免虚拟对象丢失自身拥有的虚拟物品。
示意性地,本申请实施例涉及的第一储物空间和第二储物空间,是指与同一虚拟对象绑定的两个不同的储物空间。比如,第一储物空间是随身的储物空间A,第二储物空间是非随身的储物空间B。又比如,第一储物空间是随身的储物空间A1,第二储物空间是随身的储物空间A2。又比如,第一储物空间是非随身的储物空间B1,第二储物空间是非随身的储物空间B2。本申请实施例对此不进行具体限定。
在一些实施例中,用户在终端上启动游戏应用,通过该游戏应用加载并显示虚拟场景,在虚拟场景中能够控制虚拟对象采集或拾取虚拟物品。在用户存在将虚拟物品从一个储物空间向另一个储物空间的转移需求时,用户可以打开储存了待转移的虚拟物品的第一储物空间,再打开准备将虚拟物品转移到的第二储物空间,使得终端显示上述第一储物空间和上述第二储物空间。在本申请实施例中,将以第一储物空间是随身的储物空间,第二储物空间是与第一储物空间不同的储物空间为例进行说明。即,第二储物空间可以是随身的或者非随身的储物空间。
在一些实施例中,用户通过第一储物空间的UI(User Interface,用户界面)控件打开第一储物空间。例如,第一储物空间是虚拟对象的背包时,第一储物空间的UI控件是指背包控件。同理,用户通过第二储物空间的UI控件打开第二储物空间。例如,第二储物空间是虚拟对象的橱柜时,第二储物空间的UI控件是指橱柜控件。可选地,用户存在将虚拟物品从背包转移到橱柜的需求时,用户可以先后通过背包控件打开背包界面、通过橱柜控件打开橱柜界面,使得终端既显示有背包界面(即第一储物空间)又显示有橱柜界面(即第二储物空间)。
在另一些实施例中,用户通过物品管理控件进入到物品转移界面中。物品管理控件可以 是直接显示在虚拟场景中的UI控件;或者,物品管理控件是用户点击虚拟场景中的菜单控件后展开显示的交互选项;或者,物品管理控件是用户在通过背包控件进入到背包界面后显示的设置选项。本申请实施例对物品管理控件不进行具体限定。在游戏应用所显示的物品转移界面中,包括虚拟对象所绑定的第一储物空间和第二储物空间。
在一些实施例中,在第一储物空间中显示有待转移的多个虚拟物品。多个虚拟物品均被存放在第一储物空间中。多个虚拟物品可以包括一种或多种不同物品类型的虚拟物品。比如,多个虚拟物品中包括:10份草棉花(每份包含20个草棉花),6份矿石(每份包含20个矿石),4份螃蟹(每份包含20个螃蟹)等。本申请实施例对该多个虚拟物品所包含的物品类型不进行具体限定。
在一些实施例中,在第二储物空间中显示有多个储物容器标签,每一储物容器标签都对应于一个物品存放区域。示意性地,在第二储物空间中以储物容器列表的方式来显示该多个储物容器标签,或者,在第二储物空间中以平铺或其他排布方式来显示该多个储物容器标签,本申请实施例对储物容器标签的显示方式不进行具体限定。其中,每个储物容器标签都对应于第二储物空间中的一个储物容器,而每个储物容器都具有自身的物品存放区域。比如,在第二储物空间是“橱柜”的情况下,储物容器标签“储物柜1号”对应于橱柜中的第1个储物柜,而第1个储物柜所具有的储物空间就是储物容器标签对应的物品存放区域。
在一些实施例中,第二储物空间中显示的每个储物容器标签都是一个可交互UI控件。用户选中任一储物容器标签时,该储物容器标签对应的UI控件会被置为被选中状态,从而在第二储物空间中展示被选中的储物容器标签所对应的物品存放区域。上述方式方便用户随时查看选中的储物容器标签对应的物品存放区域中存放了哪些虚拟物品,提升了虚拟物品的管理效率。
202、响应于第一拖拽操作,终端确定第一拖拽操作的释放位置,第一拖拽操作用于将第一储物空间中的目标虚拟物品拖拽至第二储物空间。
终端在检测到将第一储物空间中的目标虚拟物品拖拽至第二储物空间中的操作时,确认检测到第一拖拽操作。
在一些实施例中,对第一储物空间中存放的多个虚拟物品中的目标虚拟物品,用户执行将该目标虚拟物品拖拽至第二储物空间的拖拽操作时,终端响应于将目标虚拟物品拖拽至第二储物空间的拖拽操作,确定拖拽操作的释放位置。为便于描述,将对第一储物空间中的目标虚拟物品拖拽至第二储物空间称为第一拖拽操作,对于第一存储空间中的目标虚拟物品,用户执行第一拖拽操作时,终端确定该第一拖拽操作的释放位置。释放位置是指用户将该目标虚拟物品拖拽第二储物空间之后松手的位置,即相当于该拖拽操作的拖拽轨迹的操作结束点。其中,目标虚拟物品为第一储物空间中的任一虚拟物品。
在一些实施例中,在第二储物空间中,既包含显示储物容器标签的区域,也包含储物容器标签对应的物品存放区域。若上述释放位置位于目标储物容器标签对应的物品存放区域,则执行下述步骤203。若上述释放位置位于目标储物容器标签上,则执行下述步骤204。其中,目标储物容器标签可以是第二储物空间中显示的多个储物容器标签中的任一储物容器标签,本申请实施例对此不进行具体限定。
203、若释放位置位于第一物品存放区域,则终端将目标虚拟物品从第一储物空间转移至第一物品存放区域,第一物品存放区域为多个储物容器标签中的目标储物容器标签对应的物品存放区域,目标储物容器标签为多个储物容器标签中的任一个。
在一些实施例中,终端若检测到上述步骤202确定到的释放位置位于第一物品存放区域,也即第二储物空间中目标储物容器标签对应的物品存放区域,即代表用户将目标虚拟物品从第一储物空间拖拽到了第二储物空间中显示的物品存放区域中。此时,触发对单份虚拟物品的转移操作,即,终端确定第一拖拽操作的起始位置所选中的目标虚拟物品,再确定第一拖拽操作的释放位置所位于的第一物品存放区域,进而将该目标虚拟物品从第一储物空间转移 至该第二储物空间中的第一物品存放区域中。其中,目标虚拟物品是指第一拖拽操作的起始位置所选中的第一储物空间中存放的任一份虚拟物品,目标储物容器标签是指拖拽操作的释放位置所位于的物品存放区域所对应的储物容器标签。
在步骤203中,提供一种仅对选中的目标虚拟物品执行物品转移操作的交互方式。需要说明的是,拖拽操作所选中的一份目标虚拟物品中可能会包含一个或多个目标虚拟物品,这是由于目标虚拟物品在第一储物空间中存放时可能会被合并/堆叠,以将多个目标虚拟物品合并成一份目标虚拟物品来进行管理和存放,以节约第一储物空间的存放资源。例如,在第一储物空间中显示的一份草棉花中包含20个草棉花,这时用户进行物品转移操作时,会以一份虚拟物品作为操作单位。即,一次转移1份草棉花,相当于一次转移1份草棉花中所包含的20个草棉花。
需要说明的是,虽然一份目标虚拟物品可能会包含一个或多个目标虚拟物品,但是终端响应于拖拽操作,仅会对拖拽操作所选中的目标虚拟物品执行物品转移。如果拖拽操作所选中的目标虚拟物品仅包含单个目标虚拟物品,那么一次将会转移单个目标虚拟物品。如果拖拽操作所选中的目标虚拟物品包含了多个目标虚拟物品,那么一次将会转移多个目标虚拟物品。但是,终端不会对除了本次拖拽操作所选中的目标虚拟物品以外的其他物品进行转移操作。
204、若释放位置位于目标储物容器标签上,则终端将第一储物空间中至少一个第一类虚拟物品转移至第一物品存放区域,第一类虚拟物品为与目标虚拟物品同类的虚拟物品。
在一些实施例中,终端若检测到上述步骤202确定到的释放位置位于第二储物空间中的目标储物容器标签(而非物品存放区域),即代表用户将目标虚拟物品从第一储物空间拖拽到了第二储物空间中显示的目标储物容器标签上。此时,触发对同类的全部虚拟物品的批量转移操作。即,终端确定该拖拽操作的起始位置所选中的目标虚拟物品,再确定该拖拽操作的释放位置所位于的目标储物容器标签,进而再从第一储物空间中确定与目标虚拟物品同类的全部虚拟物品,最后将与目标虚拟物品同类的全部虚拟物品从第一储物空间转移至该第二储物空间中该目标储物容器标签对应的物品存放区域中。其中,目标虚拟物品是指拖拽操作的起始位置所选中的第一储物空间中存放的任一份虚拟物品,目标储物容器标签是指拖拽操作的释放位置所位于的储物容器标签。可选地,上述与目标虚拟物品同类的全部虚拟物品包括:目标虚拟物品自身,以及第一储物空间中与目标虚拟物品具有相同物品类型的同类虚拟物品。
在一些实施例下,当用户将第一储物空间中显示的目标虚拟物品拖拽至第二储物空间显示的目标储物容器标签上之后松手(即手指离开终端屏幕),终端检测到第一拖拽操作,也即将第一储物空间中目标虚拟物品拖拽至第二储物空间的拖拽操作,且第一拖拽操作的释放位置位于第二储物空间的目标储物容器标签上,此时,终端确定该拖拽操作的起始位置所关联的目标虚拟物品(代表了本次拖拽操作所选中的目标虚拟物品),并从第一储物空间所存放的多个虚拟物品中,确定至少一个第一类虚拟物品,也即与该目标虚拟物品同类的全部虚拟物品。比如,终端确定目标虚拟物品的物品类型,并从该第一储物空间中存放的多个虚拟物品中,获取具有物品类型的全部虚拟物品。其中,全部虚拟物品包括:目标虚拟物品自身,以及第一储物空间中与目标虚拟物品具有相同物品类型的同类虚拟物品。接着,终端将上述第一储物空间中与该目标虚拟物品同类的全部虚拟物品一起批量转移到该目标储物容器标签所对应的物品存放区域中。
可选地,上述拖拽操作的起始位置是指拖拽操作的拖拽轨迹的起点,上述起始位置所关联的虚拟物品是指该起始位置位于哪个虚拟物品的显示区域中。通常,在第一储物空间上每个虚拟物品都会有一个显示区域,根据起始位置位于哪个虚拟物品的显示区域中,即可确定与该起始位置关联的虚拟物品是哪个。
可选地,在确定完毕拖拽操作所选中的目标虚拟物品之后,终端将目标虚拟物品的物品标识作为目标虚拟物品的物品类型。比如,拖拽操作选中的目标虚拟物品是“草棉花”,那么 将“草棉花”的物品标识031作为目标虚拟物品的物品类型。可选地,在确定完毕拖拽操作所选中的目标虚拟物品之后,终端还可以将拖拽操作所选中的目标虚拟物品所关联的类型标识作为目标虚拟物品的物品类型。比如,拖拽操作选中的虚拟物品是“草棉花”,那么确定“草棉花”所关联的类型标识001(例如类型标识001代表“农作物”)之后,将类型标识001作为该目标虚拟物品的物品类型。本申请实施例对物品类型的获取方式不进行具体限定。
在上述过程中,终端在检测到拖拽操作且拖拽操作的释放位置位于第二储物空间中显示的储物容器标签(而非物品存放区域)上时,代表用户存在对所选中虚拟物品及其同类物品的批量物品转移需求。进而,终端确定拖拽操作所选中的目标虚拟物品,并根据目标虚拟物品的物品类型,从第一储物空间所存放的多个虚拟物品中,获取与该目标虚拟物品同类的全部虚拟物品。其中,与该目标虚拟物品同类的全部虚拟物品包括:目标虚拟物品自身,以及第一储物空间中与目标虚拟物品具有相同物品类型的同类虚拟物品。换言之,同类虚拟物品是指在第一储物空间中未被拖拽操作所选中且具有与目标虚拟物品相同的物品类型的其他虚拟物品,同类虚拟物品可以简称为同类物品。接着,终端将上述与该目标虚拟物品同类的全部虚拟物品自动、批量从第一储物空间转移到第二储物空间的目标储物容器标签对应的物品存放区域中。
需要说明的是,上述目标虚拟物品是指拖拽操作所选中的一份虚拟物品,一份目标虚拟物品可能包含一个或多个目标虚拟物品。比如,拖拽操作选中了1份草棉花,而1份草棉花包含20个草棉花;同理,上述同类虚拟物品是指拖拽操作未选中的但具有与目标虚拟物品相同物品类型的一份或多份虚拟物品。换言之,同类虚拟物品可以是一份或多份,而每份同类虚拟物品中有可能包含一个或多个同类虚拟物品。比如,拖拽操作选中了1份草棉花,在第一储物空间中一共存储有8份草棉花,除了拖拽操作选中的1份草棉花以外,可以获取到剩余同类的7份草棉花,而7份草棉花中每份草棉花都包含20个草棉花。最终,终端获取到的与该目标虚拟物品“草棉花”同类的全部虚拟物品包括:1份目标虚拟物品(拖拽操作选中的1份草棉花)和7份同类虚拟物品(第一储物空间中同类的7份草棉花),总共需要从第一储物空间中转移8份草棉花即160个草棉花到目标储物容器标签对应的物品存放区域中。
在一些实施例中,在物品转移过程中,终端将与该目标虚拟物品同类的全部虚拟物品从第一储物空间中移除,并显示在第二储物空间的目标储物容器标签对应的物品存放区域中,以实现对与该目标虚拟物品同类的全部虚拟物品的批量物品转移,并对用户进行物品转移完毕的直观显示。
在一些实施例中,在物品转移过程中,终端向服务器发送批量物品转移请求。批量物品转移请求中携带与该目标虚拟物品同类的全部虚拟物品各自的物品编号。需要说明的是,物品编号用于表征虚拟物品具体具有哪个编号,而物品标识则用于表征虚拟物品是哪种物品。不同的虚拟物品的物品编号不同且唯一,同类的虚拟物品的物品标识相同。比如,某个虚拟物品的物品标识是031,代表虚拟物品是“草棉花”,但该虚拟物品的物品编号则是000010,代表虚拟物品是虚拟对象采集的第10个虚拟物品。
在一些实施例中,终端将与目标虚拟物品同类的全部虚拟物品各自的物品编号存储到一个物品编号队列中,将物品编号队列封装到该批量物品转移请求中。响应于批量物品转移请求,服务器解析得到物品编号队列。服务器将该物品编号队列中的各个物品编号从第一储物空间的存放元数据中移除,并将各个物品编号添加到第二储物空间的目标储物容器标签所关联的存放元数据中,从而实现将各个物品编号所指示的全部虚拟物品的批量转储。
在另一些实施例中,终端在确定了拖拽操作所选中的该目标虚拟物品之后,将目标虚拟物品的物品编号和物品类型封装到该批量物品转移请求中,并将该批量物品转移请求发送到服务器。响应于批量物品转移请求,服务器解析得到目标虚拟物品的物品编号和物品类型。接着,服务器查询第一储物空间的存放元数据,以确定第一储物空间中存放的与目标虚拟物品同类的全部虚拟物品各自的物品编号。服务器将请求中与目标虚拟物品同类的全部虚拟物 品各自的物品编号都从第一储物空间的存放元数据中删除。接着,服务器将该目标虚拟物品同类的全部虚拟物品各自的物品编号都添加到第二储物空间的目标储物容器标签所关联的存放元数据中,从而实现对与目标虚拟物品同类的全部虚拟物品的批量转储。
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。
本申请实施例提供的方法,通过在检测到从一个储物空间向另一储物空间的拖拽操作时,基于拖拽操作的释放位置的不同,分别提供针对本次选中虚拟物品的单一转移操作以及针对同类的全部虚拟物品的批量转移操作,即,在释放位置位于物品存放区域时,仅转移本次选中的虚拟物品,在释放位置位于储物容器标签时,则批量转移同类的全部虚拟物品,使得用户能够控制拖拽操作的释放位置,来灵活控制本次要转移哪些虚拟物品,且只需要一次拖拽操作就能够控制批量转移同类物品,避免了用户手动反复多次执行物品转移操作,降低了用户的操作繁琐度,提升了物品转移效率和人机交互效率。
以下,将对本申请实施例的批量物品转移流程进行详细说明。
图3是本申请实施例提供的一种虚拟物品的转移方法的流程图。参见图3,该实施例由电子设备执行,以电子设备为终端为例进行说明,实施例包括下述步骤:
301、终端显示第一储物空间和第二储物空间,第一储物空间中显示有多个虚拟物品,第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域。
其中,第二储物空间中显示有多个储物容器标签,每一储物容器标签都对应于一个物品存放区域。示意性地,在第二储物空间中以储物容器列表的方式来显示多个储物容器标签,或者,在第二储物空间中以平铺或其他排布方式来显示该多个储物容器标签,本申请实施例对储物容器标签的显示方式不进行具体限定。其中,每个储物容器标签都对应于第二储物空间中的一个储物容器,而每个储物容器都具有自身的物品存放区域。比如,在第二储物空间是“橱柜”的情况下,储物容器标签“储物柜1号”对应于橱柜中的第1个储物柜,而第1个储物柜所具有的储物空间就是储物容器标签对应的物品存放区域。
在一些实施例中,第二储物空间中显示的每个储物容器标签都是一个可交互UI(User Interface,用户界面)控件。用户选中任一储物容器标签时,储物容器标签对应的UI控件会被置为被选中状态,从而在第二储物空间中展示被选中的储物容器标签所对应的物品存放区域。上述方式方便用户随时查看选中的储物容器标签对应的物品存放区域中存放了哪些虚拟物品,提升了虚拟物品的管理效率。
在一些实施例中,用户在终端上启动游戏应用,通过该游戏应用加载并显示虚拟场景,在虚拟场景中能够控制虚拟对象采集或拾取虚拟物品。在用户存在将虚拟物品从一个储物空间向另一个储物空间的转移需求时,用户可以打开储存了待转移的虚拟物品的第一储物空间,再打开准备将虚拟物品转移到的第二储物空间,使得终端显示上述第一储物空间和上述第二储物空间。
在本申请实施例中,将以第一储物空间是随身的储物空间,第二储物空间是与第一储物空间不同的储物空间为例进行说明。即,第二储物空间可以是随身的或者非随身的储物空间。示意性地,第一储物空间是终端所控制的虚拟对象的背包、行囊、包裹、物资包等随身的储物空间。第二储物空间则是不跟随虚拟对象进行移动的橱柜、保险柜、仓库、家园、庭院、基地等非随身的储物空间。
在一些实施例中,用户通过第一储物空间的UI控件打开第一储物空间。例如,第一储物空间是虚拟对象的背包时,第一储物空间的UI控件是指背包控件。同理,用户通过第二储物空间的UI控件打开第二储物空间。例如,第二储物空间是虚拟对象的橱柜时,第二储物空间的UI控件是指橱柜控件。可选地,用户存在将虚拟物品从背包转移到橱柜的需求时,用户可以先后通过背包控件打开背包界面、通过橱柜控件打开橱柜界面,使得终端既显示有背包界 面(即第一储物空间)又显示有橱柜界面(即第二储物空间)。
在另一些实施例中,用户通过物品管理控件进入到物品转移界面中,物品管理控件可以是直接显示在虚拟场景中的UI控件。或者,物品管理控件是用户点击虚拟场景中的菜单控件后展开显示的交互选项。或者,物品管理控件是用户在通过背包控件进入到背包界面后显示的设置选项。本申请实施例对物品管理控件不进行具体限定。在游戏应用所显示的物品转移界面中,包括虚拟对象所绑定的第一储物空间和第二储物空间。
在一些实施例中,在第一储物空间中显示有待转移的多个虚拟物品。多个虚拟物品均被存放在第一储物空间中。多个虚拟物品可以包括一种或多种不同物品类型的虚拟物品。比如,多个虚拟物品中包括:10份草棉花(每份包含20个草棉花),6份矿石(每份包含20个矿石),4份螃蟹(每份包含20个螃蟹)等,本申请实施例对该多个虚拟物品所包含的物品类型不进行具体限定。
在一些实施例中,在第二储物空间中显示有储物容器列表。储物容器列表中包含多个储物容器标签。每个储物容器标签都是一个可交互UI控件。同时,在第二储物空间中还显示有当前处于被选中状态的可交互UI控件所属储物容器标签对应的物品存放区域。
示意性地,用户选中任一储物容器标签时,该储物容器标签的可交互UI控件会被置为被选中状态,从而将会在第二储物空间中展示被选中的该储物容器标签对应的物品存放区域。或者,在用户未选中任何储物容器标签时,默认将储物容器列表中的第一个储物容器标签的可交互UI控件置为被选中状态,并在第二储物空间中展示被选中的储物容器标签对应的物品存放区域。上述方式方便用户随时查看选中的储物容器标签对应的物品存放区域中存放了哪些虚拟物品,提升了虚拟物品的管理效率。
示意性地,当储物容器列表中没有储物容器标签的可交互UI控件处于被选中状态时,则在第二储物空间中仅会显示折叠的储物容器列表,而不会显示物品存放区域。当储物容器列表中任一储物容器标签的可交互UI控件处于被选中状态时,则会在第二储物空间的储物容器列表中将处于被选中状态的可交互UI控件所属的储物容器标签进行突出显示,同时还会在第二储物空间中显示这一储物容器标签对应的物品存放区域。
需要说明的是,在储物容器列表中可以仅支持选中一种储物容器标签,这样每当用户选中新的储物容器标签时,将选中的新的储物容器标签的可交互UI控件置为被选中状态,并自动将原本选中的上一个储物容器标签的可交互UI控件从被选中状态切换成未选中状态。或者,在储物容器列表中还可以支持同时选中多种储物容器标签,这样每当用户选中新的储物容器标签时,将选中的新的储物容器标签的可交互UI控件置为被选中状态,同时原本处于被选中状态的储物容器标签的可交互UI控件也保持不变,相当于第二储物空间中会展示所有处于被选中状态的可交互UI控件各自所属储物容器标签所对应的物品存放区域。
在另一些实施例中,在第二储物空间中默认显示有储物容器列表,以及储物容器列表中每个储物容器标签各自对应的物品存放区域。即,相当于不对储物容器标签的可交互UI控件区分被选中状态和未选中状态,而是默认展示所有储物容器标签各自对应的物品存放区域。上述实现方式方便用户查看每个储物容器标签对应的物品存放区域中目前存放了哪些虚拟物品,有利于直观显示第二储物空间的存放状况,从而便于用户制定批量物品转移策略,提升物品管理效率。
图4是本申请实施例提供的一种储物空间的显示界面示意图。如图4所示,在虚拟场景400中,显示有第一储物空间410和第二储物空间420。在第一储物空间410中包括三种不同类型的虚拟物品411-413。在第二储物空间420中显示有6个储物容器标签421-426。目前,储物容器标签422-426的可交互UI控件均处于未选中状态,而储物容器标签421的可交互UI控件则处于被选中状态,故而在第二储物空间420中还显示有被选中的储物容器标签421对应的物品存放区域4211。可以看出,由于仅有储物容器标签421的可交互UI控件处于被选中状态,因此在第二储物空间420中对储物容器标签421进行突出显示。示意性地,储物 容器标签421对应的物品存放区域是空闲的,即储物容器标签421对应的物品存放区域中没有存放任何虚拟物品。
302、响应于第一拖拽操作,终端确定第一拖拽操作的释放位置,第一拖拽操作用于将第一储物空间中的目标虚拟物品拖拽至第二储物空间,目标虚拟物品为第一储物空间中的任一虚拟物品。
其中,目标虚拟物品是指第一拖拽操作所选中的任一份虚拟物品。例如,目标虚拟物品是指:拖拽操作的起始位置在第一储物空间中位于哪个虚拟物品的显示区域,就将起始位置所对应的虚拟物品确定为目标虚拟物品。
在一些实施例中,用户手指先触摸并按压第一储物空间中的目标虚拟物品。终端触摸传感器在检测到用户手指向终端屏幕施加的压力信号后,确定压力信号关联的触摸点作为拖拽操作的起始位置。接着,终端通过触摸传感器持续感测用户手指施加的压力信号。由于用户手指是动态滑动的,终端基于实时感测到的一系列触摸点能够确定一条用户手指的拖拽轨迹。接着,终端在触摸传感器超过预设时长未感测到压力信号时,代表用户手指离开终端屏幕(即拖拽操作停止、拖拽操作结束),此时确定拖拽轨迹的释放位置。其中,预设时长是任一大于0的数值。
在一些实施例中,在通过上述方式确定了拖拽轨迹的起始位置和释放位置之后,若满足起始位置的屏幕坐标位于第一储物空间中任一虚拟物品的显示区域中,且释放位置的屏幕坐标位于第二储物空间中,则确定检测到了上述步骤302涉及的第一拖拽操作,也即将第一储物空间中的目标虚拟物品拖拽至第二储物空间的拖拽操作。
在一些实施例中,响应于第一拖拽操作,终端将起始位置所关联的虚拟物品确定为第一拖拽操作所选中的目标虚拟物品。同时,终端获取第一拖拽操作的释放位置,并判断该释放位置位于第二储物空间中哪个区域。可选地,上述起始位置所关联的虚拟物品,是指起始位置的屏幕坐标位于第一储物空间中哪个虚拟物品的显示区域内。
由于在第二储物空间中,既包含显示储物容器标签的区域,也包含储物容器标签对应的物品存放区域,若上述释放位置位于物品存放区域,则执行下述步骤303,若上述释放位置位于储物容器标签,则执行下述步骤304。
303、若释放位置位于第一物品存放区域,则终端将目标虚拟物品从第一储物空间转移至第一物品存放区域,第一物品存放区域为多个储物容器标签中的目标储物容器标签对应的物品存放区域,目标储物容器标签为多个储物容器标签中的任一个。
其中,目标储物容器是指拖拽操作的释放位置在第二储物空间中所指示的任一储物容器标签。比如,当释放位置位于物品存放区域时,则目标储物容器标签是指释放位置所位于的物品存放区域对应的储物容器标签。当释放位置位于储物容器标签上时,则目标储物容器标签就是释放位置所位于的储物容器标签。
上述步骤303的实施方式与上一实施例的步骤203同理,这里不做赘述。
304、若释放位置位于目标储物容器标签上,则终端基于目标虚拟物品的物品类型,从该第一储物空间中存放的多个虚拟物品中,确定至少一个第一类虚拟物品,第一类虚拟物品为具有该物品类型的虚拟物品。
其中,至少一个第一类虚拟物品为与目标虚拟物品同类的虚拟物品。
在一些实施例中,终端若检测到上述步骤302确定到的释放位置位于第二储物空间中的目标储物容器标签(而非物品存放区域),即代表用户将目标虚拟物品从第一储物空间拖拽到了第二储物空间中显示的目标储物容器标签上。此时,触发对同类的全部虚拟物品的批量转移操作,即,终端从第一储物空间中确定与目标虚拟物品同类的全部虚拟物品,也即全部的第一类虚拟物品。然后,终端将全部的第一类虚拟物品从第一储物空间转移至第一物品存放区域中。
在一些实施例中,当用户将第一储物空间中显示的目标虚拟物品拖拽至第二储物空间显 示的目标储物容器标签之后松手(即手指离开终端屏幕),终端检测到将该第一储物空间中目标虚拟物品拖拽至第二储物空间的拖拽操作,且拖拽操作的释放位置位于第二储物空间的目标储物容器标签上。此时,终端确定目标虚拟物品的物品类型,并从该第一储物空间中存放的多个虚拟物品中,获取具有该物品类型的全部虚拟物品。其中,全部虚拟物品包括:目标虚拟物品自身,以及第一储物空间中与目标虚拟物品具有相同物品类型的同类虚拟物品。
图5是本申请实施例提供的一种拖拽操作的原理性示意图。如图5所示,在虚拟场景500中,显示有第一储物空间510和第二储物空间520。并且,第二储物空间520中显示有6个储物容器标签521-526。目前,储物容器标签521的可交互UI控件处于被选中状态,故而在第二储物空间520中还显示有被选中的储物容器标签521对应的物品存放区域5211。进一步的,假设用户将第一储物空间510中位于左上角的虚拟物品511拖拽至第二储物空间520中显示的储物容器标签521后松手,终端确定检测到了将第一储物空间中的目标虚拟物品拖拽至第二储物空间的拖拽操作。进而,终端确定虚拟物品511为拖拽操作所选中的目标虚拟物品,并确定储物容器标签521为拖拽操作所选中的目标储物容器标签。进而,终端判断出来拖拽操作的释放位置位于目标储物容器标签(即储物容器标签521),从而触发将第一储物空间510中与目标虚拟物品(即虚拟物品511)同类的全部虚拟物品511-518。从而实现批量地转移到第二储物空间520中与目标储物容器标签(即储物容器标签521)对应的物品存放区域5211中。需要说明的是,上述虚拟物品511-518中的每份虚拟物品都包含了20个虚拟物品。
在上述过程中,示出了用户将第一储物空间的某个虚拟物品拖拽至第二储物空间中的某个储物容器标签上,以开启针对与该虚拟物品同类的全部虚拟物品的批量物品转移流程的一种可能实施方式。通过这种实施方式,使得用户在通过拖拽操作将虚拟物品拖拽到储物容器标签时,才会触发批量物品转移流程。而用户在通过拖拽操作将虚拟物品拖拽到物品存放区域时,仍然触发单份物品转移流程。换言之,在单份物品转移流程中,拖拽操作仅会触发转移本次选中的目标虚拟物品(可能是一个或多个),但不会转移未选中的同类虚拟物品。在批量物品转移流程中,拖拽操作则会批量转移与目标虚拟物品同类的全部虚拟物品。通过提供不同触发方式来开启不同物品转移流程,使得用户能够按照自身物品转移需求来执行相应触发操作,具有更高的灵活性和可操作度。
在一些实施例中,用户将第一储物空间的目标虚拟物品拖拽至第二储物空间的目标储物容器标签后松手,能够触发该拖拽操作。在另一些实施例中,即使用户没有在拖拽至第二储物空间的目标储物容器标签后松手,只要终端检测到拖拽轨迹的起始位置位于第一储物空间的目标虚拟物品的显示区域中,且拖拽轨迹的最新触摸点(但不一定是释放位置,因为用户可能会持续保持触摸状态即用户没有松手)位于第二储物空间的目标储物容器标签的显示区域中,也视为检测到了上述拖拽操作。本申请实施例对用户是否需要松手才能够触发拖拽操作不进行具体限定。
在另一些实施例中,随着用户拖拽目标虚拟物品的操作,终端还可以显示目标虚拟物品跟随用户手指沿着拖拽轨迹进行移动,直到目标虚拟物品被拖动到了目标储物容器标签上。这时由于释放位置位于目标储物容器标签上,终端确定拖拽操作所选中的目标虚拟物品以及目标储物容器标签,并开启针对与目标虚拟物品同类的全部虚拟物品的批量物品转移流程。或者,随着用户拖拽目标虚拟物品的操作,终端也可以不显示目标虚拟物品跟随用户手指沿着拖拽轨迹进行移动,本申请实施例对此不进行具体限定。
在另一些实施例中,批量物品转移流程还可以通过下述交互方式开启:用户长按第一储物空间的目标虚拟物品超过按压阈值之后,点击第二储物空间的中的目标储物容器标签。其中,按压阈值是任一大于0的数值。即,用户长按第一储物空间的目标虚拟物品直至超过按压阈值之后,第二储物空间中将会提示储物容器标签和物品存放区域等可点击区域。若检测到用户点击了目标储物容器标签,代表需要执行针对与目标虚拟物品同类的全部虚拟物品的 批量转移操作,进而将与目标虚拟物品同类的全部虚拟物品一起转移到目标储物容器标签对应的物品存放区域中。反之,若检测到用户点击了第二储物空间中的物品存放区域,这一物品存放区域必定是与某个储物容器标签相对应,则代表仅需要针对目标虚拟物品进行转移,而无需对同类虚拟物品进行转移,此时将长按的目标虚拟物品转移到被点击的物品存放区域中。
在一个示例性场景中,如图4所示,若检测到用户将第一储物空间410中目标虚拟物品拖拽至第二储物空间420的拖拽操作,终端判断拖拽操作的释放位置。若释放位置位于储物容器标签421-426中的任一个目标储物容器标签,代表用户存在批量物品转移需求,进而终端将与目标虚拟物品同类的全部虚拟物品一次性转移到目标储物容器标签对应的物品存放区域中。若释放位置位于物品存放区域4211中,代表用户存在单份物品转移需求,进而终端将本次拖拽操作选中的目标虚拟物品转移到物品存放区域4211中,而无需转移同类虚拟物品。
在上述过程中,由于提供了多种不同实施方式的拖拽操作,这样服务器侧可以支持一种或多种拖拽操作,均能够触发针对与目标虚拟物品同类的全部虚拟物品的批量物品转移操作,有利于提升批量物品转移操作的成功率。并且,用户还可以按照个性化操作习惯来配置自身终端支持的拖拽操作,提升拖拽操作与用户的适配度。进一步的,由于在支持一键批量物品转移操作的交互方式的基础上,仍然保留针对本次选中的单份物品进行转移操作的交互方式,使得用户能够按照自身物品转移需求,灵活选择适应的交互方式,极大提升了用户的操作便捷度,提高了人机交互效率。
在一些实施例中,在确定完毕拖拽操作所选中的目标虚拟物品之后,终端将目标虚拟物品的物品标识作为目标虚拟物品的物品类型比如,拖拽操作选中的目标虚拟物品是“草棉花”,那么将“草棉花”的物品标识031作为目标虚拟物品的物品类型。进一步的,终端从第一储物空间存放的多个虚拟物品中,查询得到具有物品标识的全部虚拟物品(即与目标虚拟物品同类的全部虚拟物品)。
在一个示例中,如图5所示,用户执行将第一储物空间510中位于左上角的目标虚拟物品511拖拽至目标储物容器标签521后松手的拖拽操作。此时终端确定了目标虚拟物品511的物品标识031即“草棉花”作为目标虚拟物品的物品类型。那么在本步骤304中则终端将第一储物空间510中,查询得到具有物品标识031的所有“草棉花”511-518,即这些查询到的“草棉花”511-518就是与目标虚拟物品511同类的全部虚拟物品。
在另一些实施例中,终端侧还可以存储有虚拟物品和类型标识的映射关系。进而,终端在确定了拖拽操作所选中的目标虚拟物品之后,终端基于上述映射关系,查询得到与目标虚拟物品所关联的类型标识。进而,终端将查询得到的类型标识作为目标虚拟物品的物品类型。比如,拖拽操作选中的目标虚拟物品是“草棉花”,那么从映射关系中查询得到“草棉花”所关联的类型标识是“农作物”001,再将上述类型标识001作为目标虚拟物品的物品类型。本申请实施例对物品类型的获取方式不进行具体限定。进一步的,终端从第一储物空间存放的多个虚拟物品中,查询得到与类型标识相关联的全部虚拟物品(即与目标虚拟物品同类的全部虚拟物品)。
在另一个示例中,如图5所示,用户执行将第一储物空间510中位于左上角的目标虚拟物品511拖拽至目标储物容器标签521后松手的拖拽操作。此时,终端确定了目标虚拟物品511所关联的类型标识“农作物”001作为目标虚拟物品的物品类型。那么在本步骤304中则终端将在第一储物空间510中,查询得到与类型标识“农作物”001具有关联关系的全部虚拟物品,例如查询到了如下虚拟物品:“草棉花”511-518和“小麦”531-535,即这些查询到的“草棉花”511-518和“小麦”531-535即为与目标虚拟物品511同类的全部虚拟物品。
在上述过程中,通过拖拽操作能够一键开启对与目标虚拟物品同类的全部虚拟物品的批量转移操作,这样无需用户手动重复多次来转移单份虚拟物品,而是可以一次性将与目标虚拟物品同类的全部虚拟物品一起转移到第二储物空间的目标储物容器标签对应的物品存放区 域中,从而能够提升物品转移效率和人机交互效率。
305、终端将至少一个第一类虚拟物品从该第一储物空间全部转移至第一物品存放区域中。
其中,至少一个第一类虚拟物品是具有上述物品类型的全部虚拟物品,是指与目标虚拟物品同类的全部虚拟物品。
在一些实施例中,终端从第一储物空间中移除与目标虚拟物品同类的全部虚拟物品,并在第二储物空间中目标储物容器标签对应的物品存放区域中,显示与目标虚拟物品同类的全部虚拟物品。换言之,终端从第一储物空间中,移除至少一个第一类虚拟物品,在第一物品存放区域中,显示至少一个第一类虚拟物品。比如,若第二储物空间中以储物容器列表的方式来展示每个储物容器标签,那么可以将与目标虚拟物品同类的全部虚拟物品作为目标储物容器标签的下拉展开列表项。上述方式可以体现出来与目标虚拟物品同类的全部虚拟物品已经从第一储物空间中转移到了目标储物容器标签对应的物品存放区域中,实现对物品转移结果的可视化展示,提高了物品转移结果的直观度,提升了用户的信息获取效率。
在一些实施例中,由于终端在检测到拖拽操作的释放位置位于目标储物容器标签上时,即可将该目标储物容器标签的可交互UI控件置为被选中状态,并在第二储物空间中显示该目标储物容器标签对应的物品存放区域。在这种情况下,在实现对与目标虚拟物品同类的全部虚拟物品的批量转移时,终端可以从该第一储物空间中移除与目标虚拟物品同类的全部虚拟物品。即,不再在第一储物空间中显示与目标虚拟物品同类的全部虚拟物品。并且,终端将与目标虚拟物品同类的全部虚拟物品显示在该目标储物容器标签对应的物品存放区域中,相当于在虚拟场景中,实现了与目标虚拟物品同类的全部虚拟物品从第一储物空间到第二储物空间的转移。并且,用户只需要执行一次拖拽操作,即可一次性转移与目标虚拟物品同类的全部虚拟物品,提高了人机交互效率。
图6是本申请实施例提供的一种物品转移结果的界面示意图。如图6所示,假设用户在图5所示的虚拟场景500上执行了将第一储物空间510中位于左上角的目标虚拟物品511拖拽至第二储物空间520中目标储物容器标签521后松手的拖拽操作,那么将触发终端确定目标虚拟物品511的物品类型。假设物品类型为物品标识031即“草棉花”,此时终端获取第一储物空间510中具有物品标识031的全部“草棉花”511-518作为与目标虚拟物品511同类的全部虚拟物品。进而,则将图5中原本位于第一储物空间510中的全部“草棉花”511-518从第一储物空间510中移除。同时,如图6所示,终端将上述全部“草棉花”511-518(即与目标虚拟物品511同类的全部虚拟物品)显示到第二储物空间520中目标储物容器标签521对应的物品存放区域5211中。
在上述过程中,通过在虚拟场景中直观地将与目标虚拟物品同类的全部虚拟物品从第一储物空间转移到目标储物容器标签对应的物品存放区域,这样能够更加直观地展示到与目标虚拟物品同类的全部虚拟物品的批量转移效果。通过自动将目标储物容器标签的可交互UI控件切换到被选中状态,并展开目标储物容器标签对应的物品存放区域,并在目标储物容器标签对应的物品存放区域中显示与目标虚拟物品同类的全部虚拟物品。这样无需用户手动切换选中目标储物容器标签,降低了用户操作的繁琐度,便于用户快速获悉本次批量转移了哪些与目标虚拟物品同类的全部虚拟物品,以及将与目标虚拟物品同类的全部虚拟物品批量转移到了哪个储物容器标签对应的物品存放区域中,从而提升了用户的信息获取效率。
在一些实施例中,终端在确定了拖拽操作本次选中的目标虚拟物品,并在第一储物空间中确定到与目标虚拟物品同类的全部虚拟物品之后,将与目标虚拟物品同类的全部虚拟物品各自的物品编号存储到一个物品编号队列中。接着,终端将物品编号队列封装到批量物品转移请求中,并向服务器发送批量物品转移请求。服务器响应于批量物品转移请求,解析得到物品编号队列,并将物品编号队列中的各个物品编号从第一储物空间的存放元数据中移除,并将各个物品编号添加到第二储物空间中目标储物容器标签所关联的存放元数据中。上述方 式可以实现将与目标虚拟物品同类的全部虚拟物品的批量转储。其中,每个储物空间的存放元数据用于记录本储物空间中存放的所有虚拟物品的物品编号。
需要说明的是,物品编号用于表征虚拟物品具体是哪个编号,而物品标识则用于表征虚拟物品是哪种物品。比如,某个虚拟物品的物品标识是031,代表虚拟物品是“草棉花”,但该虚拟物品的物品编号则是000010,代表虚拟物品的虚拟对象采集的第10个虚拟物品。
在另一些实施例中,终端将目标虚拟物品的物品编号和物品类型封装到批量物品转移请求中,并将该批量物品转移请求发送到服务器。服务器响应于该批量物品转移请求,解析得到该目标虚拟物品的物品编号和物品类型。接着,服务器查询该第一储物空间的存放元数据,以确定第一储物空间中存放的与目标虚拟物品同类的全部虚拟物品,并将查询到的与目标虚拟物品同类的全部虚拟物品各自的物品编号都从第一储物空间的存放元数据中删除。接着,服务器将与目标虚拟物品同类的全部虚拟物品各自的物品编号都添加到第二储物空间的目标储物容器标签所关联的存放元数据中,从而实现将与目标虚拟物品同类的全部虚拟物品的批量转储。这样无需终端来执行确定与目标虚拟物品同类的全部虚拟物品的操作,通过将这一操作转移到服务端来实现,能够节约终端的处理资源。
在一些实施例中,服务器侧将与目标虚拟物品同类的全部虚拟物品各自的物品编号从第一储物空间的存放元数据中删除,并添加到第二储物空间的目标储物容器标签所关联的存放元数据之后,向终端返回批量转移成功响应。终端响应于该批量转移成功响应,在虚拟场景中将与目标虚拟物品同类的全部虚拟物品从第一储物空间移除,并显示在第二储物空间的目标储物容器标签对应的物品存放区域中。可选地,该批量转移成功响应可以是一个ACK(Acknowledge Character,确认字符)消息。
在上述步骤304-305中,提供了将第一储物空间中的与该目标虚拟物品同类的全部虚拟物品转移至该目标储物容器标签对应的物品存放区域中的一种可能实施方式。即,先获取目标虚拟物品的物品类型,再从第一储物空间中存放的多个虚拟物品中,确定具有该物品类型的全部虚拟物品。上述方式能够保证遍历到第一储物空间中所有的同类物品,避免遗漏掉同类物品,进而用户只需要针对目标虚拟物品执行一次拖拽操作,就能够将与该目标虚拟物品同类的全部虚拟物品一次性转移到目标储物容器标签对应的物品存放区域中,而无需用户对每份同类物品都反复多次执行拖拽操作,这样极大提升了物品转移效率和人机交互效率。
进一步的,通过终端与服务器之间的交互,实现服务器侧修改存放元数据完毕后,终端才在虚拟场景中显示UI变化,这样能够节约终端本地的处理资源。在另一些实施例中,还可以由终端本地修改存放元数据之后,将修改完毕的存放元数据同步到服务器,或者将本次修改的控制信息同步到服务器,这样能够提升批量物品转移的响应效率。
306、终端对目标储物容器标签的标签名称进行修改,以使标签名称与目标哦虚拟物品的物品名称保持一致。
在一些实施例中,终端还可以确定目标虚拟物品的物品名称。例如,目标虚拟物品的物品名称为“草棉花”,进而将确定到的物品名称“草棉花”设置为目标储物容器标签的标签名称。也即,将目标虚拟物品的名称设置为目标储物容器标签的标签名称。如图6所示,可以看到目标储物容器标签的标签名称从初始的“储物柜1号”自动更改为了“草棉花”。这样无需用户手动设置目标储物容器标签的标签名称,而是在用户执行了拖拽操作之后,终端自动完成对目标储物容器标签的标签名称的设置操作,提升了人机交互效率。
在另一些实施例中,终端仅在检测到目标储物容器标签的标签名称为初始名称的情况下,才将该目标虚拟物品的物品名称设置为该目标储物容器标签的标签名称。比如,假设用户执行拖拽操作之前,目标储物容器标签的标签名称是初始名称“储物柜1号”,那么用户执行拖拽操作之后,将与目标虚拟物品同类的全部虚拟物品批量转移到目标储物容器标签对应的物品存放区域中,并将目标储物容器标签的标签名称修改为目标虚拟物品的物品名称,如“草棉花”。又比如,假设用户执行拖拽操作之前,目标储物容器标签的标签名称不是初始名称。 比如,用户曾经将目标储物容器标签从初始名称“储物柜1号”修改成了“农作物”,那么用户执行拖拽操作之后,由于检测到目标储物容器标签的标签名称不是初始名称,此时终端不会自动修改目标储物容器标签的标签名称。即,目标储物容器标签的标签名称仍然保持为原本名称“农作物”。
在另一些实施例中,在执行了批量物品转移之后,终端仅在检测到目标储物容器标签对应的物品存放区域中包含同种物品类型的虚拟物品的情况下,才将该目标虚拟物品的物品名称设置为该目标储物容器标签的标签名称。比如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“草棉花”,通过拖拽操作又批量转移进来8份“草棉花”。由于在批量物品转移后,目标储物容器标签对应的物品存放区域仍然只包含同一种虚拟物品“草棉花”,因此,自动将该目标虚拟物品的物品名称设置为目标储物容器标签的标签名称;又比如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“小麦”,通过拖拽操作又批量转移进来8份“草棉花”。由于在批量物品转移后,目标储物容器标签对应的物品存放区域中包含了两种或两种以上物品类型的虚拟物品,则终端不会自动修改目标储物容器标签的标签名称。
在另一些实施例中,在执行了批量物品转移之后,终端检测到目标储物容器标签对应的物品存放区域中包含两种或两种以上物品类型的虚拟物品的情况下,可以统计每种物品类型的虚拟物品的存储数量,并自动将存储数量最多的虚拟物品的物品名称设置成目标储物容器标签的标签名称。例如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“小麦”,通过拖拽操作又批量转移进来8份“草棉花”。此时存储数量最多的虚拟物品是“小麦”,则自动将“小麦”设置成目标储物容器标签的标签名称。在另一些实施例中,终端还可以将目标储物容器标签的标签名称设置成该目标储物容器标签对应的物品存放区域中所存放的两种或两种以上物品类型的虚拟物品的物品名称。比如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“小麦”,通过拖拽操作又批量转移进来8份“草棉花”。则将目标储物容器标签的标签名称设置成“小麦&草棉花”。本申请实施例对目标储物容器标签的标签名称的设置方式不进行具体限定。
307、终端对目标储物容器标签的标签图标进行修改,以使标签图标与目标虚拟物品的物品图标保持一致。
在一些实施例中,终端还可以确定目标虚拟物品的物品图标。例如,目标虚拟物品的物品图标为草棉花图案,进而将确定到的草棉花图案设置为目标储物容器标签的标签图标。如图6所示,可以看到目标储物容器标签的标签图标从初始的“空”自动更改为了“草棉花图案”。上述方式无需用户手动设置目标储物容器标签的标签图标,而是在用户执行了拖拽操作之后,终端自动完成对目标储物容器标签的标签图标的设置操作,提升了人机交互效率。
在另一些实施例中,终端仅在检测到目标储物容器标签的标签图标为初始图标的情况下,才将该目标虚拟物品的物品图标设置为该目标储物容器标签的标签图标。比如,假设用户执行拖拽操作之前,目标储物容器标签的标签图标是初始图标“空”。那么用户执行拖拽操作之后,将与目标虚拟物品同类的全部虚拟物品批量转移到目标储物容器标签对应的物品存放区域中,并将目标储物容器标签的标签图标修改为目标虚拟物品的物品图标如草棉花图案。又比如,假设用户执行拖拽操作之前,目标储物容器标签的标签图标不是初始图标。比如,用户曾经将目标储物容器标签从初始图标“空”修改成了植物图案。那么用户执行拖拽操作之后,由于检测到目标储物容器标签的标签图标不是初始图标,此时终端不会自动修改目标储物容器标签的标签图标。即,目标储物容器标签的标签图标仍然保持为原本的植物图案。
在另一些实施例中,在执行了批量物品转移之后,终端仅在检测到目标储物容器标签对应的物品存放区域中包含同种物品类型的虚拟物品的情况下,才将该目标虚拟物品的物品图标设置为该目标储物容器标签的标签图标。比如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“草棉花”,通过拖拽操作又批量转移进来8份“草棉花”。由于在 批量物品转移后,目标储物容器标签对应的物品存放区域仍然只包含同一种虚拟物品“草棉花”,因此,自动将该目标虚拟物品的物品图标即草棉花图案设置为该目标储物容器标签的标签图标。又比如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“小麦”,通过拖拽操作又批量转移进来8份“草棉花”。由于在批量物品转移后,目标储物容器标签对应的物品存放区域中包含了两种或两种以上物品类型的虚拟物品,则终端不会自动修改目标储物容器标签的标签图标。
在另一些实施例中,在执行了批量物品转移之后,终端检测到目标储物容器标签对应的物品存放区域中包含两种或两种以上物品类型的虚拟物品的情况下,可以统计每种物品类型的虚拟物品的存储数量,并自动将存储数量最多的虚拟物品的物品图标设置成目标储物容器标签的标签图标。例如,假设目标储物容器标签对应的物品存放区域中原本已经存放了10份“小麦”,通过拖拽操作又批量转移进来8份“草棉花”。此时存储数量最多的虚拟物品是“小麦”,则自动将小麦图案设置成目标储物容器标签的标签图标。本申请实施例对目标储物容器标签的标签图标的设置方式不进行具体限定。
在本申请实施例中,通过控制拖拽操作的释放位置,在释放位置位于储物容器标签而非物品存放区域的情况下,能够让用户快速地完成与目标虚拟物品同类的全部虚拟物品从第一储物空间到第二储物空间的批量转移。如图5所示,比如用户将目标虚拟物品511拖拽至目标储物容器标签521后松手,视为将与目标虚拟物品511同类的全部虚拟物品511-518一起转移到目标储物容器标签521对应的物品存放区域5211中。如图6所示,可以看出与目标虚拟物品511同类的全部虚拟物品511-518已经显示在了目标储物容器标签521对应的物品存放区域5211中,并且以目标虚拟物品的物品名称“草棉花”作为目标储物容器标签521的标签名称,以目标虚拟物品的物品图标草棉花图案作为目标储物容器标签521的标签图标。
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。
本申请实施例提供的方法,通过在检测到从一个储物空间向另一储物空间的拖拽操作时,基于拖拽操作的释放位置的不同,分别提供针对本次选中虚拟物品的单一转移操作以及针对同类的全部虚拟物品的批量转移操作。即,在释放位置位于物品存放区域时,仅转移本次选中的虚拟物品,在释放位置位于储物容器标签时,则批量转移同类的全部虚拟物品,使得用户能够控制拖拽操作的释放位置,来灵活控制本次要转移哪些虚拟物品,且只需要一次拖拽操作就能够控制批量转移同类物品,避免了用户手动反复多次执行物品转移操作,降低了用户的操作繁琐度,提升了物品转移效率和人机交互效率。
在上一实施例中,详细介绍了用户快速转移全部同类物品的操作方式,通过控制拖拽操作的释放位置位于储物容器标签上,能够让用户快速地完成与目标虚拟物品同类的全部虚拟物品从第一储物空间到第二储物空间的批量转移,而在本申请实施例中,则提出一种将具有同种物品类型的全部虚拟物品从第二储物空间中批量取回第一储物空间的操作流程,下面进行说明。
图7是本申请实施例提供的一种虚拟物品的转移方法的流程图。参见图7,该实施例由电子设备执行,以电子设备为终端为例进行说明,该实施例包括下述步骤:
701、终端显示第一储物空间和第二储物空间,第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域。
上述步骤701显示储物空间的方式与上一实施例中步骤301显示储物空间的方式同理,这里不做赘述。
702、响应于第二拖拽操作,终端确定与第一储物容器标签所关联的目标物品类型,第二拖拽操作用于将多个储物容器标签中的第一储物容器标签拖拽至第一储物空间。
在一些实施例中,用户手指先触摸并按压第二储物空间所显示的第一储物容器标签。其 中,该第一储物容器标签可以是第二储物空间中的任一储物容器标签。例如,可以是上一实施例中批量物品转移操作中涉及的目标储物容器标签,也可能是其他储物容器标签。接着,终端触摸传感器在检测到用户手指向终端屏幕施加的压力信号后,确定压力信号关联的触摸点作为拖拽操作的起始位置。接着,终端通过触摸传感器持续感测用户手指施加的压力信号。由于用户手指是动态滑动的,终端基于实时感测到的一系列触摸点能够确定一条用户手指的拖拽轨迹。接着,终端在触摸传感器超过预设时长未感测到压力信号时,代表用户手指离开终端屏幕(即拖拽操作停止、拖拽操作结束),此时确定拖拽轨迹的释放位置。其中,预设时长是任一大于0的数值。
在一些实施例中,在通过上述方式确定了拖拽轨迹的起始位置和释放位置之后,若满足起始位置的屏幕坐标位于第二储物空间中的第一储物容器标签上,且释放位置的屏幕坐标位于第一储物空间中,则确定检测到将第一储物容器标签拖拽至第一储物空间的拖拽操作,也即第二拖拽操作。终端响应于第二拖拽操作,将起始位置所关联的储物容器标签确定为第二拖拽操作所选中的第一储物容器标签。上述起始位置所关联的储物容器标签,是指起始位置的屏幕坐标位于第二储物空间中哪个储物容器标签的可交互UI控件的显示区域内。
图8是本申请实施例提供的一种拖拽操作的原理性示意图。如图8所示,在虚拟场景800中,显示有第一储物空间810和第二储物空间820。并且,第二储物空间820中显示有6个储物容器标签821-826。目前,储物容器标签821的可交互UI控件处于被选中状态,故而在第二储物空间820中还显示有被选中的储物容器标签821的物品存放区域8211。进一步的,以储物容器标签821为第一储物容器标签为例进行说明。假设用户执行将第二储物空间820中的第一储物容器标签821拖拽至第一储物空间810中任一位置后松手的操作,终端响应于该拖拽操作,获取第一储物容器标签821所关联的目标物品类型,并将第一储物容器标签821对应的物品存放区域中具有该目标物品类型的全部虚拟物品批量取回到第一储物空间810中。
在上述过程中,示出了用户将第二储物空间的某个储物容器标签拖拽至第一储物空间中任一位置,以触发拖拽操作来开启后续批量物品取回流程的一种可能实施方式。通过这种实施方式,使得用户在通过拖拽操作将储物容器标签拖拽至第一储物空间时,才会触发批量物品取回流程。而用户在将某一储物容器标签对应的物品存放区域中的单份虚拟物品拖拽到第一储物空间时,仍然可以支持单份物品取回流程。换言之,只有将储物容器标签拖拽到第一储物空间的拖拽操作,才会触发批量取回第一储物容器标签对应的物品存放区域中具有其所关联的目标物品类型的全部虚拟物品。但针对将物品存放区域中的某一虚拟物品拖拽至第一储物空间的拖拽操作,则仅会触发取回本次拖拽的单份虚拟物品(一份虚拟物品可能是一个或多个)。通过提供不同触发方式来开启不同物品取回流程,使得用户能够按照自身物品取回需求来执行相应触发操作,具有更高的灵活性和可操作度。
在一些实施例中,用户将第二储物空间的第一储物容器标签拖拽至第一储物空间中任一位置后松手,能够触发将第一储物容器标签拖拽至第一储物空间的拖拽操作。在另一些实施例中,即使用户没有在将第一储物容器标签拖拽至第一储物空间后松手,只要终端检测到拖拽轨迹的起始位置位于第二储物空间的第一储物容器标签的可交互UI控件的显示区域内,且拖拽轨迹的最新触摸点(但不一定是释放位置,因为用户可能会持续保持触摸状态即用户没有松手)位于第一储物空间中,也视为检测到了将第一储物容器标签拖拽至第一储物空间的拖拽操作。本申请实施例对用户是否需要松手才能够触发拖拽操作不进行具体限定。
在另一些实施例中,随着用户拖拽第一储物容器标签的操作,终端还可以显示第一储物容器标签跟随用户手指沿着拖拽轨迹进行移动,直到第一储物容器标签被拖动到了第一储物空间中。这时终端开启针对第一储物容器标签对应的物品存放区域中具有目标物品类型的全部虚拟物品的批量物品取回流程。或者,随着用户拖拽第一储物容器标签的操作,终端也可以不显示第一储物容器标签跟随用户手指沿着拖拽轨迹进行移动。本申请实施例对此不进行 具体限定。
在另一些实施例中,批量物品取回流程还可以通过下述交互方式开启:用户长按第二储物空间中第一储物容器标签的可交互UI控件超过按压阈值之后,点击第一储物空间中的任一位置。其中,按压阈值是任一大于0的数值。即,用户长按第一储物容器标签的可交互UI控件直至超过按压阈值之后,终端屏幕中将会提示第一储物空间作为可点击区域。若检测到用户点击了第一储物空间中的任一位置,代表需要执行针对第一储物容器标签对应的物品存放区域中具有目标物品类型的全部虚拟物品的批量取回操作,进而将用户长按的可交互UI控件对应的储物容器标签作为拖拽操作所选中的第一储物容器标签,并执行后续批量物品取回流程。
在上述过程中,由于提供了多种不同实施方式的拖拽操作,这样服务器侧可以支持一种或多种拖拽操作,均能够触发针对第一储物容器标签对应的物品存放区域中具有目标物品类型的全部虚拟物品的批量物品取回操作,有利于提升批量物品取回操作的成功率。并且,用户还可以按照个性化操作习惯来配置自身终端支持的拖拽操作,提升拖拽操作与用户的适配度。进一步的,由于在支持一键批量物品取回操作的交互方式的基础上,仍然保留针对物品存放区域中选中的单份物品进行取回操作的交互方式,如将物品存放区域中显示的虚拟物品拖拽至第一储物空间的拖拽操作,将触发单份虚拟物品从第二储物空间取回第一储物空间的流程,使得用户能够按照自身物品取回需求,灵活选择适应的交互方式,极大提升了用户的操作便捷度,提高了人机交互效率。
在一些实施例中,在确定了拖拽操作所选中的第一储物容器标签之后,终端可以将该第一储物容器标签的标签名称所关联的虚拟物品的物品类型确定为该目标物品类型。即,用户很可能在对第一储物容器标签执行拖拽操作时,想要批量取回的是标签名称所关联的全部的同类虚拟物品。通过将标签名称所关联的虚拟物品的物品类型确定为该目标物品类型,这样能够提升获取目标物品类型的准确率。例如,第一储物容器标签的标签名称为“草棉花”,那么将“草棉花”所关联的物品类型即物品标识031作为目标物品类型。
在另一些实施例中,终端还可以将该第一储物容器标签的标签图标所关联的虚拟物品的物品类型确定为该目标物品类型。即,用户很可能在对第一储物容器标签执行拖拽操作时,想要批量取回的是标签图标所关联的全部的同类虚拟物品,通过将标签图标所关联的虚拟物品的物品类型确定为该目标物品类型,这样也能够提升获取目标物品类型的准确率。例如,第一储物容器标签的标签图标为草棉花图案,那么将草棉花图案所关联的物品类型即物品标识031作为目标物品类型。
在另一些实施例中,终端还可以将该第一储物容器标签对应的物品存放区域中存储数量最多的虚拟物品的物品类型确定为该目标物品类型。即,在第一储物容器标签对应的物品存放区域中包含两种或两种以上物品类型的虚拟物品时,终端将存储数量最多的虚拟物品的物品类型确定为该目标物品类型。比如,第一储物容器标签对应的物品存放区域中包含了20份“草棉花”和10份“小麦”,那么在检测到将第一储物容器标签拖拽至第一储物空间的拖拽操作时,将存储数量最多的虚拟物品“草棉花”的物品类型即物品标识031作为目标物品类型。这样提供了在第一储物容器标签对应的物品存放区域中包含两种或两种以上物品类型的虚拟物品时确定目标物品类型的可能实施方式,拓宽了批量取回物品的适用场景,本申请实施例对目标物品类型的获取方式不进行具体限定。
在上述步骤702中,通过将第一储物容器标签拖拽至第一储物空间的拖拽操作,能够一键开启对第一储物容器标签对应的物品存放区域中具有目标物品类型的全部虚拟物品的批量取回操作。这样无需用户手动重复多次来取回上述具有目标物品类型的每份虚拟物品,而是可以一次性将具有选中的第一储物容器标签所关联目标物品类型的全部虚拟物品一起取回到第一储物空间中,从而能够提升物品取回效率和人机交互效率。
703、终端将第二物品存放区域中的至少一个第二类虚拟物品转移至该第一储物空间,第 二物品存放区域为第一储物容器标签对应的物品存放区域,第二类虚拟物品为具有目标物品类型的虚拟物品。
在一些实施例中,由于终端在检测到将第一储物容器标签拖拽至第一储物空间的拖拽操作后,即可确定得到拖拽操作选中的第一储物容器标签。终端通过上述步骤702确定了第一储物容器标签所关联的目标物品类型。接着,终端从该第一储物容器标签对应的物品存放区域所存储的所有虚拟物品中,获取具有该目标物品类型的全部虚拟物品。此后,终端可以从第二储物空间中显示的第一储物容器标签对应的物品存放区域中,移除具有该目标物品类型的全部虚拟物品,即不再在第一储物容器标签对应的物品存放区域中显示具有该目标物品类型的全部虚拟物品。并且,终端在第一储物空间中显示具有该目标物品类型的全部虚拟物品,相当于在虚拟场景中,实现了具有该目标物品类型的全部虚拟物品从第二储物空间到第一储物空间的转移。并且,用户只需要执行一次针对储物容器标签的拖拽操作,即可一次性转移具有该目标物品类型的全部虚拟物品。
在本申请实施例中仅以批量取回的具有该目标物品类型的全部虚拟物品,与上一实施例中批量转移的与目标虚拟物品同类的全部虚拟物品相同为例进行说明。换言之,通过将目标虚拟物品从第一储物空间拖拽至目标储物容器标签的拖拽操作,能够将与目标虚拟物品同类的全部虚拟物品一次性批量转移到第二储物空间中。以第一储物容器标签为目标储物容器标签为例,通过将目标储物容器标签拖拽至第一储物空间的拖拽操作,则能够将与目标虚拟物品同类的全部虚拟物品(即具有目标物品类型的全部虚拟物品,这种情况下的目标物品类型就是目标虚拟物品的物品类型)一次性批量取回到第一储物空间中,但不应构成对批量取回的虚拟物品和批量转移的虚拟物品是相同物品的限定。比如,通过上一实施例中,从第一储物空间向第二储物空间的某一储物容器标签A对应的物品存放区域中批量转移了10份草棉花。此后,用户通过本申请实施例的方法,从第二储物空间的另一储物容器标签B对应的物品存放区域中向第一储物空间批量取回了20份“小麦”。
图9是本申请实施例提供的一种物品取回结果的界面示意图。如图9所示,假设用户在图8所示的虚拟场景800上执行了将第二储物空间820中的第一储物容器标签821拖拽至第一储物空间810中任一位置后松手的拖拽操作,那么将触发终端确定第一储物容器标签821所关联的目标物品类型如“草棉花”。即目标物品类型为“草棉花”的物品标识031。接着,终端获取第一储物容器标签821对应的物品存放区域中具有物品标识031的所有“草棉花”831-838作为具有目标物品类型的全部虚拟物品。进而,终端将图8中原本位于第一储物容器标签821对应的物品存放区域8211中的具有目标物品类型的全部虚拟物品831-838移除。同时,如图9所示,终端将上述具有目标物品类型的全部虚拟物品831-838显示到第一储物空间810中。
在上述过程中,通过在虚拟场景直观地将具有目标物品类型的全部虚拟物品从第一储物容器标签对应的物品存放区域取回到第一储物空间,这样能够直观展示到具有目标物品类型的全部虚拟物品的批量取回效果,便于用户快速获悉本次批量转移了哪些虚拟物品,以及将虚拟物品批量转移到了哪个储物空间,从而提升了用户的信息获取效率。
在一些实施例中,终端在从第一储物容器标签对应的物品存放区域所包含的所有虚拟物品中,确定了具有目标物品类型的全部虚拟物品之后,将具有目标物品类型的全部虚拟物品各自的物品编号存储到一个物品编号队列中。接着,终端将物品编号队列封装到批量物品取回请求中,并向服务器发送批量物品取回请求。服务器响应于批量物品取回请求,解析得到物品编号队列,并将物品编号队列中的各个物品编号从第二储物空间的第一储物容器标签所关联的存放元数据中移除,并将多个物品编号添加到第一储物空间的存放元数据中,从而实现将具有目标物品类型的全部虚拟物品从第二储物空间向第一储物空间的批量取回。其中,每个储物空间的存放元数据用于记录本储物空间中存放的所有虚拟物品的物品编号。
需要说明的是,物品编号用于表征虚拟物品具体是哪个编号,而物品标识则用于表征虚 拟物品是哪种物品。比如,某个虚拟物品的物品标识是031,代表虚拟物品是“草棉花”,但虚拟物品的物品编号则是000010,代表虚拟物品的虚拟对象采集的第10个虚拟物品。
在另一些实施例中,终端将上述步骤702获取到的目标物品类型和第一储物容器标签封装到批量物品取回请求中,并将该批量物品取回请求发送到服务器。服务器响应于该批量物品取回请求,解析得到该目标物品类型和该第一储物容器标签。接着,由服务器查询该第二储物空间中该第一储物容器标签所关联的存放元数据,以确定第一储物容器标签中存放的具有该目标物品类型的全部虚拟物品,并将查询到的具有该目标物品类型的全部虚拟物品各自的物品编号从第一储物容器标签所关联的存放元数据删除。接着,服务器将具有该目标物品类型的全部虚拟物品各自的物品编号添加到第一储物空间的存放元数据中,从而实现将具有该目标物品类型的全部虚拟物品从第二储物空间向第一储物空间的批量取回。这样无需终端来执行确定具有该目标物品类型的全部虚拟物品的操作,通过将上述确定操作转移到服务端执行,能够节约终端的处理资源。
在一些实施例中,服务器侧将具有目标物品类型的全部虚拟物品各自的物品编号从第一储物容器标签所关联的存放元数据中删除,并添加到第一储物空间的存放元数据之后,向终端返回批量取回成功响应。终端响应于该批量取回成功响应,在虚拟场景中,将具有该目标物品类型的全部虚拟物品从中第二储物空间中第一储物容器标签对应的物品存放区域移除,并显示在第一储物空间中。可选地,该批量取回成功响应可以是一个ACK消息。
在上述过程中,提供了终端将具有该目标物品类型的全部虚拟物品从该第二储物空间取回至该第一储物空间的一种可能实施方式。通过终端与服务器之间的交互,实现服务器侧修改存放元数据完毕后,终端才在虚拟场景中显示UI变化,这样能够节约终端本地的处理资源。在另一些实施例中,还可以由终端本地修改存放元数据之后,将修改完毕的存放元数据同步到服务器,或者将本次修改的控制信息同步到服务器,这样能够提升批量物品取回的响应效率。
704、终端将第一储物容器标签的标签名称恢复为预设名称。
在一些实施例中,在第一储物容器标签的标签名称与本次批量取回的具有目标物品类型的全部虚拟物品的物品名称相同的情况下,终端可以将第一储物容器标签的标签名称恢复为预设名称。比如,预设名称可以是初始名称。在一个示例中,在将具有目标物品类型的全部虚拟物品从第一储物容器标签对应的物品存放区域批量取回到第一储物空间之后,第一储物容器标签的标签名称自动从图8所示的“草棉花”恢复成了图9所示的预设名称“储物柜1号”。上述方式无需用户手动更新第一储物容器标签的标签名称,而是在用户执行了将第一储物容器标签拖拽至第一储物空间的拖拽操作之后,终端自动对第一储物容器标签的标签名称恢复到初始化配置,避免了引发用户误解。例如避免用户以为储物柜1号中仍然还存放有草棉花,提升了人机交互效率。
在另一些实施例中,在第一储物容器标签的标签名称与本次批量取回的具有该目标物品类型的全部虚拟物品的物品名称不相同的情况下,终端无需将第一储物容器标签的标签名称恢复为预设名称。比如,第一储物容器标签的标签名称是“农作物”,而批量取回的具有该目标物品类型的全部虚拟物品的物品名称是“草棉花”。那么用户执行了将第一储物容器标签拖拽至第一储物空间的拖拽操作之后,由于检测到标签名称和物品名称并不相同,此时终端不会对第一储物容器标签的标签名称恢复初始化配置。即,第一储物容器标签的标签名称仍然保持为原本名称“农作物”。
在另一些实施例中,在已经将具有该目标物品类型的全部虚拟物品批量取回到第一储物空间之后,若该第一储物容器标签对应的物品存放区域中仍存储有其他虚拟物品,终端可以从该第一储物容器标签对应的物品存放区域所存储的其他虚拟物品中确定存储数量最多的第一虚拟物品。接着,终端将第一储物容器标签的标签名称设置为第一虚拟物品的物品名称。比如,假设第一储物容器标签对应的物品存放区域中原本存放了10份“草棉花”、8份“小 麦”和2份“玫瑰”,在将10份“草棉花”批量取回到第一储物空间之后,第一储物容器标签对应的物品存放区域仍然包含其他虚拟物品即8份“小麦”和2份“玫瑰”,此时从其他虚拟物品中,确定存储数量最多的第一虚拟物品为“小麦”。因此,将第一储物容器标签的标签名称从原本的“草棉花”更新为该第一虚拟物品的物品名称“小麦”。
705、终端将第一储物容器标签的标签图标恢复为预设图标。
在一些实施例中,在第一储物容器标签的标签图标与本次批量取回的具有目标物品类型的全部虚拟物品的物品图标相同的情况下,终端可以将该第一储物容器标签的标签图标恢复为预设图标。比如,预设图标可以是初始图标。在一个示例中,在将具有该目标物品类型的全部虚拟物品从第一储物容器标签对应的物品存放区域批量取回到第一储物空间之后,第一储物容器标签的标签图标自动从图8所示的草棉花图案恢复成了图9所示的预设图标“空”。上述方式无需用户手动更新第一储物容器标签的标签图标,而是在用户执行了将第一储物容器标签拖拽至第一储物空间的拖拽操作之后,终端自动对第一储物容器标签的标签图标恢复到初始化配置,避免了引发用户误解。例如避免用户以为储物柜1号中仍然还存放有草棉花,提升了人机交互效率。
在另一些实施例中,在第一储物容器标签的标签图标与本次批量取回的具有该目标物品类型的全部虚拟物品的物品图标不相同的情况下,终端无需将第一储物容器标签的标签图标恢复为预设图标。比如,第一储物容器标签的标签图标是植物图案,而批量取回的具有该目标物品类型的全部虚拟物品的物品图标是草棉花图案。那么用户执行了将第一储物容器标签拖拽至第一储物空间的拖拽操作之后,由于检测到标签图标和物品图标并不相同,此时终端不会对第一储物容器标签的标签图标恢复初始化配置。即,第一储物容器标签的标签图标仍然保持为植物图案。
在另一些实施例中,在已经将具有该目标物品类型的全部虚拟物品批量取回到第一储物空间之后,若第一储物容器标签对应的物品存放区域中仍存储有其他虚拟物品,终端可以从该第一储物容器标签对应的物品存放区域所存储的其他虚拟物品中确定存储数量最多的第一虚拟物品。接着,终端将第一储物容器标签的标签图标设置为第一虚拟物品的物品图标。比如,假设第一储物容器标签对应的物品存放区域中原本存放了10份“草棉花”、8份“小麦”和2份“玫瑰”,在将10份“草棉花”批量取回到第一储物空间之后,第一储物容器标签对应的物品存放区域仍然包含其他虚拟物品即8份“小麦”和2份“玫瑰”。此时从其他虚拟物品中,确定存储数量最多的第一虚拟物品为“小麦”。因此,终端将第一储物容器标签的标签图标从原本的草棉花图案更新为该第一虚拟物品的物品图标,即小麦图案。
在本申请实施例中,通过将第一储物容器标签拖拽至第一储物空间的拖拽操作,能够让用户快速地完成具有该目标物品类型的全部虚拟物品从第二储物空间的第一储物容器标签对应的物品存放区域到第一储物空间的批量取回。如图8所示,比如用户将第一储物容器标签821拖拽至第一储物空间810后松手,视为将具有该第一储物容器标签821所关联的目标物品类型“草棉花”的全部同类物品831-838批量取回到第一储物空间810中。如图9所示,可以看出全部同类物品831-838已经显示在了第一储物空间810中,并且第一储物容器标签821的标签名称恢复为初始名称“储物柜1号”,且第一储物容器标签821的标签图标恢复为初始图标“空”。
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。
本申请实施例提供的方法,提供一种基于将第二储物空间中储物容器标签拖拽至第一储物空间的拖拽操作,触发批量取回具有与储物容器标签所关联的目标物品类型的全部虚拟物品的交互方式,使得用户仅对储物容器标签执行一次拖拽回第一储物空间的拖拽操作,就能够将具有选中储物容器标签所关联的目标物品类型的全部的同类虚拟物品,即具有目标物品类型的全部虚拟物品,一次性批量取回到第一储物空间中,避免了用户手动反复多次执行物 品取回操作,降低了用户的操作繁琐度,提升了物品取回效率和人机交互效率。
在上述两个实施例中,分别介绍了从第一储物空间到第二储物空间的批量物品转移流程,以及从第二储物空间到第一储物空间的批量物品取回流程,而在本申请实施例中,将对批量物品转移方式和单份物品转移方式的整体流程进行介绍,图10是本申请实施例提供的一种虚拟物品的转移方法的原理性流程图,如图10所示,以第一储物空间为虚拟对象的背包,第二储物空间为虚拟对象的橱柜为例进行说明:
在步骤1001中,用户拖动背包中待转移的虚拟物品。
在步骤1002中,终端检测用户手指离开终端屏幕时的位置,即,终端检测拖拽操作的释放位置。
在步骤1003中,用户将虚拟物品拖动至橱柜格子区域,即,用户将虚拟物品拖动至橱柜中某一储物柜的物品存放区域。
在步骤1004中,终端将本次拖动的单份虚拟物品从背包转移到对应储物柜中。其中,储物柜是储物容器标签对应的物品存放区域的一种示例性说明。
在步骤1005中,用户将虚拟物品拖动至橱柜分类区域,即,用户将虚拟物品拖动至橱柜中的任一储物容器标签上。
在步骤1006中,终端将与本次拖动的虚拟物品同类的全部虚拟物品从背包转移到对应储物柜中。
在步骤1007中,终端对橱柜中的储物柜自动命名并自动添加图标,即,终端自动对储物容器配置容器名称和容器图标。
图11是本申请实施例提供的一种物品转移流程的原理性界面图。如图11所示,在虚拟场景1100中,显示有背包区域1110和橱柜区域1120,背包区域1110是第一储物空间的一种示例性说明,橱柜区域1120是第二储物空间的一种示例性说明。在背包区域1110中显示有背包内存放的多个虚拟物品。在橱柜区域1120中显示有橱柜格子区域1121和橱柜分类区域1122。橱柜格子区域1121是储物容器标签对应的物品存放区域的一种示例性说明。橱柜分类区域1122是第二储物空间中显示储物容器标签的区域的一种示例性说明。若检测到用户将背包中的目标虚拟物品拖动至橱柜格子区域1121后松手的操作,则触发将拖动的目标虚拟物品转移到橱柜中对应储物柜的流程。若检测到用户将背包中的目标虚拟物品拖动至橱柜分类区域1122后松手的操作,则触发将与本次拖动的目标虚拟物品同类的全部虚拟物品一次性批量转移到橱柜中对应储物柜的流程。
在本申请实施例中,在检测到用户拖动背包中的单份虚拟物品时,通过判断用户松手时的释放位置是处于橱柜格子区域还是橱柜分类区域。若检测到释放位置处于橱柜格子区域中,则将拖动的单份虚拟物品转移到橱柜的对应储物柜中。若检测到释放位置处于显示储物容器标签的区域中。再次判断松手时的释放位置具体落在哪一个储物柜即储物容器标签上,并将背包中与本次拖动的虚拟物品同类的全部虚拟物品一次性全部转移到上述确定得到的储物柜中,并对储物柜进行自动命名并自动添加图标。比如,读取拖动的虚拟物品的物品名称,并填写至储物柜的储物柜名称中,同时读取拖动的虚拟物品的物品图标,并填写至储物柜的储物柜图标中。
在本申请实施例中,无需用户反复多次转移虚拟物品,极大降低了批量物品转移的操作繁琐度,实现用户仅拖动单份虚拟物品,就能够实现同类的全部虚拟物品的快速转移的交互方式,大大提升了用户批量转移物品的操作效率。进一步的,通过对单次拖动的虚拟物品的物品名称和物品图标的读取,并填入到对应储物柜的储物柜名称和储物柜图标上,实现了针对橱柜中储物柜的自动命名和自动添加图标,无需用户手动命名储物柜、设置储物柜图标,进一步提升了人机交互效率。
图12是本申请实施例提供的一种虚拟物品的转移装置的结构示意图,如图12所示,装 置包括:
显示模块1201,用于显示第一储物空间和第二储物空间,第一储物空间中显示有多个虚拟物品,第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域;
确定模块1202,用于响应于第一拖拽操作,确定第一拖拽操作的释放位置,第一拖拽操作用于将第一储物空间中的目标虚拟物品拖拽至第二储物空间,目标虚拟物品为第一储物空间中的任一虚拟物品;
物品转移模块1203,用于若释放位置位于第一物品存放区域,则将目标虚拟物品从第一储物空间转移至第一物品存放区域,第一物品存放区域为多个储物容器标签中的目标储物容器标签对应的物品存放区域,目标储物容器标签为多个储物容器标签中的任一个;
物品转移模块1203,还用于若释放位置位于目标储物容器标签上,则将第一储物空间中的至少一个第一类虚拟物品转移至第一物品存放区域,第一类虚拟物品为与目标虚拟物品同类的虚拟物品。
本申请实施例提供的装置,通过在检测到从一个储物空间向另一储物空间的拖拽操作时,基于拖拽操作的释放位置的不同,分别提供针对本次选中虚拟物品的单一转移操作以及针对同类的全部虚拟物品的批量转移操作。即,在释放位置位于物品存放区域时,仅转移本次选中的虚拟物品。在释放位置位于储物容器标签时,则批量转移同类的全部虚拟物品,使得用户能够控制拖拽操作的释放位置,来灵活控制本次要转移哪些虚拟物品。且只需要一次拖拽操作就能够控制批量转移同类物品,避免了用户手动反复多次执行物品转移操作,降低了用户的操作繁琐度,提升了物品转移效率和人机交互效率。
在一种可能实施方式中,物品转移模块1203用于:
基于目标虚拟物品的物品类型,从第一储物空间中存放的多个虚拟物品中,确定至少一个第一类虚拟物品;
将至少一个第一类虚拟物品全部转移至第一物品存放区域。
在一种可能实施方式中,物品转移模块1203用于:
从第一储物空间中,移除至少一个第一类虚拟物品;
在第一物品存放区域中,显示至少一个第一类虚拟物品。
在一种可能实施方式中,基于图12的装置组成,装置还包括:
名称设置模块,用于若释放位置位于目标储物容器标签上,对目标储物容器标签的标签名称进行修改,以使标签名称与目标虚拟物品的物品名称保持一致。
在一种可能实施方式中,基于图12的装置组成,装置还包括:
图标设置模块,用于若释放位置位于目标储物容器标签上,对目标储物容器标签的标签图标进行修改,以使标签图标与目标虚拟物品的物品图标保持一致。
在一种可能实施方式中,基于图12的装置组成,装置还包括:
类型确定模块,用于响应于第二拖拽操作,确定与第一储物容器标签所关联的目标物品类型,第二拖拽操作用于将多个储物容器标签中的第一储物容器标签拖拽至第一储物空间,第一储物容器标签为第二储物空间中的任一储物容器标签;
物品转移模块1203,还用于将第二物品存放区域中的至少一个第二类虚拟物品转移至第一储物空间,第二物品存放区域为所述第一储物容器标签对应的物品存放区域,第二类虚拟物品为具有目标物品类型的虚拟物品。
在一种可能实施方式中,类型确定模块还用于:
将第一储物容器标签的标签名称所关联的虚拟物品的物品类型确定为目标物品类型;或,
将第一储物容器标签的标签图标所关联的虚拟物品的物品类型确定为目标物品类型;或,
将第一储物容器标签对应的物品存放区域中存储数量最多的虚拟物品的物品类型确定为目标物品类型。
在一种可能实施方式中,物品转移模块1203还用于:
从第二物品存放区域中,移除至少一个第二类虚拟物品;
在第一储物空间中,显示至少一个第二类虚拟物品。
在一种可能实施方式中,基于图12的装置组成,装置还包括:
恢复模块,用于响应于第二拖拽操作,将第一储物容器标签的标签名称恢复为预设名称;
恢复模块,还用于响应于第二拖拽操作,将第一储物容器标签的标签图标恢复为预设图标。
在一种可能实施方式中,基于图12的装置组成,装置还包括:
设置模块,用于响应于第二拖拽操作,在第二物品存放区域中仍存储有其他虚拟物品的情况下,从其他虚拟物品中确定存储数量最多的第一虚拟物品;对第一储物容器标签的标签名称进行修改,以使标签名称与第一虚拟物品的物品名称保持一致;对第一储物容器标签的标签图标进行修改,以使标签图标与第一虚拟物品的物品图标保持一致。
上述所有可选技术方案,能够采用任意结合形成本公开的可选实施例,在此不再一一赘述。
需要说明的是:上述实施例提供的虚拟物品的转移装置在批量转移虚拟物品时,仅以上述各功能模块的划分进行举例说明,实际应用中,能够根据需要而将上述功能分配由不同的功能模块完成,即将电子设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的虚拟物品的转移装置与虚拟物品的转移方法实施例属于同一构思,其具体实现过程详见虚拟物品的转移方法实施例,这里不再赘述。
图13是本申请实施例提供的一种终端的结构示意图,如图13所示,终端1300是电子设备的一种示例性说明。通常,终端1300包括有:处理器1301和存储器1302。
可选地,处理器1301包括一个或多个处理核心,比如4核心处理器、8核心处理器等。可选地,处理器1301采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。在一些实施例中,处理器1301包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1301集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1301还包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
在一些实施例中,存储器1302包括一个或多个计算机可读存储介质,可选地,该计算机可读存储介质是非暂态的。可选地,存储器1302还包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1302中的非暂态的计算机可读存储介质用于存储至少一个计算机程序,该至少一个计算机程序用于被处理器1301所执行以实现本申请中各个实施例提供的虚拟物品的转移方法。
在一些实施例中,终端1300还可选包括有:外围设备接口1303和至少一个外围设备。处理器1301、存储器1302和外围设备接口1303之间能够通过总线或信号线相连。各个外围设备能够通过总线、信号线或电路板与外围设备接口1303相连。具体地,外围设备包括:显示屏1305和电源1308中的至少一种。
显示屏1305用于显示UI(User Interface,用户界面)。可选地,该UI包括图形、文本、图标、视频及其它们的任意组合。当显示屏1305是触摸显示屏时,显示屏1305还具有采集在显示屏1305的表面或表面上方的触摸信号的能力。该触摸信号能够作为控制信号输入至处理器1301进行处理。可选地,显示屏1305还用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1305为一个,设置终端1300的前面板;在另一些实施例中,显示屏1305为至少两个,分别设置在终端1300的不同表面或呈折叠设计;在再一 些实施例中,显示屏1305是柔性显示屏,设置在终端1300的弯曲表面上或折叠面上。甚至,可选地,显示屏1305设置成非矩形的不规则图形,也即异形屏。可选地,显示屏1305采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
电源1308用于为终端1300中的各个组件进行供电。可选地,电源1308是交流电、直流电、一次性电池或可充电电池。当电源1308包括可充电电池时,该可充电电池支持有线充电或无线充电。该可充电电池还用于支持快充技术。
本领域技术人员能够理解,图13中示出的结构并不构成对终端1300的限定,能够包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
图14是本申请实施例提供的一种电子设备的结构示意图,该电子设备1400可因配置或性能不同而产生比较大的差异,该电子设备1400包括一个或一个以上处理器(Central Processing Units,CPU)1401和一个或一个以上的存储器1402,其中,该存储器1402中存储有至少一条计算机程序,该至少一条计算机程序由该一个或一个以上处理器1401加载并执行以实现上述各个实施例提供的虚拟物品的转移方法。可选地,该电子设备1400还具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该电子设备1400还包括其他用于实现设备功能的部件,在此不做赘述。
在示例性实施例中,还提供了一种计算机可读存储介质,例如包括至少一条计算机程序的存储器,上述至少一条计算机程序可由终端中的处理器执行以完成上述各个实施例中的虚拟物品的转移方法。例如,该计算机可读存储介质包括ROM(Read-Only Memory,只读存储器)、RAM(Random-Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,只读光盘)、磁带、软盘和光数据存储设备等。
在示例性实施例中,还提供了一种计算机程序产品,包括一条或多条计算机程序,该一条或多条计算机程序存储在计算机可读存储介质中。电子设备的一个或多个处理器能够从计算机可读存储介质中读取该一条或多条计算机程序,该一个或多个处理器执行该一条或多条计算机程序,使得电子设备能够执行以完成上述实施例中的虚拟物品的转移方法。
本领域普通技术人员能够理解实现上述实施例的全部或部分步骤能够通过硬件来完成,也能够通过程序来指令相关的硬件完成,可选地,该程序存储于一种计算机可读存储介质中,可选地,上述提到的存储介质是只读存储器、磁盘或光盘等。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (14)

  1. 一种虚拟物品的转移方法,应用于终端,所述方法包括:
    显示第一储物空间和第二储物空间,所述第一储物空间中显示有多个虚拟物品,所述第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域;
    响应于第一拖拽操作,确定所述第一拖拽操作的释放位置,所述第一拖拽操作用于将所述第一储物空间中的目标虚拟物品拖拽至所述第二储物空间,所述目标虚拟物品为所述第一储物空间中的任一虚拟物品;
    若所述释放位置位于第一物品存放区域,则将所述目标虚拟物品从所述第一储物空间转移至所述第一物品存放区域,所述第一物品存放区域为所述多个储物容器标签中的目标储物容器标签对应的物品存放区域,所述目标储物容器标签为所述多个储物容器标签中的任一个;
    若所述释放位置位于所述目标储物容器标签上,则将所述第一储物空间中的至少一个第一类虚拟物品转移至所述第一物品存放区域,所述第一类虚拟物品为与所述目标虚拟物品同类的虚拟物品。
  2. 根据权利要求1所述的方法,其中,所述将所述第一储物空间中的至少一个第一类虚拟物品转移至所述第一物品存放区域包括:
    基于所述目标虚拟物品的物品类型,从所述第一储物空间中存放的多个虚拟物品中,确定所述至少一个第一类虚拟物品;
    将所述至少一个第一类虚拟物品全部转移至所述第一物品存放区域。
  3. 根据权利要求1所述的方法,其中,所述将所述第一储物空间中的至少一个第一类虚拟物品转移至所述第一物品存放区域包括:
    从所述第一储物空间中,移除所述至少一个第一类虚拟物品;
    在所述第一物品存放区域中,显示所述至少一个第一类虚拟物品。
  4. 根据权利要求1所述的方法,其中,若所述释放位置位于所述目标储物容器标签上,所述方法还包括:
    对所述目标储物容器标签的标签名称进行修改,以使所述标签名称与所述目标虚拟物品的物品名称保持一致。
  5. 根据权利要求1所述的方法,其中,若所述释放位置位于所述目标储物容器标签上,所述方法还包括:
    对所述目标储物容器标签的标签图标进行修改,以使所述标签图标与所述目标虚拟物品的物品图标保持一致。
  6. 根据权利要求1所述的方法,其中,所述方法还包括:
    响应于第二拖拽操作,确定与第一储物容器标签所关联的目标物品类型,所述第二拖拽操作用于将所述多个储物容器标签中的第一储物容器标签拖拽至所述第一储物空间,所述第一储物容器标签为所述第二储物空间中的任一储物容器标签;
    将第二物品存放区域中的至少一个第二类虚拟物品转移至所述第一储物空间,所述第二物品存放区域为所述第一储物容器标签对应的物品存放区域,所述第二类虚拟物品为具有所述目标物品类型的虚拟物品。
  7. 根据权利要求6所述的方法,其中,所述确定与第一储物容器标签所关联的目标物品类型包括:
    将所述第一储物容器标签的标签名称所关联的虚拟物品的物品类型确定为所述目标物品类型;或,
    将所述第一储物容器标签的标签图标所关联的虚拟物品的物品类型确定为所述目标物品类型;或,
    将所述第一储物容器标签对应的物品存放区域中存储数量最多的虚拟物品的物品类型确定为所述目标物品类型。
  8. 根据权利要求6所述的方法,其中,所述将第二物品存放区域中的至少一个第二类虚拟物品转移至所述第一储物空间包括:
    从所述第二物品存放区域中,移除所述至少一个第二类虚拟物品;
    在所述第一储物空间中,显示所述至少一个第二类虚拟物品。
  9. 根据权利要求6所述的方法,其中,响应于第二拖拽操作,所述方法还包括:
    将所述第一储物容器标签的标签名称恢复为预设名称;
    将所述第一储物容器标签的标签图标恢复为预设图标。
  10. 根据权利要求6所述的方法,其中,响应于第二拖拽操作,所述方法还包括:
    在所述第二物品存放区域中仍存储有其他虚拟物品的情况下,从所述其他虚拟物品中确定存储数量最多的第一虚拟物品;
    对所述第一储物容器标签的标签名称进行修改,以使所述标签名称与所述第一虚拟物品的物品名称保持一致;
    对所述第一储物容器标签的标签图标进行修改,以使所述标签图标与所述第一虚拟物品的物品图标保持一致。
  11. 一种虚拟物品的转移装置,配置于终端中,所述装置包括:
    显示模块,用于显示第一储物空间和第二储物空间,所述第一储物空间中显示有多个虚拟物品,所述第二储物空间中显示有多个储物容器标签,每一储物容器标签对应一物品存放区域;
    确定模块,用于响应于第一拖拽操作,确定所述第一拖拽操作的释放位置,所述第一拖拽操作用于将所述第一储物空间中的目标虚拟物品拖拽至所述第二储物空间,所述目标虚拟物品为所述第一储物空间中的任一虚拟物品;
    物品转移模块,用于若所述释放位置位于第一物品存放区域,则将所述目标虚拟物品从所述第一储物空间转移至所述第一物品存放区域,所述第一物品存放区域为所述多个储物容器标签中的目标储物容器标签对应的物品存放区域,所述目标储物容器标签为所述多个储物容器标签中的任一个;
    所述物品转移模块,还用于若所述释放位置位于所述目标储物容器标签上,则将所述第一储物空间中的至少一个第一类虚拟物品转移至所述第一物品存放区域,所述第一类虚拟物品为与所述目标虚拟物品同类的虚拟物品。
  12. 一种电子设备,所述电子设备包括一个或多个处理器和一个或多个存储器,所述一个或多个存储器中存储有至少一条计算机程序,所述至少一条计算机程序由所述一个或多个处理器加载并执行以实现如权利要求1至权利要求10任一项所述的虚拟物品的转移方法。
  13. 一种存储介质,所述存储介质中存储有至少一条计算机程序,所述至少一条计算机程序由处理器加载并执行以实现如权利要求1至权利要求10任一项所述的虚拟物品的转移方法。
  14. 一种计算机程序产品,所述计算机程序产品包括至少一条计算机程序,所述至少一条计算机程序由处理器加载并执行以实现如权利要求1至权利要求10任一项所述的虚拟物品的转移方法。
PCT/CN2023/096883 2022-08-05 2023-05-29 虚拟物品的转移方法、装置、电子设备及存储介质 WO2024027308A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210944071.1A CN117547807A (zh) 2022-08-05 2022-08-05 虚拟物品的转移方法、装置、电子设备及存储介质
CN202210944071.1 2022-08-05

Publications (1)

Publication Number Publication Date
WO2024027308A1 true WO2024027308A1 (zh) 2024-02-08

Family

ID=89822105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/096883 WO2024027308A1 (zh) 2022-08-05 2023-05-29 虚拟物品的转移方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN117547807A (zh)
WO (1) WO2024027308A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140122304A1 (en) * 2012-10-31 2014-05-01 Indigo Books & Music Inc. System and method for purchasing an item at a computing device
US10115149B1 (en) * 2014-12-18 2018-10-30 Amazon Technologies, Inc. Virtual world electronic commerce platform
CN112973124A (zh) * 2021-03-02 2021-06-18 网易(杭州)网络有限公司 游戏中虚拟物品的处理方法、装置、设备及存储介质
CN113244611A (zh) * 2021-06-03 2021-08-13 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、设备及存储介质
CN113262483A (zh) * 2021-06-04 2021-08-17 网易(杭州)网络有限公司 虚拟物品的操作控制方法、装置和电子设备
CN113694513A (zh) * 2021-08-16 2021-11-26 网易(杭州)网络有限公司 游戏中拾取物品的方法、装置、存储介质及电子设备
CN114159779A (zh) * 2021-11-02 2022-03-11 网易(杭州)网络有限公司 虚拟物品的分堆控制方法、装置、终端设备及存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140122304A1 (en) * 2012-10-31 2014-05-01 Indigo Books & Music Inc. System and method for purchasing an item at a computing device
US10115149B1 (en) * 2014-12-18 2018-10-30 Amazon Technologies, Inc. Virtual world electronic commerce platform
CN112973124A (zh) * 2021-03-02 2021-06-18 网易(杭州)网络有限公司 游戏中虚拟物品的处理方法、装置、设备及存储介质
CN113244611A (zh) * 2021-06-03 2021-08-13 网易(杭州)网络有限公司 虚拟物品的处理方法、装置、设备及存储介质
CN113262483A (zh) * 2021-06-04 2021-08-17 网易(杭州)网络有限公司 虚拟物品的操作控制方法、装置和电子设备
CN113694513A (zh) * 2021-08-16 2021-11-26 网易(杭州)网络有限公司 游戏中拾取物品的方法、装置、存储介质及电子设备
CN114159779A (zh) * 2021-11-02 2022-03-11 网易(杭州)网络有限公司 虚拟物品的分堆控制方法、装置、终端设备及存储介质

Also Published As

Publication number Publication date
CN117547807A (zh) 2024-02-13

Similar Documents

Publication Publication Date Title
CN108984087A (zh) 基于三维虚拟形象的社交互动方法及装置
US20230241501A1 (en) Display method and apparatus for virtual prop, electronic device and storage medium
KR102610422B1 (ko) 아바타 이용 데이터를 처리하기 위한 방법 및 장치, 디바이스, 및 저장 매체
WO2022042435A1 (zh) 虚拟环境画面的显示方法、装置、设备及存储介质
JP7138810B2 (ja) 仮想オブジェクト制御方法並びにその装置、コンピュータ装置及びプログラム
JP2023552772A (ja) 仮想アイテムの切り替え方法、装置、端末及びコンピュータプログラム
WO2022052831A1 (zh) 应用程序内的控件位置调整方法、装置、设备及存储介质
WO2023138192A1 (zh) 控制虚拟对象拾取虚拟道具的方法、终端及存储介质
CN111905363A (zh) 虚拟对象的控制方法、装置、终端及存储介质
JP2023527176A (ja) 予約購入アイテムの表示方法、装置、デバイス、媒体およびコンピュータプログラム
CN114404969A (zh) 虚拟物品的处理方法、装置、电子设备及存储介质
CN112206523B (zh) 游戏控制方法、装置、存储介质和电子设备
US20230285855A1 (en) Virtual scene display method and apparatus, terminal, and storage medium
WO2024027308A1 (zh) 虚拟物品的转移方法、装置、电子设备及存储介质
US20230277931A1 (en) Exchanging positions of virtual props displayed with a virtual scene
WO2023066003A1 (zh) 虚拟对象的控制方法、装置、终端、存储介质及程序产品
WO2022170892A1 (zh) 虚拟对象的控制方法、装置、设备、存储介质及程序产品
CN114159788A (zh) 游戏中的信息处理方法、系统、移动终端和存储介质
CN115193041A (zh) 虚拟物品的展示方法、装置、计算机设备及存储介质
CN114225412A (zh) 信息处理方法、装置、计算机设备及存储介质
CN114159785A (zh) 虚拟道具丢弃方法、装置、电子设备和存储介质
CN112256251A (zh) 游戏数据处理、主体对象的配置方法、设备及存储介质
WO2024037188A1 (zh) 虚拟对象控制方法、装置、设备及介质
WO2024109377A1 (zh) 虚拟道具的丢弃方法、装置、终端及存储介质
JP7419400B2 (ja) 仮想オブジェクトの制御方法、装置、端末及びコンピュータプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23849018

Country of ref document: EP

Kind code of ref document: A1