コード例 #1
0
 public MapFacet(IDataFactory factory, byte mapindex, FacetDesc desc)
 {
     _Desc       = desc;
     _Width      = desc.Width;
     _Height     = desc.Height;
     _Blocks     = new MapBlock[_Width * _Height];
     dataFactory = factory;
     _MapIndex   = mapindex;
 }
コード例 #2
0
 /// <summary>
 /// Create and initialized UODataManager object, wich represent viewmodel and logic of UO data.
 /// For extended variant with more options see another declaration.
 /// </summary>
 /// <param name="uri">Folder path to client data or data-server address. At this momment only local path are supported.</param>
 /// <param name="version">UO Data version</param>
 /// <param name="features">UO Additional features/</param>
 /// <param name="language">Specify language that used in data files and server. If null Default Language will be used/</param>
 /// <param name="facets">Descrition of maps, use null for auto detecting.</param>
 public UODataManager(Uri uri, UODataTypeVersion version, UODataTypeOptions options = UODataTypeOptions.None, Language language = null, FacetDesc[] facets = null)
     : this(uri, (UODataType)version | (UODataType)options, language ?? Language.English, facets != null ? new UODataOptions(facets) : null)
 {
 }
コード例 #3
0
 internal UODataOptions(FacetDesc[] facets)
 {
     majorFacet = minorFacet = facets;
 }
コード例 #4
0
ファイル: UOTypes.cs プロジェクト: svn2github/essence-udk
 public MapFacet(IDataFactory factory, byte mapindex, FacetDesc desc)
 {
     _Desc   = desc;
     _Width  = desc.Width;
     _Height = desc.Height;
     _Blocks = new MapBlock[_Width * _Height];
     dataFactory = factory;
     _MapIndex = mapindex;
 }