NamingSystemType - jimdroberts/FishMMO GitHub Wiki
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.
-
CharacterName
Naming system for character names.
-
GuildName
Naming system for guild names.
- Use the
NamingSystemType
enum to specify the type of naming system when working with naming broadcasts or related logic. - Pass the appropriate enum value (e.g.,
CharacterName
orGuildName
) to indicate the context of the name operation.
// 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"
};
- 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.