Kaba class LightType ed

...

Syntax ed

class LightType

    # functions
    func static pure all(type: Class&) -> LightType[]
    func static pure from_int(i: i32) -> LightType
    func static pure parse(label: string, type: Class&) -> LightType

    # operators
    func pure __i32__() -> i32           # i32(LightType) -> i32
    func static __assign__(a: LightType, b: LightType) # LightType = LightType
    func pure __add__(b: LightType) -> LightType # LightType + LightType -> LightType
    func static __iadd__(a: LightType, b: LightType) # LightType += LightType
    func pure __eq__(b: LightType) -> bool # LightType == LightType -> bool
    func pure __neq__(b: LightType) -> bool # LightType __neq__ LightType -> bool
    func pure __bitand__(b: LightType) -> LightType # LightType & LightType -> LightType
    func pure __bitor__(b: LightType) -> LightType # LightType | LightType -> LightType

    # constants
    let AMBIENT: LightType
    let CONE: LightType
    let DIRECTIONAL: LightType
    let POINT: LightType

Functions ed

func static pure all(type: Class&) -> LightType[]
...

func static pure from_int(i: i32) -> LightType
...

func static pure parse(label: string, type: Class&) -> LightType
...