// // Licensed under the MIT License. See LICENSE file in the project root for full license information. // namespace MUnique.OpenMU.Interfaces; /// /// A guild is a group of players who like to play together. /// /// /// You may wonder where the Id is. The original server and this uses an integer id for guilds, too. /// I decided to manage these keys in memory and on demand, they are not persistent. /// I could've used an integer Id as primary key in the persistent Guild class, but don't do it by purpose: /// We would lose the ability to easily merge two databases (realms), if we do that. Even if we use a separate integer id column in the database, /// it needs to be re-assigned after a merge. /// public class Guild { /// /// Gets or sets the name. /// public string? Name { get; set; } /// /// Gets or sets the logo. /// /// /// It's like a 16 color 8x8 pixel bitmap, therefore has a size of 32 bytes. /// public byte[]? Logo { get; set; } /// /// Gets or sets the score. /// public int Score { get; set; } /// /// Gets or sets the guild notice which can be set by the guild master. /// /// Visible in green color after a character entered the game. public string? Notice { get; set; } /// /// Gets or sets the hostile guild. Members of a hostile guild can be killed without consequences. /// public virtual Guild? Hostility { get; set; } /// /// Gets or sets the parent alliance guild. /// /// /// The alliance guild. /// public virtual Guild? AllianceGuild { get; set; } }