Examples

Example sources you can copy into a project.

These are reference code snippets — they are not compiled as part of the library.

Copy what you need into your game project's Code/ directory and adapt to your game.

| File | What it shows | |———|———————| | BasicSetup.cs | Configure the library and call your first endpoint | | GameValuesExample.cs | Fetch and parse game values (groups.<id>.values and tables.<id>.rows), with failed loads reported | | PlayerDataExample.cs | Load player data, mine ore, sell ore pattern | | SaveStateTrackerExample.cs | Optimistic updates with automatic state tracking |

Generated from sbox-cool/sbox-network-storage/Examples/README.md at 9b6ec5d41d99afd1756293d958be1f1330aa73b7 (9b6ec5d).

Publication and source

GitHub source; s&box publication unverified. No confirmed package revision. All versions

Server: 0.4.0 (0.4.0), GitHub source sbox-cool/sbox-network-storage-server at v0.4.0 (705f8cc). Library: main source (9b6ec5d) (source-9b6ec5d), GitHub source sbox-cool/sbox-network-storage at 9b6ec5d41d99afd1756293d958be1f1330aa73b7 (9b6ec5d).