Show / Hide Table of Contents

Class OccupancyContextUtils

Contains functionality that allows us to operate on OccupancyContexts and make a versions of them readable by the client.

Inheritance
System.Object
OccupancyContextUtils
Namespace: Eco.Gameplay.Occupancy
Assembly: Eco.Gameplay.dll
Syntax
public static class OccupancyContextUtils : Object

Methods

GetPlacementRequirements(Type)

Gathers the placement requirements for objects of specified type and packs them into a struct that's shareable to the client.

Declaration
public static WorldObjectPlacementRequirements GetPlacementRequirements(Type worldObjectType)
Parameters
Type Name Description
System.Type worldObjectType
Returns
Type Description
WorldObjectPlacementRequirements
Remarks

That struct is used by the client to pre-emptively validate or invalidate the placement, and display useful info without querying the server.

☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾