Esempio n. 1
0
        public Collections.NgbhItems GetItems(Data.NeighborhoodSlots id, uint inst)
        {
            Collections.NgbhSlots slots = Sims;
            if (id == Data.NeighborhoodSlots.Families || id == Data.NeighborhoodSlots.FamiliesIntern)
            {
                slots = Families;
            }

            if (id == Data.NeighborhoodSlots.Lots || id == Data.NeighborhoodSlots.LotsIntern)
            {
                slots = Lots;
            }

            NgbhSlot slot = slots.GetInstanceSlot(inst);

            if (slot != null)
            {
                return(slot.GetItems(id));
            }

            return(null);
        }
Esempio n. 2
0
        private void miNuke_Activate(object sender, System.EventArgs e)
        {
            if (spc.SelectedSim != null)
            {
                Collections.NgbhSlots slots = this.Ngbh.GetSlots(Data.NeighborhoodSlots.Sims);
                if (slots != null)
                {
                    NgbhSlot slot = slots.GetInstanceSlot(spc.SelectedSim.Instance);
                    if (slot != null)
                    {
                        slot.RemoveMyMemories();
                        int deletedCount = slot.RemoveMemoriesAboutMe();

                        if (deletedCount > 0)
                        {
                            Message.Show(String.Format("Deleted {0} memories from the sim pool", deletedCount));
                        }

                        spc.Refresh();
                    }
                }
            }
        }