#-

8 messages · Page 1 of 1 (latest)

polar oriole
#

FPlayer should be a struct instead of a class. Beyond that, we'd need to see the declarations of all those other non-primitive types. Please show all relevant code in https://pastie.io/ instead of images.

#

Also make sure both server and client are using the exact same enums in the exact same order. If they've changed between builds, both have to be rebuilt.

#

Sidebar: if you keep your enum values below 255 they can be byte instead of int

#

It should work as it is...it just allocates garbage as a class

#

Not the default - it's changing between these

    LongSword = 700,
    Bow = 800,
#

oh wait - Mirror ignores private fields

#

maybe make a struct for sending the data, and push the values to the class through an internal method

#

Just to mention, List<whatever> is sent internally by converting it to an array, so maybe make those lists to be arrays in the struct to begin with to save that overhead