NamingSystemType - jimdroberts/FishMMO GitHub Wiki

Description

Enumeration representing the types of naming systems used in FishMMO. Used to distinguish between different entity name categories, such as character names and guild names, within the naming and broadcast systems.


API Access

Fields

  • CharacterName

    Naming system for character names.

  • GuildName

    Naming system for guild names.


Basic Usage

Setup

  1. Use the NamingSystemType enum to specify the type of naming system when working with naming broadcasts or related logic.
  2. Pass the appropriate enum value (e.g., CharacterName or GuildName) to indicate the context of the name operation.

Example

// Example 1: Assigning a character name
NamingBroadcast assign = new NamingBroadcast {
    Type = NamingSystemType.CharacterName,
    ID = 12345L,
    Name = "HeroName"
};

// Example 2: Assigning a guild name
NamingBroadcast assignGuild = new NamingBroadcast {
    Type = NamingSystemType.GuildName,
    ID = 67890L,
    Name = "GuildName"
};

Best Practices

  • Always use the correct enum value to ensure names are assigned and looked up in the correct context.
  • Extend the enum with new types as additional naming systems are introduced in the game.
⚠️ **GitHub.com Fallback** ⚠️