List<Array> a = new List<Array>();
List<Array> a = new List<Array>();
OperationResponse newresponse = new OperationResponse(2);
newresponse.Parameters = new Dictionary<byte, object> { { 0, a as object } };
SendOperationResponse(newresponse, sendParameters);
[Serializable]
public class Vector2: ISerializable
{
public int x { get; set; }
public int z { get; set; }
public Vector2(int x1, int z1)
{
x = x1;
z = z1;
}
protected Vector2(SerializationInfo info, StreamingContext context)
{
//map all your properties here
x = Convert.ToInt32(info.GetBoolean("x"));
z = Convert.ToInt32(info.GetBoolean("z"));
//...
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("x", x);
info.AddValue("z", z);
}
}
public List<Vector2> gameobject = new List<Vector2>();
OperationResponse newresponse = new OperationResponse(2);
newresponse.Parameters = new Dictionary<byte, object> { { 0, Server2D.InstanceGameObject.gameobject as object } };
SendOperationResponse(newresponse, sendParameters);
public class Vector2: ISerializable
{
public int x { get; set; }
public int z { get; set; }
public Vector2(int x1, int z1)
{
x = x1;
z = z1;
}
public void GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("x", x);
info.AddValue("z", z);
}
}