public GetField ( int &field, string name, FieldNotFound fail = null ) : void | ||
field | int | |
name | string | |
fail | FieldNotFound | |
return | void |
public void GetField(ref int field, string name, FieldNotFound fail = null)
{
if (type == Type.OBJECT)
{
int index = keys.IndexOf(name);
if (index >= 0)
{
field = (int)list[index].n;
return;
}
}
if (fail != null) fail.Invoke(name);
}
public void GetField(ref uint field, string name, FieldNotFound fail = null)
JSONObject::GetField ( string name ) : JSONObject, | |
JSONObject::GetField ( bool &field, string name, FieldNotFound fail = null ) : void | |
JSONObject::GetField ( double &field, string name, FieldNotFound fail = null ) : void | |
JSONObject::GetField ( float &field, string name, FieldNotFound fail = null ) : void | |
JSONObject::GetField ( string name, GetFieldResponse response, FieldNotFound fail = null ) : void | |
JSONObject::GetField ( string &field, string name, FieldNotFound fail = null ) : void | |
JSONObject::GetField ( uint &field, string name, FieldNotFound fail = null ) : void |
public MovementDown(JSONObject js) : base() { _id = (int)js.GetField(js.keys[0]).n; _movement = (int)js.GetField(js.keys[1]).n; NbTurn = (int)js.GetField("nbTurn").n; ApplyReverseEffect = true; }