예제 #1
0
 public Resident(int range, int id, ResidentState state, Shared2DArray <byte> sharedState)
 {
     mRange      = range;
     mId         = id;
     State       = state;
     SharedState = sharedState;
 }
예제 #2
0
        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);
        }