Show / Hide Table of Contents

Class WaterManager

The main purpose of this class is to be able to send the byte data describing water level with blocks that are partially covered by water. One sample of these blocks is pipes. They dont cover 100% of volume of the block. The water level information is needed for the client so it can render water level properly. There are no water block here, but still it should render the water surrounding the object.

Inheritance
System.Object
WaterManager
Namespace: Eco.World.Water
Assembly: Eco.World.dll
Syntax
public class WaterManager : AutoSingleton<WaterManager>

Constructors

WaterManager()

Declaration
public WaterManager()

Methods

Initialize()

Declaration
public void Initialize()

TryGetExtraData(Vector3i, out Byte)

Communicates the water level of the block via byte value

Declaration
public bool TryGetExtraData(Vector3i pos, out byte extraData)
Parameters
Type Name Description
Vector3i pos
System.Byte extraData
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾