fresco-binding-0.1.0: Fresco binding for Haskell

Safe HaskellNone
LanguageHaskell98

Fresco.Component

Description

Components of the Entity Component System of Fresco binding

Synopsis

Documentation

data ComponentType a Source

Components in Entities are indexed by ComponentType

Constructors

ComponentType Word64 

type Component = ByteString Source

Components are stored as ByteString

class ComponentClass a where Source

ComponentClass is the typeclass of data types, which can be components

Methods

toObj :: a -> Object Source

fromObj :: Object -> a Source