Пример #1
0
        //public static IEnumerable<MapInfo> GetAllDataHolders()
        //{
        //    return World.MapInfos;
        //}

        public int CompareTo(object obj)
        {
            var info = obj as MapTemplate;

            if (info != null)
            {
                return(Id.CompareTo(info.Id));
            }
            return(-1);
        }
Пример #2
0
        public int CompareTo(object obj)
        {
            MapTemplate mapTemplate = obj as MapTemplate;

            if (mapTemplate != null)
            {
                return(Id.CompareTo(mapTemplate.Id));
            }
            return(-1);
        }