---
title: state
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkrulesystem/state
---

# state

A dictionary of state information to be evaluated by the system’s rules.

## Declaration

```swift
var state: NSMutableDictionary { get }
```

## Discussion

Discussion This dictionary is mutable—some rules might alter the system’s state when executed. If you change this dictionary’s contents outside of a rule action, you must reset and reevaluate the system.

## See Also

### Related Documentation

- [reset()](gameplaykit/gkrulesystem/reset().md)
- [evaluate()](gameplaykit/gkrulesystem/evaluate().md)
