#

SUD

Custom Rocket

Tips

  1. SudMGP ensures that the status is serialized and delivered in order from MG to APP.
  2. Notifications can be repeated, and there is no need to guarantee the number of notifications.
  3. After the notification, SudMGP will cache the latest data value based on the state, allowing the APP to retrieve it at any time.

1. Gift Configuration File (Rocket)

  • state
mg_custom_rocket_config
  • data
{}
  • Description
Game Client Notifies App Instruction Action Configuration Retrieval

2. List of Owned Models (Rocket)

  • state
mg_custom_rocket_model_list
  • data
{}
  • Description
Game Client Notifies APP to Retrieve Model List

3. List of Owned Components (Rocket)

  • state
mg_custom_rocket_component_list
  • data
{}
  • Description
Game Client Notifies App to Retrieve Component List

4. Get User Information (Rocket)

  • state
mg_custom_rocket_user_info
  • data
{
  "userIdList": ["userId1", "userId2"] // userId
}
  • Description
The game client notifies the application to perform the action of retrieving user information.

5. Order History List (Rocket)

  • state
mg_custom_rocket_order_record_list
  • data
{
  "pageIndex": 0, // page index
  "pageSize": 20 // number of data per page
}
  • Description
The game client notifies the application to perform the action of retrieving the order history list.

6. Exhibition Hall List (Rocket)

  • state
mg_custom_rocket_room_record_list
  • data
{
  "pageIndex": 0, // page index
  "pageSize": 20 // number of data per page
}
  • Description
Game client notifies the app to fetch the exhibition hall list.

7. Game client notifies the app to fetch the player gifting records in the exhibition hall.(Rocket)

  • state
mg_custom_rocket_user_record_list
  • data
{
  "userId": "userId", // userId
  "pageIndex": 0, // page index
  "pageSize": 20 // Number of data per page
}
  • Description
Game client notifies the app to retrieve the player gifting records within the exhibition hall.

8. Set default model (Rocket)

  • state
mg_custom_rocket_set_default_model
  • data
{
  "modelId": "modelId" // default model
}
  • Description
Game client notifies the app to set the default model for the rocket

9. Dynamic calculation of one-click sending price(Rocket)

  • state
mg_custom_rocket_dynamic_fire_price
  • data
{
  "componentList": [
    {
      "itemId": "itemId" // Purchased unique identifier
    }
  ]
}
  • Description
The game client notifies the app to dynamically calculate the price for one-click sending.

10. One-click sending(Rocket)

  • state
mg_custom_rocket_fire_model
  • data
{
  "componentList": [
    {
      "itemId": "itemId" // Purchased unique identifier
    }
  ]
}
  • Description
The game client notifies the app to perform the action of one-click sending.

11. Newly assembled model.(Rocket)

  • state
mg_custom_rocket_create_model
  • data
{
  "componentList": [
    {
      "itemId": "itemId" // Purchased unique identifier
    }
  ]
}
  • Description
The game client notifies the app to perform the action of assembling a new model.

12. Model Component Replacement(Rocket)

  • state
mg_custom_rocket_replace_component
  • data
{
  "modelId": "modelId", // model id
  "componentList": [
    {
      "itemId": "itemId" // Purchased unique identifier
    }
  ]
}
  • Description
Game client notifies the app to perform the action of model component replacement.

13. Buy component(Rocket)

  • state
mg_custom_rocket_buy_component
  • data
{
  "componentList": [
    {
      "componentId": "1", // component ID
      "value": "1" // value
    }
  ]
}
  • 示例
{
  "componentList": [
    {
      "componentId": "1", // component ID
      "value": "1" // (1: Suit, 2: Main Body, 3: Tail Wing) ID of the configuration data for model component replacement.
    },
    {
      "componentId": "2", // component ID
      "value": "userId" // userId
    },
    {
      "componentId": "3", // component ID
      "value": "你好sud" // signature
    },
    {
      "componentId": "4", // component ID
      "value": "#0000FF" // Color value, using hexadecimal representation.
    }
  ]
}
  • Description
The game client notifies the app with the action to purchase a component.

14. Play effect start(Rocket)

  • state
mg_custom_rocket_play_effect_start
  • data
{}
  • Description
The game client notifies the app with the action to start playing an effect.

15. Play effect finished(Rocket)

  • state
mg_custom_rocket_play_effect_finish
  • data
{}
  • Description
The game client notifies the app with the action that the effect playback has completed.

16. To verify the compliance of a signature(Rocket)

  • state
mg_custom_rocket_verify_sign
  • data
{
  "sign": "你好sud" // the contents of a signature
}
  • Description
The game client notifies the app to perform the action of verifying the compliance of a signature.

17. upload icon(Rocket)

  • state
mg_custom_rocket_upload_model_icon
  • data
{
  "data": "base64 Data" // Image base64 data
}
  • Description
Game client notifies the app to upload an icon.

18. Preparation is complete.(Rocket)

  • state
mg_custom_rocket_prepare_finish
  • data
{}
  • Description
The game client notifies the app that the preliminary preparation is complete.

19. Rocket main interface has been displayed(Rocket)

  • state
mg_custom_rocket_show_game_scene
  • data
{}
  • Description
Game client notifies the app that the rocket main interface has been displayed.

20. The rocket main interface has been hidden(Rocket)

  • state
mg_custom_rocket_hide_game_scene
  • data
{}
  • Description
The game client notifies the app that the rocket main interface has been hidden

21. Click to lock the component(Rocket)

  • state
mg_custom_rocket_click_lock_component
  • data
{
  "type": 1, // component type
  "componentId": "1" // component ID
}
  • Description
Game client notifies the app to lock the component upon clicking.

22. Rocket effect fly click(Rocket)

  • state
mg_custom_rocket_fly_click
  • data
{}
  • Description
Game client notifies APP action of rocket effect fly click.

23. Rocket effect fly finished(Rocket)

  • state
mg_custom_rocket_fly_end
  • data
{
  "clickNumber": 0, // click count
  "flyNumber": 0 // fly distance
}
  • Description
Game client notifies APP action of rocket effect fly finished

24. Set clickable area provided by the app for the game(Rocket)

Origin of the coordinate system: Top-left corner, measured in pixels.
  • state
mg_custom_rocket_set_click_rect
  • data
{
  "list": [
    {
      "x": 0,           // area x, top left
      "y": 0,           // area y, top left
      "width": 0,     // area width
      "height": 0     // area height
    }
  ]
}
  • Description
Game client notifies the app to set the clickable area.

25. Save rocket signature or color.(Rocket)

  • state
mg_custom_rocket_save_sign_color
  • data
{}
  • Description
 Save rocket signature or color.

results matching ""

    No results matching ""