コード例 #1
0
			public static void ADDBOATDAMAGEENTRY(
				TriggerObject trigObject, BaseBoat boat, Mobile mob, int damage, DateTime expiration)
			{
				if (boat != null && mob != null)
				{
					boat.AddDamageEntry(mob, damage, expiration);
				}
			}
コード例 #2
0
			public static void ADDBOATDAMAGEENTRY(TriggerObject trigObject, BaseBoat boat, Mobile mob, int damage)
			{
				if (boat != null && mob != null)
				{
					// default expiration of 15 minutes
					boat.AddDamageEntry(mob, damage, DateTime.UtcNow + TimeSpan.FromMinutes(30.0));
				}
			}