Type Definition otter::pieces::SimpleShape [−][src]
type SimpleShape = GenericSimpleShape<Html, Outline>;
Trait Implementations
fn svg_piece(
&self,
f: &mut Html,
gpc: &GPiece,
_gs: &GameState,
_vpid: VisiblePieceId
) -> Result<(), IE>
[src]fn add_ui_operations(
&self,
_: ShowUnocculted,
_upd: &mut Vec<UoDescription>,
_gs: &GameState,
_gpc: &GPiece
) -> Result<(), InternalError>
[src]fn ui_operation(
&self,
_: ShowUnocculted,
_a: ApiPieceOpArgs<'_>,
_opname: &str,
_wrc: WhatResponseToClientOp
) -> Result<UpdateFromOpComplex, ApiPieceOpError>
[src]fn held_change_hook(
&self,
_ig: &InstanceRef,
_gpieces: &mut GPieces,
_piece: PieceId,
_was_held: Option<PlayerId>
) -> Result<UnpreparedUpdates, IE>
[src]
fn held_change_hook(
&self,
_ig: &InstanceRef,
_gpieces: &mut GPieces,
_piece: PieceId,
_was_held: Option<PlayerId>
) -> Result<UnpreparedUpdates, IE>
[src]Piece is responsible for dealing with the possibility that they may be occulted! Read more
fn loaded_hook(
&self,
_piece: PieceId,
_gs: &mut GameState,
_ig: &InstanceRef
) -> Result<(), IE>
[src]Not called if the whole game is destroyed. You can use Drop of course but it’s not usually much use since you don’t have a reference to the game or anything. Read more