pub fn write_ptr(target: ScoreHolder) -> Command {
    let mut exec = Execute::new();
    exec.with_at(
        cir::Selector {
            var: cir::SelectorVariable::AllEntities,
            args: vec![cir::SelectorArg("tag=ptr".to_string())],
        }
        .into(),
    );
    exec.with_subcmd(ExecuteSubCmd::Store {
        is_success: false,
        kind: ExecuteStoreKind::Data {
            target: DataTarget::Block("~ ~ ~".to_string()),
            path: "RecordItem.tag.Memory".to_string(),
            ty: "int".to_string(),
            scale: 1.0,
        },
    });
    exec.with_run(ScoreGet {
        target: target.into(),
        target_obj: OBJECTIVE.to_string(),
    });

    exec.into()
}
/// Reads the score in the given `target` and writes to the current memory location
Reads the score in the given `target` and writes to the current memory location
Reads the score in the given ` target ` and writes to the current memory location
pub fn write_ptr(target: ScoreHolder) -> Command {
    let mut exec = Execute::new();
    exec.with_at(
        cir::Selector {
            var: cir::SelectorVariable::AllEntities,
            args: vec![cir::SelectorArg("tag=ptr".to_string())],
        }
        .into(),
    );
    exec.with_subcmd(ExecuteSubCmd::Store {
        is_success: false,
        kind: ExecuteStoreKind::Data {
            target: DataTarget::Block("~ ~ ~".to_string()),
            path: "RecordItem.tag.Memory".to_string(),
            ty: "int".to_string(),
            scale: 1.0,
        },
    });
    exec.with_run(ScoreGet {
        target: target.into(),
        target_obj: OBJECTIVE.to_string(),
    });
    exec.into()
}
pub fn write_ptr ( target : ScoreHolder ) -> Command { let mut exec = Execute :: new ( ) ; exec . with_at ( cir :: Selector { var : cir :: SelectorVariable :: AllEntities , args : vec ! [ cir SelectorArg ( " " to_string ( ) ) ] , } . into ( ) , ) ; exec . with_subcmd ( ExecuteSubCmd :: Store { is_success : false , kind : ExecuteStoreKind :: Data { target : DataTarget :: Block ( " " . to_string ( ) ) , path : " " . to_string ( ) , ty : " " . to_string ( ) , scale : 1.0 , } , } ) ; exec . with_run ( ScoreGet { target : target . into ( ) , target_obj : OBJECTIVE . to_string ( ) , } ) ; exec . into ( ) }
Reads the score in the given `target` and writes to the current memory location
Reads the score in the given ` target ` and writes to the current memory location
target
ScoreHolder
target
ScoreHolder