Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. tsum
  3. Posts
  • Profile
  • More
    • Continue chat with tsum
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

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 • 22 Apr 2020, 18:26
RE: Dumb question about Colyseus typescript syntax

@endel Thank you!

posted in Questions & Help • 16 Apr 2020, 22:06
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 • 16 Apr 2020, 21:42

© 2023 Endel Dreyer