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); }
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); }
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); }