Skip to content

Issue with inheritance and SDK decoding #837

Answered by endel
AymanDev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AymanDev, let me try to explain what happened. Hopefully these changes fix the issue for you.

The following changes were made:

  • Your project: changed how to attach the nested callback. It is currently not possible to use nesting (e.g. state.property1.property2), so it's required to .Listen() for .property1 to be available first - Please check this PR at AymanDev/colyseus-inheritance-issue#1
  • @colyseus/schema fixed the Reflection encode order - some types were exposed before their Parent/base type was available, causing issue at decoding time on C# (colyseus/schema@273baf9)
  • Colyseus Unity SDK: prevent assigning the same Type for more than one typeid during handshake colyseus/colyseus-un…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@endel
Comment options

@endel
Comment options

@AymanDev
Comment options

@endel
Comment options

Answer selected by AymanDev
@AymanDev
Comment options

@AymanDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants