-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
network: client sends protocol version; shrugger glitch
- Loading branch information
1 parent
1b37a14
commit 020fd98
Showing
9 changed files
with
244 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef NETWORK_RUN_LEVEL_H | ||
#define NETWORK_RUN_LEVEL_H | ||
#include <3ds.h> | ||
#include "level.h" | ||
#include "main_data.h" | ||
|
||
int server_prepare_level( | ||
udsBindContext* bindctx, | ||
const u8* lemmings, // number of lemmings the players start with | ||
u8 game_id, | ||
u8 level_id, | ||
struct Level* output); | ||
|
||
// important: overwrites settings.glitch_direct_drop. | ||
// therefore the local value has to be stored before this function is called | ||
int client_prepare_level( | ||
udsBindContext* bindctx, | ||
const u8* lemmings, // number of lemmings the players start with | ||
u8* lvl_id, | ||
u8 game_id, | ||
struct Level* output); | ||
|
||
int server_run_level( | ||
udsBindContext* bindctx, | ||
struct Level* level, | ||
const char* level_id, | ||
u8* lemmings, // number of lemmings the players have rescued | ||
struct MainMenuData* menu_data, | ||
struct MainInGameData* main_data); | ||
int client_run_level( | ||
udsBindContext* bindctx, | ||
struct Level* level, | ||
const char* level_id, | ||
u8* lemmings, | ||
u16* won, | ||
struct MainMenuData* menu_data, | ||
struct MainInGameData* main_data); | ||
|
||
int server_send_result( | ||
udsBindContext* bindctx, | ||
u8 lemmings[2], | ||
u16 won[2]); | ||
|
||
#define CHUNK_SIZE (UDS_DATAFRAME_MAXSIZE - sizeof(struct NW_LevelData_Chunk)) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.