Beispiel #1
0
// Member Delegates & Events


// Member Properties



// Member Functions
    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_bIsFunctionalityAllowed = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true);
        m_bIsCellBroken           = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false);
        m_bIsCellMatchingSlot     = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true);
        m_cCurrentCell            = _cRegistrar.CreateNetworkVar <CNetworkViewId>(OnNetworkVarSync, null);
    }
Beispiel #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*/);
        //}
    }
Beispiel #3
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*/);
        //}
    }
Beispiel #4
0
// Member Delegates & Events


// Member Properties
	
	
	
// Member Functions
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_bIsFunctionalityAllowed = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, true);
		m_bIsCellBroken = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
		m_bIsCellMatchingSlot = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, true);
		m_cCurrentCell = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
	}
Beispiel #5
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);
	}
Beispiel #6
0
// Member Delegates & Events


// Member Properties


// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        for (int i = 0; i < (int)EThrusters.MAX; ++i)
        {
            m_baThustersEnabled[i] = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false);
        }
    }
Beispiel #7
0
// Member Delegates & Events


// Member Properties


// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        for (int i = 0; i < (int)EThrusters.MAX; ++ i)
        {
            m_baThustersEnabled[i] = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
        }
    }
Beispiel #8
0
// Member Functions
    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        //                                              Type   Callback          Initial Vlaue
        m_fHealth        = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, k_fMaxHealth);
        m_HealthState    = _cRegistrar.CreateNetworkVar <byte> (OnNetworkVarSync, (byte)HealthState.INVALID);
        m_fOxygenUseRate = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 5.0f);
    }
Beispiel #9
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);
    }
Beispiel #10
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;
	}
Beispiel #11
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;
 }
Beispiel #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);
 }
// 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);
    }
Beispiel #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);
    }
Beispiel #15
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);
    }
Beispiel #16
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);
 }
Beispiel #17
0
// Member Functions
    
    // public:


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_cParentViewId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
        
        _cRegistrar.RegisterRpc(this, "RemoteSetPosition");
        _cRegistrar.RegisterRpc(this, "RemoteSetRotation");
        _cRegistrar.RegisterRpc(this, "RemoteSetScale");
        _cRegistrar.RegisterRpc(this, "RemoteSetRigidBodyMass");
	}
Beispiel #18
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_fRotationY     = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f);
        m_fGravity       = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, -9.81f);
        m_fMovementSpeed = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 6.5f);
        m_fSprintSpeed   = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 8.0f);
        m_fJumpSpeed     = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 2.0f);
        m_bStates        = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync, 0);
    }
Beispiel #19
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_sNetworkedPlayerName = _cRegistrar.CreateNetworkVar <string>(OnNetworkVarSync, "");

        _cRegistrar.RegisterRpc(this, "RegisterPlayerName");
        _cRegistrar.RegisterRpc(this, "UnregisterPlayerName");
        _cRegistrar.RegisterRpc(this, "RegisterPlayerActor");
        _cRegistrar.RegisterRpc(this, "UnregisterPlayerActor");
    }
Beispiel #20
0
 // Member Methods
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     _cRegistrar.RegisterRpc(this, "InvokeOnClick");
     _cRegistrar.RegisterRpc(this, "InvokeOnDoubleClick");
     _cRegistrar.RegisterRpc(this, "InvokeOnPress");
     _cRegistrar.RegisterRpc(this, "InvokeOnSelect");
     _cRegistrar.RegisterRpc(this, "InvokeOnHover");
     _cRegistrar.RegisterRpc(this, "InvokeOnDrag");
     _cRegistrar.RegisterRpc(this, "InvokeOnDragStart");
     _cRegistrar.RegisterRpc(this, "InvokeOnDragEnd");
     _cRegistrar.RegisterRpc(this, "InvokeOnScroll");
 }
Beispiel #21
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);
    }
Beispiel #22
0
    // private:


    void InitialiseNetworkVars()
    {
        // Extract components from game object
        CNetworkMonoBehaviour[] aComponents = gameObject.GetComponents<CNetworkMonoBehaviour>();
        CNetworkViewRegistrar cRegistrar = new CNetworkViewRegistrar(m_mNetworkVars, OnNetworkVarChange, m_mNetworkRpcs);

        foreach (CNetworkMonoBehaviour cNetworkMonoBehaviour in aComponents)
        {
            cNetworkMonoBehaviour.InstanceNetworkVars(cRegistrar);
        }

        /*
        foreach (CNetworkMonoBehaviour cComponent in aComponents)
        {
            // Initialise the network vars within network component
            cComponent.InstanceNetworkVars();

            // Extract fields from component
            FieldInfo[] aFieldInfos = cComponent.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);


            foreach (FieldInfo cFieldInfo in aFieldInfos)
            {
                // Check this is a network var
				if (cFieldInfo.FieldType.IsSubclassOf(typeof(INetworkVar)))
				{
					// Extract network var instance
					INetworkVar cNetworkVar = (INetworkVar)cFieldInfo.GetValue(cComponent);
					
					
					ReigserNetworkVar(cNetworkVar);
				}
				
                // Check this is a network var
				else if (cFieldInfo.FieldType.IsArray &&
						 cFieldInfo.FieldType.GetElementType().IsSubclassOf(typeof(INetworkVar)))
				{
					INetworkVar[] acItems = cFieldInfo.GetValue(cComponent) as INetworkVar[];

		            foreach (INetworkVar cItem in acItems)
		            {
						ReigserNetworkVar(cItem);
					}
				}
            }
        }
       */
    }
Beispiel #23
0
	// Member Functions
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_fTriggerRadius        = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync);
		m_fCurrentGravityOutput = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync);
	}
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     _cRegistrar.RegisterRpc(this, "CreateHitParticles");
 }
Beispiel #25
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_ActivePanelId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
	}
Beispiel #26
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
		m_fHeadEulerX = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
    }
 // Member Methods
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_AtmosphereConditioningActive = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false);
     m_AtmosphereCapacitySupport    = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f);
 }
Beispiel #28
0
 // Member Delegates & Events
 
 
 // Member Properties
 
 
 // Member Functions
 
 
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     m_bRepairState = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync);
 }
Beispiel #29
0
// Member Methods


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_fQuantity = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 300.0f);
	}
Beispiel #30
0
// Member Methods


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_bBlocked = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
	}
Beispiel #31
0
// Member Delegates & Events


// Member Properties


// Member Methods


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		_cRegistrar.RegisterRpc(this, "StartMuzzleFlash");
	}
Beispiel #32
0
// Member Delegates & Events


// Member Properties


// Member Functions


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_bTorchLit    = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, true);
        m_bTorchColour = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync, 0);
    }
Beispiel #33
0
// Member Types


// Member Delegates & Events


// Member Properties


// Member Functions
    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
    }
Beispiel #34
0
// Member Methods

	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
		m_DoorState = _cRegistrar.CreateNetworkVar<EDoorState>(OnNetworkVarSync, EDoorState.INVALID);
	}
Beispiel #35
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_CurrentToolType = _cRegistrar.CreateNetworkVar<CToolInterface.EType>(OnNetworkVarSync, CToolInterface.EType.INVALID);
	}
Beispiel #36
0
// Member Functions

    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_PowerConsumption = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync, 0.0f);
        m_PowerActive      = _cRegistrar.CreateNetworkVar <bool>(OnNetworkVarSync, false);
    }
Beispiel #37
0
// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        _cRegistrar.RegisterRpc(this, "SetShipNetworkViewId");
    }
Beispiel #38
0
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _Registrar)
	{
		m_DUIViewId = _Registrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
	}
Beispiel #39
0
// Member Functions


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_cOwnerActorViewId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
	}
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_AtmosphereConditioningActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
		m_AtmosphereCapacitySupport = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
	}
Beispiel #41
0
// Member Methods

    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_DoorState = _cRegistrar.CreateNetworkVar <EDoorState>(OnNetworkVarSync, EDoorState.INVALID);
    }
Beispiel #42
0
// Member Methods
    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_bIsFunctional = _cRegistrar.CreateNetworkVar(OnNetworkVarSync, true);
    }
Beispiel #43
0
// Member Functions


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


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
        m_fRotationY = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
		m_fGravity = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, -9.81f);
		m_fMovementSpeed = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 6.5f);
		m_fSprintSpeed = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 8.0f);
		m_fJumpSpeed = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 2.0f);
		m_bStates = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync, 0);
	}
Beispiel #45
0
// Member Methods


	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_cTargetAsteroidViewId = _cRegistrar.CreateNetworkVar<CNetworkViewId>(OnNetworkVarSync, null);
		m_bFractureLaserVisible = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
		m_bExtractorBeamVisible = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
	}
Beispiel #46
0
    // Member Delegates & Events


    // Member Properties


    // Member Functions


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_bRepairState = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync);
    }
Beispiel #47
0
// Member Methods
    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_IsActive = _cRegistrar.CreateNetworkVar(OnNetworkVarSync, false);
    }
Beispiel #48
0
// Member Functions

	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_fObjectSize = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
		m_fTotalNanites = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 1000.0f);
		m_bIsParticleEmtEnabled = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
	}
Beispiel #49
0
 public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
 {
     _cRegistrar.RegisterRpc(this, "ReceivePlayerMessage");
 }
Beispiel #50
0
// Member Functions

    // public:


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        _cRegistrar.RegisterRpc(this, "CreateLocalObject");
        _cRegistrar.RegisterRpc(this, "DestroyLocalObject");
    }
Beispiel #51
0
// Member Delegates & Events


// Member Properties


// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        _cRegistrar.RegisterRpc(this, "StartMuzzleFlash");
    }
Beispiel #52
0
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_Position = _cRegistrar.CreateNetworkVar<Vector3>(OnNetworkVarSync, Vector3.zero);
		m_EulerAngles = _cRegistrar.CreateNetworkVar<Vector3>(OnNetworkVarSync, Vector3.zero);
	}
Beispiel #53
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);
	}
Beispiel #54
0
// Member Functions


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_ulOwnerPlayerId = _cRegistrar.CreateNetworkVar<ulong>(OnNetworkVarSync, 0);
    }
Beispiel #55
0
// Member Delegates & Events


// Member Properties


// Member Methods


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_bAmmo = _cRegistrar.CreateNetworkVar <byte>(OnNetworkVarSync, m_bAmmoCapacity);

        _cRegistrar.RegisterRpc(this, "ExecuteShootEffect");
    }
	// Member Methods
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
		m_AtmosphereGenerationActive = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, false);
		m_AtmosphereGenerationRate = _cRegistrar.CreateNetworkVar<float>(OnNetworkVarSync, 0.0f);
	}
Beispiel #57
0
	// Member Methods

	// Use this for initialization
	public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
	{
       
	}
Beispiel #58
0
// 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_fTriggerRadius        = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync);
     m_fCurrentGravityOutput = _cRegistrar.CreateNetworkVar <float>(OnNetworkVarSync);
 }
Beispiel #60
0
// Member Delegates & Events


// Member Properties


// Member Functions


    public override void InstanceNetworkVars(CNetworkViewRegistrar _cRegistrar)
    {
        m_bTorchLit = _cRegistrar.CreateNetworkVar<bool>(OnNetworkVarSync, true);
		m_bTorchColour = _cRegistrar.CreateNetworkVar<byte>(OnNetworkVarSync, 0);
    }