NAME

Data::TagDB::Plugin::Gamebook::Exit - Work with Gamebook data in TagDBs, container for exits

VERSION

version v0.01

SYNOPSIS

use Data::TagDB;

$db->load_plugin('Data::TagDB::Plugin::Gamebook');

my @exits = $tag->get('Data::TagDB::Plugin::Gamebook#exit', list => 1);

(since v0.01)

This package represents an exit within a gamebook page-like object.

This package inherits from Data::Identifier::Interface::Simple (since v0.01).

METHODS

tag

my Data::TagDB::Tag $tag = $exit->tag;

(since v0.01)

Returns the tag representing this exit.

db

my Data::TagDB $db = $exit->db;

(since v0.01)

Returns the database object for this exit.

label

my $label = $exit->label;

(since v0.01)

The label that should be used with the exit. This will die if no label can be found.

Later versions for this module might implement multi-language support or a variant that avoids dieing.

direction

my Data::TagDB::Tag $direction = $exit->direction;

(experimental since v0.01)

Returns the direction of the exit.

The exact semantics of this call are subject to change.

target_tag

my Data::TagDB::Tag $target_tag = $exit->target_tag;

(since v0.01)

Returns the target tag of the exit if any or die if none.

Later versions of this module might provide a variant without dieing.

AUTHOR

Philipp Schafft <lion@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Philipp Schafft <lion@cpan.org>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)