Esempio n. 1
0
        public BundleRoom(CommunityCenterBundles Bundles, string Name, List <Tuple <int, string> > Tasks)
        {
            //Possible TODO: Support localization - get translated name of room (add a new string field, DisplayName, store translated name in it. Use it when drawing the Room name in BundleBagMenu)

            this.Bundles = Bundles;
            this.Name    = Name;
            this.Tasks   = Tasks.Select(x => new BundleTask(this, x.Item1, x.Item2)).ToList().AsReadOnly();
        }
Esempio n. 2
0
        public BundleRoom(CommunityCenterBundles Bundles, string Name, List <Tuple <int, string> > Tasks)
        {
            this.Bundles = Bundles;
            this.Name    = Name;
            int RoomNumber = CommunityCenter.getAreaNumberFromName(Name);

            this.DisplayName = CommunityCenter.getAreaDisplayNameFromNumber(RoomNumber);
            this.Tasks       = Tasks.Select(x => new BundleTask(this, x.Item1, x.Item2)).ToList().AsReadOnly();
        }