Party Formation

개요

Build parties from the characters you have recruited. Each party has three slots (slot1 to slot3); you start with room for 2 parties and can expand to 4. On the Party board you switch between parties and tap character cards to put them in or take them out.

체험 방법

  1. Under Recruit a character, press Recruit next to Recruit knight (or another character) a few times to get characters to work with.
  2. On the Party board, pick the Party 1 tab and tap a card under Your characters; the character goes into the first empty slot and its card reads In party 1.
  3. Tap the slot card, or the card marked In party 1, again to take the character out of the party.
  4. Switch to the Party 2 tab to build another party. The same character can be in more than one party.
  5. Press Expand to add room for one more party; the caption reads, for example, 3 of 4 parties. The button is disabled once you reach 4.

사용하는 GS2 서비스

  • GS2-Formation: GS2-Formation’s form model defines a party of three slots, each accepting only characters from the Character inventory. The player can save 2 parties to start and 4 at most. Slots are filled with signed item sets from GS2-Inventory.
  • GS2-Inventory: GS2-Inventory’s Character inventory holds the recruited characters; Your characters on the board lists it.
  • GS2-Exchange: GS2-Exchange rate models define the buttons: Recruit acquires a character and Expand adds a party (Gs2Formation:AddMoldCapacityByUserId), each run server-side as a free transaction.

GS2 Studio에서 사용하기

GS2 Studio의 Simple 모드에서 Add features 를 열고 Party Formation 의 Add 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 Add from GitHub 를 선택하고 아래 패키지를 입력합니다.

https://github.com/gs2io/gs2-studio-package/tree/main/foundation-economy-character-formation/packages/foundation-economy-character-formation
  • Owner: gs2io
  • Repository: gs2-studio-package
  • Subdirectory: foundation-economy-character-formation/packages/foundation-economy-character-formation

소스 코드