Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.InventoryKey C# (CSharp) Метод

InventoryKey() защищенный Метод

protected InventoryKey ( string name, int type ) : UUID
name string
type int
Результат UUID
        protected UUID InventoryKey(string name, int type)
        {
            lock (m_host.TaskInventory)
            {
                foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
                {
                    if (inv.Value.Name == name)
                    {
                        if (inv.Value.Type != type)
                            return UUID.Zero;

                        return inv.Value.AssetID;
                    }
                }
            }

            return UUID.Zero;
        }

Same methods

LSL_Api::InventoryKey ( string name, bool throwExceptionIfDoesNotExist ) : UUID
LSL_Api