GameplayKit Changes for Swift
GameplayKit (Added)
Added GKAgent
Added GKAgent.behavior
Added GKAgent.delegate
Added GKAgent.mass
Added GKAgent.maxAcceleration
Added GKAgent.maxSpeed
Added GKAgent.radius
Added GKAgent.speed
Added GKAgent2D
Added GKAgent2D.position
Added GKAgent2D.rotation
Added GKAgent2D.velocity
Added GKAgentDelegate
Added GKARC4RandomSource
Added GKARC4RandomSource.seed
Added GKBehavior
Added GKBehavior.goalCount
Added GKCircleObstacle
Added GKCircleObstacle.radius
Added GKComponent
Added GKComponent.entity
Added GKComponentSystem
Added GKEntity
Added GKEntity.componentForClass<ComponentType : GKComponent>(_: ComponentType.Type) -> ComponentType?
Added GKEntity.components
Added GKEntity.init()
Added GKGameModel
Added GKGameModel.activePlayer
Added GKGameModel.players
Added GKGameModelPlayer
Added GKGameModelUpdate
Added GKGameModelUpdate.value
Added GKGaussianDistribution
Added GKGoal
Added GKGraph
Added GKGraph.nodes
Added GKGraphNode
Added GKGraphNode2D
Added GKGraphNode2D.position
Added GKGridGraph
Added GKGridGraph.gridHeight
Added GKGridGraph.gridOrigin
Added GKGridGraph.gridWidth
Added GKGridGraphNode
Added GKMinmaxStrategist
Added GKMinmaxStrategist.gameModel
Added GKMinmaxStrategist.randomSource
Added GKNSPredicateRule
Added GKObstacle
Added GKObstacleGraph
Added GKObstacleGraph.connectNodeUsingObstacles(_: GKGraphNode2D, ignoringObstacles: [GKPolygonObstacle])
Added GKPath
Added GKPath.cyclical
Added GKPath.init(points: UnsafeMutablePointer<vector_float2>, count: Int, radius: Float, cyclical: Bool)
Added GKPath.numPoints
Added GKPath.radius
Added GKPolygonObstacle
Added GKRandom
Added GKRandomDistribution
Added GKRandomSource
Added GKRandomSource.init()
Added GKRule
Added GKRule.salience
Added GKRuleSystem
Added GKRuleSystem.agenda
Added GKRuleSystem.evaluate()
Added GKRuleSystem.executed
Added GKRuleSystem.facts
Added GKRuleSystem.init()
Added GKRuleSystem.reset()
Added GKRuleSystem.rules
Added GKRuleSystem.state
Added GKShuffledDistribution
Added GKState
Added GKState.init()
Added GKState.stateMachine
Added GKStateMachine
Added GKStateMachine.stateForClass<StateType : GKState>(_: StateType.Type) -> StateType?
Added GKGameModelMaxScore