public Mechanism(MechanismPrototype data) { Data = data; Id = null !; Name = null !; Description = null !; ExamineMessage = null !; RSIPath = null !; RSIState = null !; _behaviors = new List <MechanismBehavior>(); }
/// <summary> /// Loads the given MechanismPrototype - current data on this Mechanism will be overwritten! /// </summary> public void LoadFromPrototype(MechanismPrototype data) { Name = data.Name; Description = data.Description; ExamineMessage = data.ExamineMessage; RSIPath = data.RSIPath; RSIState = data.RSIState; MaxDurability = data.Durability; CurrentDurability = MaxDurability; DestroyThreshold = data.DestroyThreshold; Resistance = data.Resistance; Size = data.Size; Compatibility = data.Compatibility; }
public Mechanism(MechanismPrototype data) { LoadFromPrototype(data); }