Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
svg : pri.make_defs(self, &p)?,
z : self.zlevel.z.clone(),
zg : self.zlevel.zg,
+ angle : pri.angle(self).to_compass(),
pinned : self.pinned,
uos : pri.ui_operations(self, p)?,
}
pub held: Option<PlayerId>,
pub z: ZCoord,
pub zg: Generation,
+ pub angle: CompassAngle,
pub pinned: bool,
pub uos: Vec<UoDescription>,
}
z: ZCoord,
zg: Generation,
pinned: boolean,
+ angle: number,
uos: UoDescription[],
}
p.uelem.setAttributeNS(null, "y", info.pos[1]+"");
p.held = info.held;
p.pinned = info.pinned;
+ p.angle = info.angle;
p.uos = info.uos;
piece_set_zlevel(piece,p, (oldtop_piece)=>{
p.z = info.z;