public Resident(int range, int id, ResidentState state, Shared2DArray <byte> sharedState) { mRange = range; mId = id; State = state; SharedState = sharedState; }
public static Shared2DArray <T> FromString(string json) { Shared2DArray <T> ret = new Shared2DArray <T>(); string[] parts = json.Split(','); int size = int.Parse(parts[0]); ret.Initialize(size, parts); return(ret); }