예제 #1
0
 public EquipmentSlot(SerializationInfo info, StreamingContext context)
 {
     _targetSlot      = info.GetValue(nameof(_targetSlot), _targetSlot);
     _equipTr         = info.GetValue(nameof(_equipTr), _equipTr);
     _item            = info.GetValue(nameof(_item), _item);
     _slots           = info.GetValue(nameof(_slots), _slots);
     _lastEquipStatus = info.GetValue(nameof(_lastEquipStatus), _lastEquipStatus);
     CurrentStats     = info.GetValue(nameof(CurrentStats), CurrentStats);
     CompatibleSlots  = new[] { _targetSlot };
 }
예제 #2
0
 public ActionSlot(SerializationInfo info, StreamingContext context)
 {
     Type            = info.GetValue(nameof(Type), Type);
     _cachedItem     = info.GetValue(nameof(_cachedItem), _cachedItem);
     _owner          = info.GetValue(nameof(_owner), _owner);
     _action         = info.GetValue(nameof(_action), _action);
     LastEquipStatus = info.GetValue(nameof(LastEquipStatus), LastEquipStatus);
     CompatibleSlots = null;
     CurrentStats    = null;
     RequiredTypes   = new[] { typeof(ActionConfig) };
 }
예제 #3
0
 public CommandTarget(SerializationInfo info, StreamingContext context)
 {
     _target           = info.GetValue(nameof(_target), _target);
     _explicitPosition = ((SerializedV3)info.GetValue(nameof(_explicitPosition), typeof(SerializedV3))).Value;
 }