DayZ Enforce
Script API
Private Member Functions | List of all members
ParamsReadContext Class Reference

#include <gameplay.h>

Private Member Functions

proto bool  Read (out class data)
  Function for reading params. ParamsReadContext and ParamsWriteContext works as FIFO (First In First Out), so if you write (via ParamsWriteContext) for e.g.:
Param1<float>,
Param1<int>,
Param1<string>,
you must read these params in the same way so:
Param1<float>,
Param1<int>
and Param1<string> More...
 
private void  ~ParamsReadContext ()
 

Constructor & Destructor Documentation

private void ParamsReadContext::~ParamsReadContext ( )
private

Member Function Documentation

proto bool ParamsReadContext::Read ( out class  data )
private

Function for reading params. ParamsReadContext and ParamsWriteContext works as FIFO (First In First Out), so if you write (via ParamsWriteContext) for e.g.:
Param1<float>,
Param1<int>,
Param1<string>,
you must read these params in the same way so:
Param1<float>,
Param1<int>
and Param1<string>

Parameters
data param class which is filled with data, type of param which is reading must be exactly same as was written previously via ParamsWriteContext. Param object must be created and deleted by you.
Returns
True if success, False otherwise
usage :
autoptr Param1<float> p = Param1<float>(0);
if (ctx.Read(p))
{
float blood_pressure = p.param1;
float effect_intensity = 1.0 - blood_pressure;
ShowFancyScreenEffect(effect_intensity);
}

Referenced by ItemBase::LoadAgents(), ItemBase::LoadVariables(), Consumable_Paper::OnRPC(), PlayerStats::OnRPC(), ModuleRecipes::OnRPC(), EntityDebugSync::OnRPC(), DisplayStatus::OnRPC(), PlayerBase::OnRPC(), OnRPCFreeCameraDisable(), OnRPCFreeCameraSend(), OnRPCServerLogRecieved(), OnRPCSetPlayerPosition(), OnRPCSpawnItem(), ModifiersManager::OnStoreLoad(), AgentManager::OnStoreLoad(), PlayerStat< class T >::OnStoreLoad(), PlayerBase::OnStoreLoadLifespan(), ManBase::OnSynchronized(), PlayerBase::OnSynchronized(), ItemBase::OnSyncVariables(), EntityDebugSync::ReadCtxFloat(), and EntityDebugSync::ReadCtxInt().


The documentation for this class was generated from the following file:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)