void iPhysicsController::LoadFromSaveData(iSaveData *apSaveData)
{
    kSaveData_LoadFromBegin(iPhysicsController);

    kSaveData_LoadFrom(msName);

    kSaveData_LoadFrom(mfA);
    kSaveData_LoadFrom(mfB);
    kSaveData_LoadFrom(mfC);
    kSaveData_LoadFrom(mfDestValue);
    kSaveData_LoadFrom(mfMaxOutput);

    kSaveData_LoadFrom(mbMulMassWithOutput);

    mType = (ePhysicsControllerType)pData->mType;
    mInputType = (ePhysicsControllerInput)pData->mInputType;
    mInputAxis = (ePhysicsControllerAxis)pData->mInputAxis;
    mOutputType = (ePhysicsControllerOutput)pData->mOutputType;
    mOutputAxis = (ePhysicsControllerAxis)pData->mOutputAxis;
    mEndType = (ePhysicsControllerEnd)pData->mEndType;

    kSaveData_LoadFrom(msNextController);

    kSaveData_LoadFrom(mbActive);
    kSaveData_LoadFrom(mbPaused);
}
Esempio n. 2
0
	void iPhysicsJointHinge::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(iPhysicsJointHinge);

		kSaveData_LoadFrom(mfMaxAngle);
		kSaveData_LoadFrom(mfMinAngle);
	}
Esempio n. 3
0
	void iRenderable::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(iRenderable);

		kSaveData_LoadFrom(mbStatic);
		kSaveData_LoadFrom(mbRendered);
		kSaveData_LoadFrom(mfZ);
	}
Esempio n. 4
0
	void cLight3DSpot::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(cLight3DSpot);

		kSaveData_LoadFrom(mfFOV);
		kSaveData_LoadFrom(mfAspect);
		kSaveData_LoadFrom(mfNearClipPlane);
	}
Esempio n. 5
0
	void iPhysicsJointBall::LoadFromSaveData(iSaveData *a_pSaveData)
	{
		kSaveData_LoadFromBegin(iPhysicsJointBall);

		kSaveData_LoadFrom(m_fMaxConeAngle);
		kSaveData_LoadFrom(m_fMaxTwistAngle);
		kSaveData_LoadFrom(m_vConePin);
	}
Esempio n. 6
0
	void iPhysicsJointSlider::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(iPhysicsJointSlider);

		kSaveData_LoadFrom(mfMaxDistance);
		kSaveData_LoadFrom(mfMinDistance);
		kSaveData_LoadFrom(mvPin);
	}
Esempio n. 7
0
void iEntity::LoadFromSaveData(iSaveData *apSaveData)
{
    kSaveData_LoadFromBegin(iEntity);

    kSaveData_LoadFrom(mbIsActive);
    kSaveData_LoadFrom(mbIsVisible);
    kSaveData_LoadFrom(msName);
}
Esempio n. 8
0
	void cNode3D::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(cNode3D);

		kSaveData_LoadFrom(msName);
		kSaveData_LoadFrom(msSource);
		kSaveData_LoadFrom(mbAutoDeleteChildren);
		kSaveData_LoadFrom(m_mtxLocalTransform);
	}
Esempio n. 9
0
	void iEntity3D::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(iEntity3D);

		//Log("-------- Loading %s --------------\n",msName.c_str());

		SetMatrix(pData->m_mtxLocalTransform);
		
		//Not sure of this is needed:
		kSaveData_LoadFrom(mBoundingVolume);
		
		kSaveData_LoadFrom(msSourceFile);
	}
Esempio n. 10
0
void cBillboard::LoadFromSaveData(iSaveData *apSaveData)
{
    kSaveData_LoadFromBegin(cBillboard);

    mType = (eBillboardType) pData->mType;
    kSaveData_LoadFrom(mvSize);
    kSaveData_LoadFrom(mvAxis);
    kSaveData_LoadFrom(mfForwardOffset);
    kSaveData_LoadFrom(mColor);
    kSaveData_LoadFrom(mfHaloAlpha);

    SetIsHalo(pData->mbIsHalo);
    SetHaloSourceSize(pData->mvHaloSourceSize);
    SetHaloSourceIsParent(pData->mbHaloSourceIsParent);
}
Esempio n. 11
0
	void iLight3D::LoadFromSaveData(iSaveData *apSaveData)
	{
		kSaveData_LoadFromBegin(iLight3D);

		//////////////////////////
		// Data
		if(pData->msFalloffMap != ""){
			iTexture *pTex = mpTextureManager->Create1D(pData->msFalloffMap,false);
			if(pTex) SetFalloffMap(pTex);
		}

		//////////////////////////
		// Variables
		kSaveData_LoadFrom(mDiffuseColor);
		kSaveData_LoadFrom(mSpecularColor);
		kSaveData_LoadFrom(mfIntensity);
		kSaveData_LoadFrom(mfFarAttenuation);
		kSaveData_LoadFrom(mfNearAttenuation);
		kSaveData_LoadFrom(mfSourceRadius);

		kSaveData_LoadFrom(mbCastShadows);
		kSaveData_LoadFrom(mbAffectMaterial);

		kSaveData_LoadFrom(mColAdd);
		kSaveData_LoadFrom(mfRadiusAdd);
		kSaveData_LoadFrom(mDestCol);
		kSaveData_LoadFrom(mfDestRadius);
		kSaveData_LoadFrom(mfFadeTime);

		kSaveData_LoadFrom(mbFlickering);
		kSaveData_LoadFrom(msFlickerOffSound);
		kSaveData_LoadFrom(msFlickerOnSound);
		kSaveData_LoadFrom(msFlickerOffPS);
		kSaveData_LoadFrom(msFlickerOnPS);
		kSaveData_LoadFrom(mfFlickerOnMinLength);
		kSaveData_LoadFrom(mfFlickerOffMinLength);
		kSaveData_LoadFrom(mfFlickerOnMaxLength);
		kSaveData_LoadFrom(mfFlickerOffMaxLength);
		kSaveData_LoadFrom(mFlickerOffColor);
		kSaveData_LoadFrom(mfFlickerOffRadius);
		kSaveData_LoadFrom(mbFlickerFade);
		kSaveData_LoadFrom(mfFlickerOnFadeLength);
		kSaveData_LoadFrom(mfFlickerOffFadeLength);

		kSaveData_LoadFrom(mFlickerOnColor);
		kSaveData_LoadFrom(mfFlickerOnRadius);

		kSaveData_LoadFrom(mbFlickerOn);
		kSaveData_LoadFrom(mfFlickerTime);
		kSaveData_LoadFrom(mfFlickerStateLength);
	}