get properties bug for Lite
Options
Hi,
there is a bug for lite app, when you try to get properties of actors something like
operation on server just cant cast to List<int>, even if you try in flash this
so I fixed it this way
there is a bug for lite app, when you try to get properties of actors something like
sendOperation(94, new Array(12/*Properties*/, 2, 11/*Actors*/, new Array(1, 2)));
operation on server just cant cast to List<int>, even if you try in flash this
var v:Vector.<int> = new Vector.<int>([1,2]) sendOperation(94, new Array(12/*Properties*/, 2, 11/*Actors*/,v));
so I fixed it this way
public class GetPropertiesOperation : Operation { .... [RequestParameter(Code = (short)ParameterKeys.Actors, IsOptional = true)] //public List<int> ActorNumbers { get; protected set; } public IList ActorNumbers { get; protected set; } ... }
0
Comments
-
Thank you for finding this bug.
We will change the property to an int array for the next release.[RequestParameter(Code = (short)ParameterKeys.Actors, IsOptional = true)] public int[] ActorNumbers { get; protected set; }
0 -
also if you want get only 1 actor parameters for example
photonServer.sendOperationToPhoton(94, new Array(12, 2, 11, new Array(1)))
this didn't work either0