Server.Statics.Unfreeze C# (CSharp) Méthode

Unfreeze() public static méthode

public static Unfreeze ( Server.Mobile from, Server.Map map, Server.Point3D start, Server.Point3D end ) : void
from Server.Mobile
map Server.Map
start Server.Point3D
end Server.Point3D
Résultat void
		public static void Unfreeze( Mobile from, Map map, Point3D start, Point3D end )
		{
			int totalUnfrozen = 0;
			bool badDataFile = false;

			if ( map == null )
			{
				CommandLogging.WriteLine( from, "{0} {1} invoking unfreeze for every item in every map", from.AccessLevel, CommandLogging.Format( from ) );

				DoUnfreeze( Map.Felucca, ref badDataFile, ref totalUnfrozen );
				DoUnfreeze( Map.Trammel, ref badDataFile, ref totalUnfrozen );
			}
			else if ( start == NullP3D && end == NullP3D )
			{
				CommandLogging.WriteLine( from, "{0} {1} invoking unfreeze for every item in {2}", from.AccessLevel, CommandLogging.Format( from ), map );

				DoUnfreeze( map, ref badDataFile, ref totalUnfrozen );
			}
			else
			{
				CommandLogging.WriteLine( from, "{0} {1} invoking unfreeze from {2} to {3} in {4}", from.AccessLevel, CommandLogging.Format( from ), new Point2D( start ), new Point2D( end ), map );

				DoUnfreeze( map, new Point2D( start ), new Point2D( end ), ref badDataFile, ref totalUnfrozen );
			}

			if ( totalUnfrozen == 0 && badDataFile )
				from.SendGump( new NoticeGump( 1060637, 30720, "Output data files could not be opened and the unfreeze operation has been aborted.<br><br>This probably means your server and client are using the same data files.  Instructions on how to resolve this can be found in the first warning window.", 0xFFC000, 320, 240, null, null ) );
			else
				from.SendGump( new NoticeGump( 1060637, 30720, String.Format( "Unfreeze operation completed successfully.<br><br>{0} item{1} unfrozen.<br><br>You must restart your client and update it's data files to see the changes.", totalUnfrozen, totalUnfrozen != 1 ? "s were" : " was" ), 0xFFC000, 320, 240, null, null ) );
		}