我想在 Scrypto 蓝图中制作一款游戏,用户可以使用他们的 Gumball NFT 来玩。
我的蓝图有一种pub fn attack(&self, my_gumball: Proof, other_gumball_key: NonFungibleId)方法,可以通过分配 1 到 10 之间的随机伤害来攻击另一个 NFT。我应该使用Runtime::generate_uuid()它吗?
pub fn attack(&self, my_gumball: Proof, other_gumball_key: NonFungibleId)
Runtime::generate_uuid()
smartcontracts scrypto
scrypto ×1
smartcontracts ×1