{LoadBalancing]Join Response not return actor properties

Options
xhtai4
edited September 2012 in Photon Server
I want to know is there any reason why the LoadBalancing did not return its own actor properties for join response.
            foreach (Actor t in this.Actors)
            {
                if (t.ActorNr != actor.ActorNr && t.Properties.Count > 0)
                {
                    if (joinResponse.CurrentActorProperties == null)
                    {
                        joinResponse.CurrentActorProperties = new Hashtable();
                    }

                    Hashtable actorProperties = t.Properties.GetProperties();
                    joinResponse.CurrentActorProperties.Add(t.ActorNr, actorProperties);
                }
            }

Comments

  • The own actor properties should already be known by the client (after all, they were submitted by the client), so it's not neccessary to send them back. We can save a few bytes here.

    If you prefer that the server returns them, feel free to change the code.