mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Expose to python
This commit is contained in:
@ -55,6 +55,16 @@ struct plNCAgeLeaver;
|
||||
|
||||
class plNetLinkingMgr
|
||||
{
|
||||
public:
|
||||
enum LinkSfx
|
||||
{
|
||||
kPlayNone = 0,
|
||||
kPlayLinkIn = 1<<0,
|
||||
kPlayLinkOut = 1<<1,
|
||||
kPlayBoth = (kPlayLinkIn | kPlayLinkOut)
|
||||
};
|
||||
|
||||
private:
|
||||
static void NCAgeJoinerCallback (
|
||||
plNCAgeJoiner * joiner,
|
||||
unsigned type,
|
||||
@ -110,7 +120,7 @@ class plNetLinkingMgr
|
||||
void IDoLink(plLinkToAgeMsg* link);
|
||||
bool IProcessVaultNotifyMsg(plVaultNotifyMsg* msg);
|
||||
|
||||
bool IDispatchMsg( plMessage * msg, uint32_t playerID );
|
||||
bool IDispatchMsg( plMessage* msg, LinkSfx sfx, uint32_t playerID );
|
||||
|
||||
|
||||
public:
|
||||
@ -125,26 +135,35 @@ public:
|
||||
bool Linking () const { return !fLinkedIn && !fLinkingEnabled; }
|
||||
|
||||
// Link to an age.
|
||||
void LinkToAge( plAgeLinkStruct * link, uint32_t playerID=kInvalidPlayerID );
|
||||
void LinkToAge( plAgeLinkStruct * link, const char* linkAnim, uint32_t playerID=kInvalidPlayerID );
|
||||
void LinkToAge( plAgeLinkStruct * link, LinkSfx sfx=kPlayBoth, uint32_t playerID=kInvalidPlayerID );
|
||||
void LinkToAge( plAgeLinkStruct * link, const char* linkAnim, LinkSfx sfx=kPlayBoth, uint32_t playerID=kInvalidPlayerID );
|
||||
|
||||
// Link to my last age.
|
||||
void LinkToPrevAge( uint32_t playerID=kInvalidPlayerID );
|
||||
void LinkToPrevAge( LinkSfx sfx=kPlayBoth, uint32_t playerID=kInvalidPlayerID );
|
||||
|
||||
// Link to my Personal Age
|
||||
void LinkToMyPersonalAge( uint32_t playerID=kInvalidPlayerID );
|
||||
void LinkToMyPersonalAge( LinkSfx sfx=kPlayBoth, uint32_t playerID=kInvalidPlayerID );
|
||||
|
||||
// Link to my Neighborhood Age
|
||||
void LinkToMyNeighborhoodAge( uint32_t playerID=kInvalidPlayerID );
|
||||
void LinkToMyNeighborhoodAge( LinkSfx sfx=kPlayBoth, uint32_t playerID=kInvalidPlayerID );
|
||||
|
||||
// Link a player here.
|
||||
void LinkPlayerHere( uint32_t playerID );
|
||||
void LinkPlayerHere( uint32_t playerID, LinkSfx sfx=kPlayBoth );
|
||||
|
||||
// Link player to specified age
|
||||
void LinkPlayerToAge( plAgeLinkStruct * link, uint32_t playerID );
|
||||
void LinkPlayerToAge( plAgeLinkStruct * link, uint32_t playerID, LinkSfx sfx=kPlayBoth );
|
||||
|
||||
// Link player back to his last age
|
||||
void LinkPlayerToPrevAge( uint32_t playerID );
|
||||
|
||||
// Link us to a players age.
|
||||
void LinkToPlayersAge( uint32_t playerID );
|
||||
|
||||
// Offer a link to player.
|
||||
void OfferLinkToPlayer( const plAgeLinkStruct * info, uint32_t playerID, plKey replyKey );
|
||||
void OfferLinkToPlayer( const plAgeInfoStruct * info, uint32_t playerID );
|
||||
void OfferLinkToPlayer( const plAgeLinkStruct * info, uint32_t playerID );
|
||||
|
||||
// Leave the current age
|
||||
void LeaveAge (bool quitting);
|
||||
|
||||
|
Reference in New Issue
Block a user