中文 | English

RocketDriver Pro

Logo

RocketDriver Pro is a game framework for Unity engine


8. Rpg Material Data System

This is a general game data management system.
The player’s numerical data is managed in the form of KTV (Key-Type-Value).

8.1 Design Ideas

8.1.1 Common module design instructions

8.1.1.1 Common interface design
8.1.1.2 Common data structure design
8.1.1.3 Common tool class design

8.1.2 Material Module Design Instructions

8.1.2.1 Material interface design
8.1.2.2 Material data structure design

Note: The logical implementation of the following data structure depends on the array structure in Common, and the usage method is combination.

8.1.3 User module design description

8.1.3.1 User interface design
8.1.3.2 User data structure design

Note: The logical implementation of the following data structure depends on the array structure in Common, and the usage method is combination.

8.1.4 Service Module Design Instructions

8.1.4.1 Service interface design
8.1.4.2 Service Logic Design

8.1.5 Asset Module Design Instructions

image

8.2 Use

Depends on the service framework(JLGames.RocketDriver.Games.Services), and the specific usage process is consistent with the general service.

8.2.1 Classification of material data

Classify material configuration table data according to business needs

8.2.2 Prepare the interface

Create a service interface for each type of material, at least inherit IInitService, IInitDataService, IMaterialService

8.2.3 Implementing the interface

Implement the interface created in the previous step.

8.2.4 Configure and initialize according to the service framework process

According to the [Service Framework Description] (Manual_7.Service_en.html#7.4), register, initialize, and call.

8.2.5 Other functions

8.3 Example

JLGames/RocketDriver/Samples/RpgMaterial
image