fCraft.WorldManager.RaiseWorldCreatingEvent C# (CSharp) Method

RaiseWorldCreatingEvent() private static method

private static RaiseWorldCreatingEvent ( [ player, [ worldName, [ map ) : bool
player [
worldName [
map [
return bool
        private static bool RaiseWorldCreatingEvent( [CanBeNull] Player player, [NotNull] string worldName, [CanBeNull] Map map )
        {
            if ( worldName == null )
                throw new ArgumentNullException( "worldName" );
            var h = WorldCreating;
            if ( h == null )
                return false;
            var e = new WorldCreatingEventArgs( player, worldName, map );
            h( null, e );
            return e.Cancel;
        }