Core: Add new mLockstepUser API for upcoming lockstep rewrite

This commit is contained in:
Vicki Pfau 2024-08-21 23:59:56 -07:00
parent 0b9cf1270c
commit 3180d432e5
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* Copyright (c) 2013-2016 Jeffrey Pfau
/* Copyright (c) 2013-2024 Jeffrey Pfau
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
@ -53,6 +53,14 @@ static inline void mLockstepUnlock(struct mLockstep* lockstep) {
}
}
struct mLockstepUser {
void (*sleep)(struct mLockstepUser*);
void (*wake)(struct mLockstepUser*);
int (*requestedId)(struct mLockstepUser*);
void (*playerIdChanged)(struct mLockstepUser*, int id);
};
CXX_GUARD_END
#endif