// Utility to create an ObjectIdentifier instance from a random number generator
        static ObjectIdentifier CreateObjectIdentifier(System.Random rnd)
        {
            ObjectIdentifier objectIdentifier = new ObjectIdentifier();

            objectIdentifier.SetObjectIdentifier(CreateGuid(rnd), rnd.Next(), (FileType)rnd.Next(4), "FilePath_" + rnd.Next());
            return(objectIdentifier);
        }
Ejemplo n.º 2
0
        List <ObjectIdentifier> CreateObjectIdentifierList(string path, params GUID[] guids)
        {
            var objects = new List <ObjectIdentifier>();

            foreach (GUID guid in guids)
            {
                var obj = new ObjectIdentifier();
                obj.SetObjectIdentifier(guid, 0, FileType.SerializedAssetType, path);
                objects.Add(obj);
            }
            return(objects);
        }