Skip to main content

MeltingModelModifier

An abstract class in Root.Township, Alta.Blacksmithing.

Base class for ScriptableObject rules a MeltingModel runs on the server, for example to change melting yield or whether melting is allowed.

Constructors​

MemberWhat it is
protected MeltingModelModifier()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
abstract void Initialize(MeltingModel model)Called by the model in InitializeAsServer; subclasses hook the model's filter events here.
abstract void Terminate(MeltingModel model)Called when the model is destroyed by the scene or, on the server, by OnDestroy; subclasses unhook here.

Used in​

Members of other types that take, return or hold a MeltingModelModifier: