| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- // WARNING - AUTOGENERATED - DO NOT EDIT
- //
- // Generated using `sharpie urho`
- //
- // TileMapObject2D.cs
- //
- // Copyright 2015 Xamarin Inc. All rights reserved.
- using System;
- using System.Runtime.InteropServices;
- using System.Collections.Generic;
- using Urho.Urho2D;
- using Urho.Gui;
- using Urho.Resources;
- using Urho.IO;
- using Urho.Navigation;
- using Urho.Network;
- namespace Urho.Urho2D
- {
- /// <summary>
- /// Tile map object.
- /// </summary>
- public unsafe partial class TileMapObject2D : RefCounted
- {
- unsafe partial void OnTileMapObject2DCreated ();
- [Preserve]
- public TileMapObject2D (IntPtr handle) : base (handle)
- {
- OnTileMapObject2DCreated ();
- }
- [Preserve]
- protected TileMapObject2D (UrhoObjectFlag emptyFlag) : base (emptyFlag)
- {
- OnTileMapObject2DCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr TileMapObject2D_TileMapObject2D ();
- [Preserve]
- public TileMapObject2D () : base (UrhoObjectFlag.Empty)
- {
- Runtime.Validate (typeof(TileMapObject2D));
- handle = TileMapObject2D_TileMapObject2D ();
- Runtime.RegisterObject (this);
- OnTileMapObject2DCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern TileMapObjectType2D TileMapObject2D_GetObjectType (IntPtr handle);
- /// <summary>
- /// Return type.
- /// </summary>
- private TileMapObjectType2D GetObjectType ()
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_GetObjectType (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr TileMapObject2D_GetName (IntPtr handle);
- /// <summary>
- /// Return name.
- /// </summary>
- private string GetName ()
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (TileMapObject2D_GetName (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr TileMapObject2D_GetType (IntPtr handle);
- /// <summary>
- /// Return type.
- /// </summary>
- private string UrhoGetType ()
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (TileMapObject2D_GetType (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.Vector2 TileMapObject2D_GetPosition (IntPtr handle);
- /// <summary>
- /// Return position.
- /// </summary>
- private Urho.Vector2 GetPosition ()
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_GetPosition (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.Vector2 TileMapObject2D_GetSize (IntPtr handle);
- /// <summary>
- /// Return size (for rectangle and ellipse).
- /// </summary>
- private Urho.Vector2 GetSize ()
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_GetSize (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern uint TileMapObject2D_GetNumPoints (IntPtr handle);
- /// <summary>
- /// Return number of points (use for script).
- /// </summary>
- private uint GetNumPoints ()
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_GetNumPoints (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern Urho.Vector2 TileMapObject2D_GetPoint (IntPtr handle, uint index);
- /// <summary>
- /// Return point at index (use for script).
- /// </summary>
- public Urho.Vector2 GetPoint (uint index)
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_GetPoint (handle, index);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern int TileMapObject2D_GetTileGid (IntPtr handle);
- /// <summary>
- /// Return tile Gid.
- /// </summary>
- private int GetTileGid ()
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_GetTileGid (handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr TileMapObject2D_GetTileSprite (IntPtr handle);
- /// <summary>
- /// Return tile sprite.
- /// </summary>
- private Sprite2D GetTileSprite ()
- {
- Runtime.ValidateRefCounted (this);
- return Runtime.LookupObject<Sprite2D> (TileMapObject2D_GetTileSprite (handle));
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool TileMapObject2D_HasProperty (IntPtr handle, string name);
- /// <summary>
- /// Return has property.
- /// </summary>
- public bool HasProperty (string name)
- {
- Runtime.ValidateRefCounted (this);
- return TileMapObject2D_HasProperty (handle, name);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr TileMapObject2D_GetProperty (IntPtr handle, string name);
- /// <summary>
- /// Return property value.
- /// </summary>
- public string GetProperty (string name)
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (TileMapObject2D_GetProperty (handle, name));
- }
- /// <summary>
- /// Return type.
- /// </summary>
- public TileMapObjectType2D ObjectType {
- get {
- return GetObjectType ();
- }
- }
- /// <summary>
- /// Return name.
- /// </summary>
- public string Name {
- get {
- return GetName ();
- }
- }
- /// <summary>
- /// Return type.
- /// </summary>
- public string Type {
- get {
- return UrhoGetType ();
- }
- }
- /// <summary>
- /// Return position.
- /// </summary>
- public Urho.Vector2 Position {
- get {
- return GetPosition ();
- }
- }
- /// <summary>
- /// Return size (for rectangle and ellipse).
- /// </summary>
- public Urho.Vector2 Size {
- get {
- return GetSize ();
- }
- }
- /// <summary>
- /// Return number of points (use for script).
- /// </summary>
- public uint NumPoints {
- get {
- return GetNumPoints ();
- }
- }
- /// <summary>
- /// Return tile Gid.
- /// </summary>
- public int TileGid {
- get {
- return GetTileGid ();
- }
- }
- /// <summary>
- /// Return tile sprite.
- /// </summary>
- public Sprite2D TileSprite {
- get {
- return GetTileSprite ();
- }
- }
- }
- }
|