public TmxImageLayer2D(TmxFile2D tmxFile) : base(UrhoObjectFlag.Empty) { Runtime.Validate(typeof(TmxImageLayer2D)); handle = TmxImageLayer2D_TmxImageLayer2D((object)tmxFile == null ? IntPtr.Zero : tmxFile.Handle); Runtime.RegisterObject(this); OnTmxImageLayer2DCreated(); }
public TmxLayer2D(TmxFile2D tmxFile, TileMapLayerType2D type) : base(UrhoObjectFlag.Empty) { Runtime.Validate(typeof(TmxLayer2D)); handle = TmxLayer2D_TmxLayer2D((object)tmxFile == null ? IntPtr.Zero : tmxFile.Handle, type); Runtime.RegisterObject(this); }
/// <summary> /// Set tmx file. /// </summary> private void SetTmxFile(TmxFile2D tmxFile) { Runtime.ValidateRefCounted(this); TileMap2D_SetTmxFile(handle, (object)tmxFile == null ? IntPtr.Zero : tmxFile.Handle); }