public Mechanism(MechanismPrototype data)
 {
     Data           = data;
     Id             = null !;
     Name           = null !;
     Description    = null !;
     ExamineMessage = null !;
     RSIPath        = null !;
     RSIState       = null !;
     _behaviors     = new List <MechanismBehavior>();
 }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 public Mechanism(MechanismPrototype data)
 {
     LoadFromPrototype(data);
 }