Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. govem
    3. Posts
    • Profile
    • More
      • Continue chat with govem
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by govem

    Nested schema levels

    Hello
    I have a schema like this:

    state
      players (ArraySchema)
        characters (MapSchema)
          active (boolean)
          slots (ArraySchema)
            cards (Schema)
              dice (Schema)
                flag (boolean)

    in a command, i need to change the active and the flag variables, both boolean. I debugged the command and at the end of it, the changes were made and everything is ok. But when the change gets to the client and i inspect it, only the active variable is changed and the flag variable remain unchanged. Why is that? is there some kind of limit to the nested levels of serialization? what alternatives do i have?

    posted in Questions & Help •