PositionComponent
A component containing a position as a CGPoint.
-
This function is implemented for
SwiftConfig.IConfigBuildableconformance.Declaration
Swift
public class func build(#config:Config) -> Result<PositionComponent> -
The unique ID of this component’s system.
Declaration
Swift
public let systemID: Systems = .Position -
The unique ID of the entity to which this component belongs.
Declaration
Swift
public var entityID: Entity.EntityID -
The
CGPointthat this component provides to itsEntity.Declaration
Swift
public var position: CGPoint -
The designated initializer.
Declaration
Swift
public init(entityID eid:Entity.EntityID, position p:CGPoint = CGPointZero)
View on GitHub
PositionComponent Class Reference