PatchOperationHighlander
Добавить в игру через Steam
Нажмите «Подписаться»
На странице Steam войдите в аккаунт, если потребуется.
Подписаться
О материале
«PatchOperationHighlander» — материал мастерской RimWorld. Моды для колонии: новые возможности, предметы и удобство игры. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
A library of useful patch operations intended for collaboration.
Due to the nature of RimWorld DLL loading, there can only be one Assembly for the PatchOperation namespace. Feel free to contribute.
PatchOperation.LoadOnDemand Given a set of mods and a set of folders, LoadOnDemand loads the defs found in the folders located inside Defs_OnDemand if the mods exist. Makes it easier to manage optional dependencies as you can combine it with other PatchOperations.
PatchOperation.Context Given a xpath, using the following operations, limit their context to the xpath and run them in sequence. Huge performance gain as multiple operations are limited to small portions of the xml document. Can apply to any xpath with children.
PatchOperation.Set Given a xpath, add or replace child elements. Useful to change a single element that contains multiple children without setting Context. It'll avoid adding duplicates or complain if any is missing.
PatchOperation.Evaluate Given a member field or property with the syntax Type:Member, compare the member's value with the given value. Optionally, log the current value.
PatchOperation.FindModByID Just like its vanilla PatchOperationFindMod counterpart, executes the PatchOperation in match if found otherwise nomatch. Optionally, match all mods in the list.
PatchOperation.LogXML Writes the XML in its current state to the log, very useful to find out what happened. xpath is optional, combos well with Context.
PatchOperation.LogText Writes text, very useful for debugging, don't understimate.
Visit the wiki for documentation and examples. Source at Github
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.