예제 #1
0
            public override ConstructionDef GetConstructionDefinition(GameEntityManager usedMgr)
            {
                var def = CreateDefinitionCopy(ConstructionID.Cabinet, usedMgr);

                def.Name             = "book shelve";
                def.Components[0].ID = CustomItems.GetItemIdForType <BookShelveItemProvider>();
                return(def);
            }
예제 #2
0
            public override CraftableItem GetCraftableItem(GameEntityManager usedMgr)
            {
                var craftableCabinet    = usedMgr.WorkshopDef(WorkshopID.Carpenter).CraftableItems.Single(ci => ci.ItemID == ItemID.Cabinet);
                var craftableBookshelve = CopyCraftableItem(craftableCabinet);

                craftableBookshelve.ItemID = CustomItems.GetItemIdForType <BookShelveItemProvider>();
                return(craftableBookshelve);
            }