Exemple #1
0
        private static bool PreparePromSimsForThumbnail(ulong sim1, ulong sim2)
        {
            List <SimDescription> collection = new List <SimDescription>();

            foreach (Sim sim in Sims3.Gameplay.Queries.GetObjects <Sim>())
            {
                if ((sim.ObjectId.mValue == sim1) || (sim.ObjectId.mValue == sim2))
                {
                    /*
                     * if (collection.Count == 0x1)
                     * {
                     *  foreach (SimDescription description in collection)
                     *  {
                     *      description.SetPartner(sim.SimDescription);
                     *      sim.SimDescription.SetPartner(description);
                     *  }
                     * }
                     */
                    collection.Add(sim.SimDescription);
                }
            }

            if (collection.Count != 0x0)
            {
                List <SimDescription> descriptions = new List <SimDescription>(collection);
                Hashtable             simPosesForPromThumbnnail = ThumbnailHelper.GetSimPosesForPromThumbnnail(collection);
                ThumbnailHelper.BuildSimsForPoses(descriptions, simPosesForPromThumbnnail);
                PromSituation.SetBackdrop();
                ThumbnailManager.SetHouseholdCamera(0x5815de37);
            }
            return(true);
        }