> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyStateChange

> A generic, base structure representation of an event or change in state in the Party library.

A generic, base structure representation of an event or change in state in the Party library.

## Syntax

```cpp theme={null}
struct PartyStateChange {  
    PartyStateChangeType stateChangeType;  
}  
```

### Members

**`stateChangeType`**   [PartyStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)

The specific type of the state change represented.

Use this field to determine which corresponding derived structure is represented by this PartyStateChange structure header.

## Remarks

PartyStateChange structures are reported by [PartyManager::StartProcessingStateChanges()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md) for the title to handle and then promptly pass back via the [PartyManager::FinishProcessingStateChanges()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_finishprocessingstatechanges.md) method. \
\
&#x20;The `stateChangeType` field indicates which kind of state change occurred, and this base structure should then be cast to a more specific derived structure to retrieve additional event-specific information.

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)\
[PartyManager::StartProcessingStateChanges](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md)\
[PartyManager::FinishProcessingStateChanges](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_finishprocessingstatechanges.md)


## Related topics

- [PartyStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
- [PartyManager::StartProcessingStateChanges](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md)
- [PartyManager::FinishProcessingStateChanges](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_finishprocessingstatechanges.md)
- [PlayFab Party objects and their relationships](https://docs.xbox.com/services/playfab/multiplayer/networking/concepts-objects.md)
- [PlayFab Party Typedefs](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/typedefs.md)
