Table of Contents

Interface INetickScript

Namespace
Netick
Assembly
Netick.dll

A script which can be added to Netick internal simulation loop.

public interface INetickScript

Properties

Engine

NetickEngine Engine { get; }

Property Value

NetickEngine

Entity

Entity Entity { get; }

Property Value

Entity

Index

int Index { get; set; }

Property Value

int

Methods

GameEngineIntoNetcode()

void GameEngineIntoNetcode()

Initialize(NetickEngine, Entity)

void Initialize(NetickEngine netickEngine, Entity obj)

Parameters

netickEngine NetickEngine
obj Entity

NetcodeIntoGameEngine()

void NetcodeIntoGameEngine()

NetworkDestroy()

Called when this script has been removed from the simulation.

void NetworkDestroy()

NetworkFixedUpdate()

Called every fixed-time network update/tick. Any changes/updates to the network state must happen here.

On the client, if you are the Input Source or if this Entity.PredictionMode is set to Global, it will be called several times in one update/tick during resimulations. To check for resimulations, use [IsResimulating].

void NetworkFixedUpdate()

NetworkRender()

Called every frame. Executed after NetworkUpdate and NetworkFixedUpdate.

void NetworkRender()

NetworkStart()

Called when this script has been added to the simulation.

void NetworkStart()

NetworkUpdate()

Called every frame. Executed before NetworkFixedUpdate.

void NetworkUpdate()