NAME
Physics::Terrain::Snapshot - everything a turn changes, kept to replay from
VERSION
Version 0.01
SYNOPSIS
my $snap = $field->snapshot;
my $out = $field->run_turn(0, \@inputs, $shot);
$field->restore($snap);
my $again = $field->run_turn(0, \@inputs, $shot);
DESCRIPTION
An opaque copy of a field's mask, bodies, craters, graves, clock and random state at one moment, made by "snapshot" in Physics::Terrain and handed back to "restore" in Physics::Terrain. It is only good for the field it came from and it goes away with its last reference.
AUTHOR
LNATION, <email at lnation.org>
LICENSE AND COPYRIGHT
This software is Copyright (c) 2026 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)