Exemple #1
0
        /// <summary>To be documented.</summary>
        public readonly Resourcetype GetType()
        {
            var          @this = (IDirect3DIndexBuffer9 *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            Resourcetype ret   = default;

            ret = ((delegate * unmanaged[Cdecl] < IDirect3DIndexBuffer9 *, Resourcetype >)LpVtbl[10])(@this);
            return(ret);
        }
Exemple #2
0
        private City myCity = null;                                                //city resource is attached to


        /// <summary>
        /// TODO add every avaliable type
        /// </summary>
        /// <param name="type"></param>
        /// <param name="quantity"></param>
        public Resource(string type, int quantity)
        {
            if (type == Resourcetype.Food.ToString())
            {
                myResource = Resourcetype.Food;
            }
            if (type == Resourcetype.Spices.ToString())
            {
                myResource = Resourcetype.Spices;
            }

            if (type == Resourcetype.Wood.ToString())
            {
                myResource = Resourcetype.Wood;
            }
        }
        /// <summary>To be documented.</summary>
        public readonly int CheckDeviceFormat(uint Adapter, Devtype DeviceType, Format AdapterFormat, uint Usage, Resourcetype RType, Format CheckFormat)
        {
            var @this = (IDirect3D9 *)Unsafe.AsPointer(ref Unsafe.AsRef(in this));
            int ret   = default;

            ret = ((delegate * unmanaged[Cdecl] < IDirect3D9 *, uint, Devtype, Format, uint, Resourcetype, Format, int >)LpVtbl[10])(@this, Adapter, DeviceType, AdapterFormat, Usage, RType, CheckFormat);
            return(ret);
        }