# System Architecture

**System Architecture:** The clan system works very closely with all other modules in the system so that the clan entity has a high level view of all activities done in the specific clan.&#x20;

<figure><img src="https://2461813667-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6wrz3evgXnneuhnGBKfG%2Fuploads%2Fx6Up3oqJtYIsFTDjkHaY%2FCLAN%20SYSTEM%20WORKFLOW%20Clan%20Chief%20and%20Member%20Overview.png?alt=media&#x26;token=9400a2e0-4d24-4815-afe7-06050c0f9f1a" alt=""><figcaption></figcaption></figure>

Below is the description of the key elements and their interdependencies:

#### 1. Clan System Initialisation

The workflow begins with the **Clan System Initialisation**, which sets up the foundational structure and ensures seamless integration of all sub-modules within the clan ecosystem.

**Core Modules**

1. **Clan Membership Management:** This module focuses on managing player participation within clans. Its functionalities include:
   * **Create a Clan**: Allows users to establish new clans.
   * **Join a Clan**: Enables players to join existing clans.
   * **Leave a Clan**: Provides members the ability to exit a clan.
   * **Role Structure**: Defines the hierarchy and roles of members within the clan.
     * **Clan Chief:** Clan chiefs play a pivotal role in the governance of clans:
       * **Create/Delete Clans**: Chiefs can manage the creation and dissolution of clans.
       * **Manage Members**: Oversee the addition, removal, and moderation of clan members.
     * **Clan Member Activities:** Clan members engage in various activities, including:
       * **Participating in Quests**: Encourages collaboration and competition within clans.
       * **Engaging in Events**: Promotes interaction through clan-specific events.
   * **Reward System:** The reward system incentivises active participation:
     * **Track Clan Activities**: Tracks activities to determine rewards for members and clans.
     * **Centralize Rewards for ClanChiefLite Clans**:&#x20;
     * **Leaderboard Participation**: Enables tracking of individual and collective achievements via the Clan & Clan Chief Leaderboard.
   * **Earnings System:** Handles the financial aspects of clan operations:
     * **Rewards Calculation**: Ensures equitable distribution of earnings among members.
     * **ClanChiefLite Earnings**: Managing the earnings of CCs who are Lite tagged.
     * **Clan Activities and Rewards completion:** Distributes rewards based on clan member performance in quests and activities.
2. **Notification System:** Keeps members informed about clan-related updates, quests, rewards, and governance activities through a centralized communication platform.
3. **K-Quest System:** K-Quest system is a part of Clan system so as to ensure a high level view of all activities done in a specific clan
4. **Leaderboard System:** Tracks and ranks clan performance based on various metrics like member contributions, quest completions, and events participation.
5. **Governance and Moderation:** This module ensures fair play and accountability:
   * **Feature Clans**: Highlights exemplary clans based on their achievements.
   * **Top Clans**: Recognises and showcases top-performing clans.
   * **Enable ClanChiefLite**: Managing the earnings and rewards of a Clan in a Clan Chief Lite mode i.e. earnings of the overall clan are sent to the Clan Chief who can then distribute the earnings further.
   * **Debar Clans**: Provides mechanisms to manage and moderate underperforming or non-compliant clans.
