Exemplo n.º 1
0
        public static ColoredObject GetNew(int flowerIndex, Color color,
                                           int stack = 1)
        {
            var newObject = new ColoredObject(flowerIndex, stack, color);

            PlatoObject <SObject> .SetIdentifier(newObject, typeof(Wildflower));

            return(newObject);
        }
Exemplo n.º 2
0
        public static StardewValley.Object GetNew(string id)
        {
            SaveIndex.ValidateIndex();

            var newComic = new StardewValley.Object(SaveIndex.Index, 1);

            PlatoObject <StardewValley.Object> .SetIdentifier(newComic, typeof(ComicBook));

#if ANDROID
            newComic.netName.Value = newComic.netName.Value.Split(';')[0] + ";" + id;
#else
            newComic.modDataForSerialization.Add("Id", id);
#endif

            return(newComic);
        }
Exemplo n.º 3
0
        public static SObject GetNew(SObject seed = null, int stack = 1)
        {
            EmptySaveIndex.ValidateIndex();
            if (seed != null)
            {
                stack = 1;
            }
            var newObject = new SObject(TileIndex, stack);

            PlatoObject <SObject> .SetIdentifier(newObject, typeof(FlowerBomb));

            if (seed != null)
            {
                newObject.heldObject.Value = seed.getOne() as SObject;
            }
            return(newObject);
        }