https://linen.dev logo
Join Discord
Powered by
# ceramic
  • Yet i have NO UNDERSTANDING on how is used eh
    m

    miniature-lawyer-98519

    03/29/2023, 9:09 PM
    Yet i have NO UNDERSTANDING on how is used eh
  • Some types can be used as component but also as standalone
    b

    billowy-waiter-28954

    03/29/2023, 9:09 PM
    Some types can be used as component but also as standalone
  • Just saying this from firs glimpse in source
    m

    miniature-lawyer-98519

    03/29/2023, 9:09 PM
    Just saying this from firs glimpse in source
  • (like `StateMachine`)
    b

    billowy-waiter-28954

    03/29/2023, 9:09 PM
    (like
    StateMachine
    )
  • Yeah i saw that, no idea why it was like that
    m

    miniature-lawyer-98519

    03/29/2023, 9:10 PM
    Yeah i saw that, no idea why it was like that
  • So component is for the sake of the runtime Type plus the macros?
    m

    miniature-lawyer-98519

    03/29/2023, 9:10 PM
    So component is for the sake of the runtime Type plus the macros?
  • (yeah, guide page about state machines not written yet heh :D)
    b

    billowy-waiter-28954

    03/29/2023, 9:10 PM
    (yeah, guide page about state machines not written yet heh :D)
  • i know πŸ™‚
    m

    miniature-lawyer-98519

    03/29/2023, 9:10 PM
    i know πŸ™‚
  • The other reason you would instanciate a component independently is because you might only decide at runtime to what entity you will attach it
    b

    billowy-waiter-28954

    03/29/2023, 9:11 PM
    The other reason you would instanciate a component independently is because you might only decide at runtime to what entity you will attach it
  • How do you think the API should look like otherwise?
    b

    billowy-waiter-28954

    03/29/2023, 9:12 PM
    How do you think the API should look like otherwise?
  • Uff no idea mate
    m

    miniature-lawyer-98519

    03/29/2023, 9:12 PM
    Uff no idea mate
  • Imagine im checking ceramic for the sake of mimicking the api haha
    m

    miniature-lawyer-98519

    03/29/2023, 9:12 PM
    Imagine im checking ceramic for the sake of mimicking the api haha
  • And the implementation because of the lang syntax differences is becoming hard
    m

    miniature-lawyer-98519

    03/29/2023, 9:13 PM
    And the implementation because of the lang syntax differences is becoming hard
  • I though component was a class on its own that expanded behaviour over the entity
    m

    miniature-lawyer-98519

    03/29/2023, 9:13 PM
    I though component was a class on its own that expanded behaviour over the entity
  • Im not fluent at all at haxe, yet, somehow i would use type inference?
    m

    miniature-lawyer-98519

    03/29/2023, 9:14 PM
    Im not fluent at all at haxe, yet, somehow i would use type inference?
  • Like how many clicks components do u need on a visual entity?
    m

    miniature-lawyer-98519

    03/29/2023, 9:15 PM
    Like how many clicks components do u need on a visual entity?
  • Usually is 1 instance of a type to add behaviour no?
    m

    miniature-lawyer-98519

    03/29/2023, 9:15 PM
    Usually is 1 instance of a type to add behaviour no?
  • so myEntity.addComponent<Click>()
    m

    miniature-lawyer-98519

    03/29/2023, 9:15 PM
    so myEntity.addComponent()
  • And only consume components though their entities
    m

    miniature-lawyer-98519

    03/29/2023, 9:15 PM
    And only consume components though their entities
  • As the entities are responsable anyway to dispose them
    m

    miniature-lawyer-98519

    03/29/2023, 9:15 PM
    As the entities are responsable anyway to dispose them
  • Entity.createWith<Click>() πŸ€·β€β™‚οΈ
    m

    miniature-lawyer-98519

    03/29/2023, 9:16 PM
    Entity.createWith() πŸ€·β€β™‚οΈ
  • Thats what i meant with factories
    m

    miniature-lawyer-98519

    03/29/2023, 9:16 PM
    Thats what i meant with factories
  • Different approach i guess. Yet the disposal of components is what bothers me when im instantiate them on my own
    m

    miniature-lawyer-98519

    03/29/2023, 9:18 PM
    Different approach i guess. Yet the disposal of components is what bothers me when im instantiate them on my own
  • True
    m

    miniature-lawyer-98519

    03/29/2023, 9:19 PM
    True
  • Whats an example of multiple components of the same type on an entity?
    m

    miniature-lawyer-98519

    03/29/2023, 9:20 PM
    Whats an example of multiple components of the same type on an entity?
  • I don't have any example in mind, but I didn't want to restrict the ability to bind a component by type in ceramic
    b

    billowy-waiter-28954

    03/29/2023, 9:21 PM
    I don't have any example in mind, but I didn't want to restrict the ability to bind a component by type in ceramic
  • It’s fine, just wondering cause im not used to ECS and derivates
    m

    miniature-lawyer-98519

    03/29/2023, 9:22 PM
    It’s fine, just wondering cause im not used to ECS and derivates
  • Ceramic is not really ECS for sure
    b

    billowy-waiter-28954

    03/29/2023, 9:22 PM
    Ceramic is not really ECS for sure
  • closer to Unity-style of binding components
    b

    billowy-waiter-28954

    03/29/2023, 9:22 PM
    closer to Unity-style of binding components
  • So says the guide πŸ˜‚
    m

    miniature-lawyer-98519

    03/29/2023, 9:22 PM
    So says the guide πŸ˜‚
1...102103104...124Latest