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
T

tsum

@tsum

Chat Follow Unfollow
0
Reputation
3
Posts
1.2k
Profile views
0
Followers
0
Following
Joined 16 Apr 2020, 21:37 Last Online 26 Apr 2020, 19:22

  • 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 • 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