Scripts/Vivre/Commands/GM/SerializeDuper.cs
/// <summary>
/// Reads the serial of an item and duplicates that item if it hasn't been
/// duplicated before.
/// </summary>
/// <returns>Reference to the duplicated item.</returns>
Reads the serial of an item and duplicates that item if it hasn't been
duplicated before.
Reads the serial of an item and duplicates that item if it hasn ' t been duplicated before .
public override Item ReadItem()
		{
			int recursionDepth = ReadInt();
			int serial = ReadInt();
			if ( serialMapping.ContainsKey( serial ) )
			{
				return World.FindItem( serialMapping[serial] );
			}
			Item toDupe = World.FindItem( serial );
			if ( toDupe == null ) { return null; }
			return DupeTarget.Dupe( duper, toDupe, recursionDepth, itemList, mobileList, serialMapping ) as Item;
		}
public override Item ReadItem ( ) { int recursionDepth = ReadInt ( ) ; int serial = ReadInt ( ) ; if ( serialMapping . ContainsKey ( serial ) ) { return World . FindItem ( serialMapping [ serial ] ) ; } Item toDupe = World . FindItem ( serial ) ; if ( toDupe == null ) { return null ; } return DupeTarget . Dupe ( duper , toDupe , recursionDepth , itemList , mobileList , serialMapping ) as Item ; }
Reads the serial of an item and duplicates that item if it hasn't been
duplicated before.
Reads the serial of an item and duplicates that item if it hasn ' t been duplicated before .
// We already duped this Item; use reference to previously duped one
Reference to the duplicated item.
Reference to the duplicated item .