This page serves as a reference for Rush and its functions.
🚧 Rush is under heavy development. Expect bugs, crashes, breaking changes, and partial experiences so we can ship fast, break things, and iterate to bring you the best onchain game development experience.
This page is Updated Daily.
To interact with the onchain Rush Store Program, Rush has a provided prerelease SDK with the following functions below.
[world]name ="My Onchain World"description ="My Onchain World Description"entities = ["player"]regions = ["base"][entity]player = { name ="String", x ="f64", y ="f64"}[base]player = [ { name ="Player1", x =0.0, y =0.0 }]
The Rush Gaming Blueprint greatly influences how your game interacts with the Onchain World.
In the example above, the Onchain world has a player entity with a name,x, and y component that can be interacted with the Rush SDKs.
Rush Onchain Data Layout
Rush is currently in prerelease, this Onchain Data Layout is bound to change in the future.
World
pubstructWorld {/// Identifier for this specific structurepub discriminator: [u8; 8],/// Description of the worldpub name:String,/// Description of the worldpub description:String,/// Onchain record of what Entity types exist in the worldpub entities:Vec<Entity>,/// Onchain record of what Regions exist in the worldpub regions:Vec<Region>,/// Source of truth for what Instances exist in the worldpub instances:BTreeMap<Region, BTreeMap<Entity, u64>>,/// Determines if the World is already launched and/// instances can now be Created, Updated, and Deleted/// outside of the CreateWorld (Initialization) Instructionpub is_launched:bool,/// Overaching authority who has access to state changing/// operationspub world_authority:Pubkey,/// Canonical bump for Worldpub bump:u8,}
Instance
pubstructInstance {/// Identifier for this specific structurepub discriminator: [u8; 8],/// Source of truth for what the values of the components arepub components:BTreeMap<Component, ComponentValue>,/// Nonce to allow multiple Instancespub nonce:u64,/// Instance authority who has access to state changing/// operations in this specific Instancepub instance_authority:Pubkey,/// Canonical bump for Instancespub bump:u8,}