public override void SetNetworkViewOwner(byte _bNetworkVarId, CNetworkVar <object> .OnSetCallback _nSetCallback) { Logger.WriteErrorOn(m_bNetworkVarId != 0, "You should not change a network var's network view owner once set. Undefined behaviour may occur"); m_nSetNotifyCallback = _nSetCallback; m_bNetworkVarId = _bNetworkVarId; }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { //if (Position) //{ mPositionX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*transform.position.x*/); mPositionY = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*transform.position.y*/); mPositionZ = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*transform.position.z*/); //} //if (Angle) //{ mAngleX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*transform.eulerAngles.x*/); mAngleY = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*transform.eulerAngles.y*/); mAngleZ = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*transform.eulerAngles.z*/); //} //if (PositionalVelocity) //{ mPositionalVelocityX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*rigidbody.velocity.x*/); mPositionalVelocityY = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*rigidbody.velocity.y*/); mPositionalVelocityZ = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*rigidbody.velocity.z*/); //} //if (AngularVelocity) //{ mAngularVelocityX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*rigidbody.angularVelocity.x*/); mAngularVelocityY = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*rigidbody.angularVelocity.y*/); mAngularVelocityZ = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f/*rigidbody.angularVelocity.z*/); //} }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_ServerCreateExpansionStage= _cRegistrar.CreateNetworkVar<int>(OnNetworkVarSync, (int)EExpansionCreatePhase.INVALID); m_ServerLocalExpansionPortIdSelected = _cRegistrar.CreateNetworkVar<uint>(OnNetworkVarSync, uint.MaxValue); m_ServerOtherExpansionPortIdSelected = _cRegistrar.CreateNetworkVar<uint>(OnNetworkVarSync, uint.MaxValue); m_ServerFacilitySelected= _cRegistrar.CreateNetworkVar<int>(OnNetworkVarSync, (int)CFacilityInterface.EType.INVALID); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_ServerCreateExpansionStage = _cRegistrar.CreateNetworkVar <int>(OnNetworkVarSync, (int)EExpansionCreatePhase.INVALID); m_ServerLocalExpansionPortIdSelected = _cRegistrar.CreateNetworkVar <uint>(OnNetworkVarSync, uint.MaxValue); m_ServerOtherExpansionPortIdSelected = _cRegistrar.CreateNetworkVar <uint>(OnNetworkVarSync, uint.MaxValue); m_ServerFacilitySelected = _cRegistrar.CreateNetworkVar <int>(OnNetworkVarSync, (int)CFacilityInterface.EType.INVALID); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { //if (Position) //{ mPositionX = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*transform.position.x*/); mPositionY = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*transform.position.y*/); mPositionZ = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*transform.position.z*/); //} //if (Angle) //{ mAngleX = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*transform.eulerAngles.x*/); mAngleY = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*transform.eulerAngles.y*/); mAngleZ = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*transform.eulerAngles.z*/); //} //if (PositionalVelocity) //{ mPositionalVelocityX = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*rigidbody.velocity.x*/); mPositionalVelocityY = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*rigidbody.velocity.y*/); mPositionalVelocityZ = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*rigidbody.velocity.z*/); //} //if (AngularVelocity) //{ mAngularVelocityX = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*rigidbody.angularVelocity.x*/); mAngularVelocityY = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*rigidbody.angularVelocity.y*/); mAngularVelocityZ = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f /*rigidbody.angularVelocity.z*/); //} }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { health_internal = _cRegistrar.CreateNetworkVar<float>(OnSyncHealth, health_initial); state_internal = _cRegistrar.CreateNetworkVar<byte>(OnSyncState, state_initial); // Set before Start() health_previous = health_current = health_initial; state_previous = state_current = state_initial; }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_cActiveTurretViewId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null); //m_CalibratorComponentActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, null); //m_LiquidComponentActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, null); //m_RatchetComponentActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, null); }
public CNetworkVar<TYPE> CreateNetworkVar<TYPE>(CNetworkVar<TYPE>.OnSyncCallback _nSyncCallback) { CNetworkVar<TYPE> cNewNetworkVar = new CNetworkVar<TYPE>(_nSyncCallback); RegisterNetworkVar(cNewNetworkVar); return (cNewNetworkVar); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { health_internal = _cRegistrar.CreateNetworkVar <float>(OnSyncHealth, health_initial); state_internal = _cRegistrar.CreateNetworkVar <byte>(OnSyncState, state_initial); // Set before Start() health_previous = health_current = health_initial; state_previous = state_current = state_initial; }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_RightHandNetworkedPos = _cRegistrar.CreateNetworkVar <UnityEngine.Vector3>(OnNetworkVarSync); m_RightHandNetworkedRot = _cRegistrar.CreateNetworkVar <UnityEngine.Vector3>(OnNetworkVarSync); m_LeftHandNetworkedPos = _cRegistrar.CreateNetworkVar <UnityEngine.Vector3>(OnNetworkVarSync); m_LeftHandNetworkedRot = _cRegistrar.CreateNetworkVar <UnityEngine.Vector3>(OnNetworkVarSync); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { radius_internal = _cRegistrar.CreateNetworkVar <float>(SyncNetworkVar, initialRadius); zoom_internal = _cRegistrar.CreateNetworkVar <float>(SyncNetworkVar, initialZoom); centreCellOfProjectionX = _cRegistrar.CreateNetworkVar <int>(SyncNetworkVar, centreCellOfProjection_internal.x); centreCellOfProjectionY = _cRegistrar.CreateNetworkVar <int>(SyncNetworkVar, centreCellOfProjection_internal.y); centreCellOfProjectionZ = _cRegistrar.CreateNetworkVar <int>(SyncNetworkVar, centreCellOfProjection_internal.z); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { radius_internal = _cRegistrar.CreateNetworkVar<float>(SyncNetworkVar, initialRadius); zoom_internal = _cRegistrar.CreateNetworkVar<float>(SyncNetworkVar, initialZoom); centreCellOfProjectionX= _cRegistrar.CreateNetworkVar<int>(SyncNetworkVar, centreCellOfProjection_internal.x); centreCellOfProjectionY= _cRegistrar.CreateNetworkVar<int>(SyncNetworkVar, centreCellOfProjection_internal.y); centreCellOfProjectionZ= _cRegistrar.CreateNetworkVar<int>(SyncNetworkVar, centreCellOfProjection_internal.z); }
public CNetworkVar<TYPE> CreateNetworkVar<TYPE>(CNetworkVar<TYPE>.OnSyncCallback _nSyncCallback, TYPE _DefaultValue) { CNetworkVar<TYPE> cNewNetworkVar = new CNetworkVar<TYPE>(_nSyncCallback, _DefaultValue); RegisterNetworkVar(cNewNetworkVar); return (cNewNetworkVar); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_cActiveTurretViewId = _cRegistrar.CreateNetworkVar <CNetworkViewId>(OnNetworkVarSync, null); //m_CalibratorComponentActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, null); //m_LiquidComponentActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, null); //m_RatchetComponentActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, null); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_acToolsViewId = new CNetworkVar <CNetworkViewId> [k_uiMaxNumTools]; for (uint i = 0; i < k_uiMaxNumTools; ++i) { m_acToolsViewId[i] = _cRegistrar.CreateNetworkVar <CNetworkViewId>(OnNetworkVarSync); } m_bToolCapacity = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync, 2); m_bActiveToolId = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync); }
public abstract void SetNetworkViewOwner(byte _bNetworkVarId, CNetworkVar <object> .OnSetCallback _nSetCallback);
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fRecharge = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync); m_sCurrentToolID = _cRegistrar.CreateNetworkVar <ushort>(OnNetworkVarSync); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_CurrentToolType = _cRegistrar.CreateNetworkVar<CToolInterface.EType>(OnNetworkVarSync, CToolInterface.EType.INVALID); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_cGravityEnabled = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_PowerGenerationRate = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_PowerGenerationRatePotential = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_PowerGenerationActive = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_ActivePanelId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_cAttachedModuleViewId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_iStoredNanites = _cRegistrar.CreateNetworkVar<int>(OnNetworkVarSync, 0); m_iNaniteCapacity = _cRegistrar.CreateNetworkVar<int>(OnNetworkVarSync, 0); m_bNanitesAvailable = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_CurrentModuleType = _cRegistrar.CreateNetworkVar<CModuleInterface.EType>(OnNetworkVarSync, CModuleInterface.EType.INVALID); m_CurrentPortSelected = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_AtmosphereQuantity = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_fAtmosphereRefillRate = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_fAtmosphereConsumptionRate = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_ShipAtmosphericQuality = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_AtmosphereQuantity = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); m_fAtmosphereRefillRate = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); m_fAtmosphereConsumptionRate = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_AtmosphereGenerationActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false); m_AtmosphereGenerationRate = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_CurrentFacilityType = _cRegistrar.CreateNetworkVar <CFacilityInterface.EType>(OnNetworkVarSync, CFacilityInterface.EType.INVALID); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_bRagdollState = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_Position = _cRegistrar.CreateNetworkVar <Vector3>(OnNetworkVarSync, Vector3.zero); m_EulerAngles = _cRegistrar.CreateNetworkVar <Vector3>(OnNetworkVarSync, Vector3.zero); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_cGravityEnabled = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, true); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_AtmosphereConditioningActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false); m_AtmosphereCapacitySupport = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_UnderGravityInfluence = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fHeadEulerX = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_BatteryCharge = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_BatteryCapacity = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_BatteryChargeAvailable = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_acToolsViewId = new CNetworkVar<CNetworkViewId>[k_uiMaxNumTools]; for (uint i = 0; i < k_uiMaxNumTools; ++i) { m_acToolsViewId[i] = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync); } m_bToolCapacity = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync, 2); m_bActiveToolId = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_DUIActive = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_DoorState = _cRegistrar.CreateNetworkVar<EDoorState>(OnNetworkVarSync, EDoorState.INVALID); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { for (uint ui = 0; ui < (uint)ENoiseLayer.MAX; ++ui) mNoiseSeeds[ui] = _cRegistrar.CreateNetworkVar<int>(SyncNoiseSeed); mCentreCellX = _cRegistrar.CreateNetworkVar<int>(SyncCentreCellX, mCentreCell.x); mCentreCellY = _cRegistrar.CreateNetworkVar<int>(SyncCentreCellY, mCentreCell.y); mCentreCellZ = _cRegistrar.CreateNetworkVar<int>(SyncCentreCellZ, mCentreCell.z); mGalaxySize = _cRegistrar.CreateNetworkVar<float>(SyncGalaxySize, mfGalaxySize); mNumCellSubsets = _cRegistrar.CreateNetworkVar<uint>(SyncNumCellSubsets, muiNumCellSubsets); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fOxygen = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, k_fOxygenCapacity); m_EnviromentalOxygen = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_DUIActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_ShipAtmosphericQuality = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_bRagdollState = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_ConsoleViewId = _cRegistrar.CreateNetworkVar <CNetworkViewId>(OnNetworkVarSync, null); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fTriggerRadius = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync); m_fCurrentGravityOutput = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_iStoredNanites = _cRegistrar.CreateNetworkVar <int>(OnNetworkVarSync, 0); m_iNaniteCapacity = _cRegistrar.CreateNetworkVar <int>(OnNetworkVarSync, 0); m_bNanitesAvailable = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_tRotation = _cRegistrar.CreateNetworkVar <Vector2>(OnNetworkVarSync, Vector2.zero); m_ulControllerPlayerId = _cRegistrar.CreateNetworkVar <ulong>(OnNetworkVarSync, 0); }
public abstract void SetNetworkViewOwner(byte _bNetworkVarId, CNetworkVar<object>.OnSetCallback _nSetCallback);
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_DoorState = _cRegistrar.CreateNetworkVar <EDoorState>(OnNetworkVarSync, EDoorState.INVALID); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fOxygen = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, k_fOxygenCapacity); m_EnviromentalOxygen = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, true); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_BatteryCharge = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); m_BatteryCapacity = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); m_BatteryChargeAvailable = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_PowerConsumption = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); m_PowerActive = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fRecharge = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync); m_sCurrentToolID = _cRegistrar.CreateNetworkVar<ushort>(OnNetworkVarSync); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_AtmosphereConditioningActive = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false); m_AtmosphereCapacitySupport = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _Registrar) { m_DUIViewId = _Registrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null); }
public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_Position = _cRegistrar.CreateNetworkVar<Vector3>(OnNetworkVarSync, Vector3.zero); m_EulerAngles = _cRegistrar.CreateNetworkVar<Vector3>(OnNetworkVarSync, Vector3.zero); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_tRotation = _cRegistrar.CreateNetworkVar<Vector2>(OnNetworkVarSync, Vector2.zero); m_ulControllerPlayerId = _cRegistrar.CreateNetworkVar<ulong>(OnNetworkVarSync, 0); }
// Member Functions public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fTriggerRadius = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync); m_fCurrentGravityOutput = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync); }
// Member Methods public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar) { m_fHeadEulerX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f); }