Beispiel #1
0
 /// <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);
 }
Beispiel #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);
 }