| 1 | package Draft::Protozoa::Yml::Line::Draft1; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Draft::Entity::Line; | ||
| 7 | use Draft::Protozoa::Yml; | ||
| 8 | |||
| 9 | use vars qw /@ISA/; | ||
| 10 | @ISA = qw /Draft::Entity::Line 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->{1} = $data->{points}->[1]; | ||
| 21 | } | ||
| 22 | |||
| 23 | # FIXME doesn't have Create(), Transform(), Rotate() | ||
| 24 | |||
| 25 | 1; | ||
| 26 |