示例#1
0
        public void Load()
        {
            bool noDirt = SectionData.Current.DirtDatas == null || SectionData.Current.DirtDatas.Count <= 0;

            if (noDirt)
            {
                // if there is no dirt data that was loaded then create a new one.
                data = new DirtData(UniqueIdGenerator.IdFromDate(), X, Y, false, false, 0);
            }
            else
            {
                LoadExistingDirt();
            }
        }