Exemplo n.º 1
0
        private bool GetOrdinalAndId(int identifier, out int ordinal, out int id)
        {
            ordinal = AssetLibraryInfo.ORDINAL_MASK / 2 + m_assetDB.ToOrdinal(identifier);
            if (ordinal > AssetLibraryInfo.ORDINAL_MASK)
            {
                Debug.LogError("Unable to generate identifier. Allotted Identifiers range was exhausted");
                id = 0;
                return(false);
            }

            id = identifier & AssetLibraryInfo.ORDINAL_MASK;
            return(true);
        }