pub fn write_ptr_const(value: i32) -> 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_run(Data {
        target: DataTarget::Block("~ ~ ~".to_string()),
        kind: DataKind::Modify {
            path: "RecordItem.tag.Memory".to_string(),
            kind: cir::DataModifyKind::Set,
            source: cir::DataModifySource::Value(value),
        },
    });
    exec.into()
}
// TODO: Technically this can support other datatypes too, since it's stored in a block
/// Shorthand for `write_ptr` when the operand is a constant i32
Technically this can support other datatypes too, since it's stored in a block
Shorthand for `write_ptr` when the operand is a constant i32
Technically this can support other datatypes too since it ' s stored in a block Shorthand for ` write_ptr ` when the operand is a constant i32
pub fn write_ptr_const(value: i32) -> 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_run(Data {
        target: DataTarget::Block("~ ~ ~".to_string()),
        kind: DataKind::Modify {
            path: "RecordItem.tag.Memory".to_string(),
            kind: cir::DataModifyKind::Set,
            source: cir::DataModifySource::Value(value),
        },
    });
    exec.into()
}
pub fn write_ptr_const ( value : i32 ) -> Command { let mut exec = Execute :: new ( ) ; exec . with_at ( cir :: Selector { var : cir :: SelectorVariable :: AllEntities , args : vec ! [ cir SelectorArg ( " " to_string ( ) ) ] , } . into ( ) , ) ; exec . with_run ( Data { target : DataTarget :: Block ( " " . to_string ( ) ) , kind : DataKind :: Modify { path : " " . to_string ( ) , kind : cir :: DataModifyKind :: Set , source : cir :: DataModifySource :: Value ( value ) , } , } ) ; exec . into ( ) }
TODO: Technically this can support other datatypes too, since it's stored in a block
Shorthand for `write_ptr` when the operand is a constant i32
TODO : Technically this can support other datatypes too since it ' s stored in a block Shorthand for ` write_ptr ` when the operand is a constant i32
value
i32
value
i32