The pendingConfig has values that are about to take effect. Unlike the other ModConfig hooks, this method is called on a clone of the ModConfig that was saved during mod loading. The default implementation compares properties and fields annotated with the ReloadRequiredAttribute. See ModConfigShowcaseDataTypes.Clone for examples and explanations. Modders need to override this method if their config contains reference types. TModLoader will call Clone on ModConfig to facilitate proper implementation of the ModConfig user interface and detecting when a reload is required. tModLoader also provides its own attributes such as ReloadRequiredAttribute and LabelAttribute.ĪcceptClientChanges ( ModConfig pendingConfig, int whoAmI, ref string message)Ĭalled on the Server for ServerSide configs to determine if the changes asked for by the Client will be accepted. Using serialization attributes such as or are critical for proper usage of ModConfig. ![]() When joining a MP server, Client configs are kept but Server configs are synced from the server. ![]() ModConfigs can either be Client specific or Server specific. ModConfig provides a way for mods to be configurable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |