ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord.

Migrating Mods from 9.5 to 9.6

From Eco - English Wiki
Revision as of 21:50, 5 September 2022 by Redwyre (talk | contribs) (Added Jens' info SolidGroundComponent)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SolidGroundComponent[edit | edit source]

Previously you only needed to add

[RequireComponent(typeof(SolidGroundComponent))]

And this would automatically add a solid ground requirement of placable objects, this was refactored/updated and renamed into

[RequireComponent(typeof(SolidAttachedSurfaceRequirementComponent))]

And this now supports more functionalities as it adds a way to limit the placement of any directional block direction regardless as long as its set properly in the Item class by adding the following. (this is mandatory if you add the component as of playtest 9.6 otherwise you will not be able to place the object at all)

public override DirectionAxisFlags RequiresSurfaceOnSides { get;} = 0 | DirectionAxisFlags.Backward;

This supports Right, Left, Forward, Backward, Up, Down as the blocks adjacent to the control placement tile.