Ejemplo n.º 1
0
        void Start()
        {
            MapData data = new MapData();

            data.Deserialize(map);

            Json_MasterParam   master = LitJson.JsonMapper.ToObject <Json_MasterParam>(json.text);
            Json_CalenderParam d      = master.calender;
            CalenderParam      cp     = new CalenderParam();

            cp.Desrialize(d);
            int year = cp.Year;


            width  = data.mMapData.Width;
            height = data.mMapData.Height;
            types  = data.mMapData.MapData;
            for (int h = 0; h < height; ++h)
            {
                for (int w = 0; w < width; ++w)
                {
                    //Debug.Log(h * height + w);

                    if (types[h * height + w] == FloorType.Hatake)
                    {
                        GameObject obj = Instantiate <GameObject>(hatake);
                        obj.transform.position = new Vector3((float)w, 0.1f, (float)height - h);
                        obj.transform.rotation = new Quaternion();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public int ClockMin;    // 時計に反映される分単位

        public void Desrialize(Json_CalenderParam json)
        {
            Year     = json.year;
            Month    = json.month;
            Daysec   = json.daysec;
            ClockSec = json.clocksec;
            ElpsMin  = json.elpsmin;
            ClockMin = json.clockmin;
        }
Ejemplo n.º 3
0
        public int Year; // 1年経つまでの月

        #endregion Fields

        #region Methods

        public void Desrialize(Json_CalenderParam json)
        {
            Year = json.year;
            Month = json.month;
            Daysec = json.daysec;
            ClockSec = json.clocksec;
            ElpsMin = json.elpsmin;
            ClockMin = json.clockmin;
        }
Ejemplo n.º 4
0
 public void Deserialize(Json_MasterParam json)
 {
     //Fix = json.fix;
     Calender = json.calender;
 }
Ejemplo n.º 5
0
 public void Deserialize(Json_MasterParam json)
 {
     //Fix = json.fix;
     Calender = json.calender;
 }