-
Notifications
You must be signed in to change notification settings - Fork 5
Gotchas
Angus Hollands edited this page Nov 7, 2015
·
4 revisions
#Introduction There are certain aspects to the workflow that may not make sense, and without first being aware of them one may find undesired behaviour.
Serialisable attributes cannot be coerced. (integers are treated as integers, and floats as floats, so you'll get errors trying to set them as such): It would not be sensible to support this, as side effects would be unwanted.
class Example(Replicable):
attribute = Serialisable (0) #or Serialisable (type_of=int)
def __init__(self, scene, unique_id, is_static=False):
# TypeError raised here
self.attribute = 1.0 #Network
##Replication Overview
##Serialisation Data handlers
##Communication Messaging
#Game Framework ##Bindings Creating bindings