Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. tsum
    T

    tsum

    @tsum

    Chat Follow Unfollow
    0
    Reputation
    3
    Posts
    1228
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with tsum
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    tsum Follow

    Posts made by tsum

    I think the last commit broke something

    When running the examples demo with the latest commit, for example, the state handler demo no longer works.

    posted in General Discussion •
    RE: Dumb question about Colyseus typescript syntax

    @endel Thank you!

    posted in Questions & Help •
    Dumb question about Colyseus typescript syntax

    I'm a TS newbie. I see Colyseus example code like

    @type("number")
    x = 4;

    I can't find other examples of this syntax in typescript documentation. What is it? It looks more like type annotations that normally appear in code comments.

    Why doesn't it use the typescript colon syntax, as in

    x:number = 4;

    posted in Questions & Help •