Draw operation that performs a 2D flood fill. Uses player's position to determine plane of filling.
Inheritance: DrawOperation
Beispiel #1
0
        static void Fill3DHandler( Player player, CommandReader cmd ) {
            Fill3DDrawOperation op = new Fill3DDrawOperation( player );

            IBrushInstance brush = player.Brush.MakeInstance( player, cmd, op );
            if( brush == null ) return;
            op.Brush = brush;

            player.SelectionStart( 1, Fill3DCallback, op, Permission.Draw );
            player.Message( "{0}: Click a block to start filling.", op.Description );
        }
Beispiel #2
0
        static void Fill3DHandler([NotNull] Player player, [NotNull] CommandReader cmd) {
            Fill3DDrawOperation op = new Fill3DDrawOperation(player);

            IBrush brush = player.ConfigureBrush(cmd);
            if (brush == null) return;

            op.Brush = brush;

            player.SelectionStart(1, Fill3DCallback, op, Permission.Draw);
            player.Message("{0}: Click a block to start filling.", op.Description);
        }