public CraftedFixture( ComponentManager Manager, Vector3 position, SpriteSheet asset, FixtureCraftDetails details, SimpleSprite.OrientMode OrientMode = SimpleSprite.OrientMode.Spherical) : base(Manager, position, asset, details.GetSpritesheetFrame(details.Resources[0].ResourceType), OrientMode) { this.SetFlag(Flag.ShouldSerialize, true); AddChild(details); }
public FixtureCraftDetails Clone() { var details = new FixtureCraftDetails(Manager) { Resources = new List <ResourceAmount>(), Sprites = new Dictionary <Resource.ResourceTags, Point>(), DefaultSpriteFrame = DefaultSpriteFrame, CraftType = CraftType }; details.Resources.AddRange(Resources); foreach (var pair in Sprites) { details.Sprites[pair.Key] = pair.Value; } return(details); }