Table of Contents

Struct HousingPlaceStructureBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Asks to place a structure on a plot.

public struct HousingPlaceStructureBroadcast : IBroadcast
Implements
IBroadcast
Inherited Members

Remarks

Names a template by identifier and nothing else. The client never says which prefab to spawn, only which of the pieces the server offers it wants — so a forged request can only ever ask for something that already exists in shipped content.

Fields

LocalPosition

Where to put it, relative to the plot's origin.

public Vector3 LocalPosition

Field Value

Vector3

Remarks

Plot-relative rather than world-space, so moving a foundation in the editor carries the house with it instead of leaving it standing in a field.

PlotID

The plot being built on.

public long PlotID

Field Value

long

TemplateID

Which structure to place.

public int TemplateID

Field Value

int

Yaw

Which way it faces, in degrees about the vertical axis.

public float Yaw

Field Value

float