Entish Docs (35% documented)

Entish Reference PositionComponent Class Reference

PositionComponent

A component containing a position as a CGPoint.

  • This function is implemented for SwiftConfig.IConfigBuildable conformance.

    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 CGPoint that this component provides to its Entity.

    Declaration

    Swift

    public var position: CGPoint
  • The designated initializer.

    Declaration

    Swift

    public init(entityID eid:Entity.EntityID, position p:CGPoint = CGPointZero)