Skip to content

Commit

Permalink
Move hero game to subdir (MystenLabs#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Mar 15, 2022
1 parent a43f653 commit 7d79724
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
12 changes: 12 additions & 0 deletions sui_programmability/examples/games/hero/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "HeroGame"
version = "0.0.1"

[dependencies]
Sui = { local = "../../../framework" }

[addresses]
HeroGame = "0x0"

[dev-addresses]
HeroGame = "0x0"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Example of a game character with basic attributes, inventory, and
/// associated logic.
module Games::Hero {
module HeroGame::Hero {
use Sui::Coin::{Self, Coin};
use Sui::Event;
use Sui::ID::{Self, ID, VersionedID};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/// earns RUM tokens for hero's owner.
/// Note that this mod does not require special permissions from `Hero` module;
/// anyone is free to create a mod like this.
module Games::SeaHero {
use Games::Hero::{Self, Hero};
module HeroGame::SeaHero {
use HeroGame::Hero::{Self, Hero};
use Sui::ID::{Self, VersionedID};
use Sui::Coin::{Self, Coin, TreasuryCap };
use Sui::Transfer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/// the monster for them in exchange for some of the reward.
/// Anyone can create a mod like this--the permission of the `SeaHero` game
/// is not required.
module Games::SeaHeroHelper {
use Games::SeaHero::{Self, SeaMonster, RUM};
use Games::Hero::Hero;
module HeroGame::SeaHeroHelper {
use HeroGame::SeaHero::{Self, SeaMonster, RUM};
use HeroGame::Hero::Hero;
use Sui::Coin::{Self, Coin};
use Sui::ID::{Self, VersionedID};
use Sui::Transfer;
Expand Down

0 comments on commit 7d79724

Please sign in to comment.