internal override void HandleActorCreation(INetworkMessageIn msg) { var quantity = msg.ReadInt(); for (int i = 0; i < quantity; i++) { var id = msg.ReadInt(); var x = msg.ReadInt(); var y = msg.ReadInt(); var hashedClassName = msg.ReadInt(); if (Actors.Exists(a => a.Id == id)) { return; } var newActor = CreateRemoteActorByName(hashedClassName, id, x, y); if (newActor == null) { return; } Actors.Add(newActor); if (newActor.ReplicateProperties) { newActor.Deserialize(msg); } } }