示例#1
0
文件: TmxFile2D.cs 项目: yrest/urho
 /// <summary>
 /// Add layer at index, if index > number of layers then append to end.
 /// </summary>
 public void AddLayer(uint index, TmxLayer2D layer)
 {
     Runtime.ValidateRefCounted(this);
     TmxFile2D_AddLayer(handle, index, (object)layer == null ? IntPtr.Zero : layer.Handle);
 }
示例#2
0
 /// <summary>
 /// Initialize with tile map and tmx layer.
 /// </summary>
 public void Initialize(TileMap2D tileMap, TmxLayer2D tmxLayer)
 {
     Runtime.ValidateRefCounted(this);
     TileMapLayer2D_Initialize(handle, (object)tileMap == null ? IntPtr.Zero : tileMap.Handle, (object)tmxLayer == null ? IntPtr.Zero : tmxLayer.Handle);
 }