Esempio n. 1
0
    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;
    }
Esempio n. 2
0
    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*/);
        //}
    }
Esempio n. 3
0
// 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);
	}
Esempio n. 4
0
// 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);
    }
Esempio n. 5
0
    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*/);
        //}
    }
Esempio n. 6
0
	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;
	}
Esempio n. 7
0
// 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);
    }
Esempio n. 8
0
    public CNetworkVar<TYPE> CreateNetworkVar<TYPE>(CNetworkVar<TYPE>.OnSyncCallback _nSyncCallback)
    {
        CNetworkVar<TYPE> cNewNetworkVar = new CNetworkVar<TYPE>(_nSyncCallback);

        RegisterNetworkVar(cNewNetworkVar);

        return (cNewNetworkVar);
    }
Esempio n. 9
0
 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;
 }
Esempio n. 10
0
    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);
    }
Esempio n. 11
0
 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);
 }
Esempio n. 12
0
 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);
 }
Esempio n. 13
0
    public CNetworkVar<TYPE> CreateNetworkVar<TYPE>(CNetworkVar<TYPE>.OnSyncCallback _nSyncCallback, TYPE _DefaultValue)
    {
        CNetworkVar<TYPE> cNewNetworkVar = new CNetworkVar<TYPE>(_nSyncCallback, _DefaultValue);

        RegisterNetworkVar(cNewNetworkVar);

        return (cNewNetworkVar);
    }
Esempio n. 14
0
// 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);
    }
Esempio n. 15
0
// 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);
    }
Esempio n. 16
0
 public abstract void SetNetworkViewOwner(byte _bNetworkVarId, CNetworkVar <object> .OnSetCallback _nSetCallback);
Esempio n. 17
0
 // Member Functions
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_fRecharge      = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync);
     m_sCurrentToolID = _cRegistrar.CreateNetworkVar <ushort>(OnNetworkVarSync);
 }
Esempio n. 18
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_CurrentToolType = _cRegistrar.CreateNetworkVar<CToolInterface.EType>(OnNetworkVarSync, CToolInterface.EType.INVALID);
	}
Esempio n. 19
0
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_cGravityEnabled = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true);
 }
Esempio n. 20
0
// 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);
    }
Esempio n. 21
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_ActivePanelId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
	}
Esempio n. 22
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_cAttachedModuleViewId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
    }
Esempio n. 23
0
	// 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);
	}
Esempio n. 24
0
	// 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);
	}
Esempio n. 25
0
// 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);
    }
Esempio n. 26
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_ShipAtmosphericQuality = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
	}
Esempio n. 27
0
// 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);
    }
Esempio n. 28
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_AtmosphereGenerationActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
		m_AtmosphereGenerationRate = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
	}
Esempio n. 29
0
 // Member Methods
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_CurrentFacilityType = _cRegistrar.CreateNetworkVar <CFacilityInterface.EType>(OnNetworkVarSync, CFacilityInterface.EType.INVALID);
 }
Esempio n. 30
0
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
    m_bRagdollState = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync);
 }
Esempio n. 31
0
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_Position    = _cRegistrar.CreateNetworkVar <Vector3>(OnNetworkVarSync, Vector3.zero);
     m_EulerAngles = _cRegistrar.CreateNetworkVar <Vector3>(OnNetworkVarSync, Vector3.zero);
 }
Esempio n. 32
0
    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);
	}
Esempio n. 34
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_UnderGravityInfluence = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
	}
Esempio n. 35
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_fHeadEulerX = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f);
    }
Esempio n. 36
0
    // 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);
    }
Esempio n. 37
0
// 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);
    }
Esempio n. 38
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_DUIActive = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false);
    }
Esempio n. 39
0
// Member Methods

	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
		m_DoorState = _cRegistrar.CreateNetworkVar<EDoorState>(OnNetworkVarSync, EDoorState.INVALID);
	}
Esempio n. 40
0
	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);
	}
Esempio n. 41
0
// Member Functions


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_fOxygen            = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, k_fOxygenCapacity);
        m_EnviromentalOxygen = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true);
    }
Esempio n. 42
0
// Member Methods


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_DUIActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
	}
Esempio n. 43
0
 // Member Methods
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_ShipAtmosphericQuality = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f);
 }
Esempio n. 44
0
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_bRagdollState = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync);
 }
Esempio n. 45
0
 // Member Methods
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_ConsoleViewId = _cRegistrar.CreateNetworkVar <CNetworkViewId>(OnNetworkVarSync, null);
 }
Esempio n. 46
0
	// Member Functions
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_fTriggerRadius        = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync);
		m_fCurrentGravityOutput = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync);
	}
Esempio n. 47
0
 // 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);
 }
Esempio n. 48
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_tRotation            = _cRegistrar.CreateNetworkVar <Vector2>(OnNetworkVarSync, Vector2.zero);
        m_ulControllerPlayerId = _cRegistrar.CreateNetworkVar <ulong>(OnNetworkVarSync, 0);
    }
Esempio n. 49
0
	public abstract void SetNetworkViewOwner(byte _bNetworkVarId, CNetworkVar<object>.OnSetCallback _nSetCallback);
Esempio n. 50
0
// Member Methods

    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_DoorState = _cRegistrar.CreateNetworkVar <EDoorState>(OnNetworkVarSync, EDoorState.INVALID);
    }
Esempio n. 51
0
// Member Functions


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
        m_fOxygen = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, k_fOxygenCapacity);
        m_EnviromentalOxygen = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, true);
	}
Esempio n. 52
0
	// 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);
	}
Esempio n. 53
0
// Member Functions

    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_PowerConsumption = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f);
        m_PowerActive      = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false);
    }
Esempio n. 54
0
 // 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);
 }
Esempio n. 56
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _Registrar)
	{
		m_DUIViewId = _Registrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
	}
Esempio n. 57
0
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_Position = _cRegistrar.CreateNetworkVar<Vector3>(OnNetworkVarSync, Vector3.zero);
		m_EulerAngles = _cRegistrar.CreateNetworkVar<Vector3>(OnNetworkVarSync, Vector3.zero);
	}
Esempio n. 58
0
// Member Methods


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_tRotation = _cRegistrar.CreateNetworkVar<Vector2>(OnNetworkVarSync, Vector2.zero);
		m_ulControllerPlayerId = _cRegistrar.CreateNetworkVar<ulong>(OnNetworkVarSync, 0);
	}
Esempio n. 59
0
 // Member Functions
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_fTriggerRadius        = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync);
     m_fCurrentGravityOutput = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync);
 }
Esempio n. 60
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
		m_fHeadEulerX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
    }