コード例 #1
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			if ( version == 0 )
			{
				SmithHammerWeapon hammer = new SmithHammerWeapon( UsesRemaining );
				Timer.DelayCall<Item>( TimeSpan.FromSeconds( 1.0 ), new TimerStateCallback<Item>( Replace_Item ), hammer );
			}
		}
コード例 #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            if (version == 0)
            {
                SmithHammerWeapon hammer = new SmithHammerWeapon(UsesRemaining);
                Timer.DelayCall <Item>(TimeSpan.FromSeconds(1.0), new TimerStateCallback <Item>(Replace_Item), hammer);
            }
        }