Example #1
0
        /// <summary>
        /// Initializes a new instance of CTileset class. Creates an empty tileset
        /// </summary>
        /// <param name="ID">Type-ID of the tileset</param>
        /// <param name="vInfo">VersionInfo object saved settings</param>
        public TileSet(int ID, VersionInfo vInfo)
        {
            this.iTypeID    =   ID;
            this.vInfo      =   vInfo;

            this.InitializeWithID(ID);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of CTileset class
        /// </summary>
        /// <param name="name">name of the tileset</param>
        /// <param name="path">path to the file</param>
        /// <param name="vInfo">VersionInfo object saved settings</param>
        public TileSet(string name, string path, VersionInfo vInfo)
        {
            // initialize Tileset information
            this.szName     =   name;
            this.path       =   path;
            this.vInfo      =   vInfo;

            // get picture
            Bitmap bmp = new Bitmap(path);

            // get type of TileSet
            this.iTypeID = RecognizeTileType(bmp.Size);
            this.InitializeWithID(this.iTypeID);
        }