Shared server and client code - how to organize a project

edited October 2011 in Photon Server
Some of the code is shared between the server and the client (Unity) - for example operations.
I am wondering, how do you organise your projects to share that code.


  • You can move operation codes, event codes and parameter codes into a shared dll.
    The contract classes are not supported on client side, so you would define those just on the server side and access the event/operation dictionaries on the client side with the defined codes directly.
  • Thanks for the answer. I was also including operation requests and responses in that .dll, and it wont work for me.
    Now I have removed them and everything is ok. :)
Sign In or Register to comment.