| 1 | package Draft::Protozoa::Yml::Reference::Draft1; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Draft::Entity::Reference; | ||
| 7 | use Draft::Protozoa::Yml; | ||
| 8 | |||
| 9 | use vars qw /@ISA/; | ||
| 10 | @ISA = qw /Draft::Entity::Reference Draft::Protozoa::Yml/; | ||
| 11 | |||
| 12 | sub _parse | ||
| 13 | { | ||
| 14 | my $self = shift; | ||
| 15 | my $data = shift; | ||
| 16 | |||
| 17 | # rules for mapping file data into memory structures | ||
| 18 | |||
| 19 | $self->{0} = $data->{points}->[0]; | ||
| 20 | $self->{location} = $data->{location}; | ||
| 21 | $self->{ignore} = $data->{ignore} || []; | ||
| 22 | } | ||
| 23 | |||
| 24 | # FIXME doesn't have Create(), Transform(), Rotate() | ||
| 25 | |||
| 26 | 1; | ||
| 27 |