本文整理汇总了C++中CServerDE::GetPropColor方法的典型用法代码示例。如果您正苦于以下问题:C++ CServerDE::GetPropColor方法的具体用法?C++ CServerDE::GetPropColor怎么用?C++ CServerDE::GetPropColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CServerDE
的用法示例。
在下文中一共展示了CServerDE::GetPropColor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReadProp
void CClientParticleStreamSFX::ReadProp(ObjectCreateStruct *pData)
{
CServerDE* pServerDE = GetServerDE();
if(!pServerDE || !pData) return;
char szString[MAX_CS_FILENAME_LEN];
long tempLong;
DBOOL temp;
pServerDE->GetPropReal("SystemRadius", &fRadius);
pServerDE->GetPropReal("PositionRadius", &fPosRadius);
pServerDE->GetPropReal("MinVelocity", &fMinVel);
pServerDE->GetPropReal("MaxVelocity", &fMaxVel);
pServerDE->GetPropLongInt("NumParticles", &tempLong);
nNumParticles = (DDWORD)tempLong;
pServerDE->GetPropReal("VelSpread", &fSpread);
pServerDE->GetPropColor("MinColor", &vColor1);
pServerDE->GetPropColor("MaxColor", &vColor2);
pServerDE->GetPropReal("SystemAlpha", &fAlpha);
pServerDE->GetPropReal("MinLifetime", &fMinLife);
pServerDE->GetPropReal("MaxLifetime", &fMaxLife);
pServerDE->GetPropReal("RampTime", &fRampTime);
pServerDE->GetPropReal("AddDelay", &fDelay);
pServerDE->GetPropReal("Gravity", &fGravity);
bRampFlags = 0;
pServerDE->GetPropBool("RampAmount", &temp);
if(temp) bRampFlags |= 0x01;
pServerDE->GetPropBool("RampOffset", &temp);
if(temp) bRampFlags |= 0x02;
pServerDE->GetPropBool("RampVelocity", &temp);
if(temp) bRampFlags |= 0x04;
pServerDE->GetPropBool("RampLifetime", &temp);
if(temp) bRampFlags |= 0x08;
pServerDE->GetPropBool("InitiallyOn", &bOn);
pServerDE->GetPropString("ParticleFile", szString, MAX_CS_FILENAME_LEN);
hstrTexture = pServerDE->CreateString(szString);
pServerDE->GetPropReal("SoundRadius", &fSoundRadius);
pServerDE->GetPropString("RampUpSound", szString, MAX_CS_FILENAME_LEN);
hstrSound1 = pServerDE->CreateString(szString);
pServerDE->GetPropString("LoopSound", szString, MAX_CS_FILENAME_LEN);
hstrSound2 = pServerDE->CreateString(szString);
pServerDE->GetPropString("RampDownSound", szString, MAX_CS_FILENAME_LEN);
hstrSound3 = pServerDE->CreateString(szString);
return;
}
示例2: ReadProp
void CClientWarpGateSFX::ReadProp(ObjectCreateStruct *pData)
{
CServerDE* pServerDE = GetServerDE();
if(!pServerDE || !pData) return;
char szString[MAX_CS_FILENAME_LEN];
long tempLong;
if (wSpr.hstrSprite) // [blg]
{
g_pServerDE->FreeString(wSpr.hstrSprite);
}
if (wPS1.hstrParticle) // [blg]
{
g_pServerDE->FreeString(wPS1.hstrParticle);
}
if (wPS2.hstrParticle) // [blg]
{
g_pServerDE->FreeString(wPS2.hstrParticle);
}
pServerDE->GetPropReal("RampUpTime", &fRampUpTime);
pServerDE->GetPropReal("RampDownTime", &fRampDownTime);
pServerDE->GetPropBool("InitiallyOn", &bOn);
pServerDE->GetPropReal("SpriteMinScale", &wSpr.fMinScale);
pServerDE->GetPropReal("SpriteMaxScale", &wSpr.fMaxScale);
pServerDE->GetPropReal("SpriteAlpha", &wSpr.fAlpha);
pServerDE->GetPropLongInt("SpriteRampUpType", &tempLong);
wSpr.nRampUpType = (DDWORD)tempLong;
pServerDE->GetPropLongInt("SpriteRampDownType", &tempLong);
wSpr.nRampDownType = (DDWORD)tempLong;
pServerDE->GetPropBool("SpriteAlign", &wSpr.bAlign);
pServerDE->GetPropString("SpriteFile", szString, MAX_CS_FILENAME_LEN);
wSpr.hstrSprite = pServerDE->CreateString(szString);
pServerDE->GetPropReal("PS1SystemRadius", &wPS1.fSystemRadius);
pServerDE->GetPropReal("PS1PositionRadius", &wPS1.fPosRadius);
pServerDE->GetPropVector("PS1Offset", &wPS1.vOffset);
pServerDE->GetPropVector("PS1Rotations", &wPS1.vRotations);
pServerDE->GetPropReal("PS1MinVelocity", &wPS1.fMinVelocity);
pServerDE->GetPropReal("PS1MaxVelocity", &wPS1.fMaxVelocity);
pServerDE->GetPropLongInt("PS1NumParticles", &tempLong);
wPS1.nNumParticles = (DDWORD)tempLong;
pServerDE->GetPropLongInt("PS1EmitType", &tempLong);
wPS1.nEmitType = (DDWORD)tempLong;
pServerDE->GetPropColor("PS1MinColor", &wPS1.vMinColor);
pServerDE->GetPropColor("PS1MaxColor", &wPS1.vMaxColor);
pServerDE->GetPropReal("PS1SystemAlpha", &wPS1.fAlpha);
pServerDE->GetPropReal("PS1MinLifetime", &wPS1.fMinLifetime);
pServerDE->GetPropReal("PS1MaxLifetime", &wPS1.fMaxLifetime);
pServerDE->GetPropReal("PS1AddDelay", &wPS1.fAddDelay);
pServerDE->GetPropReal("PS1Gravity", &wPS1.fGravity);
pServerDE->GetPropLongInt("PS1RampUpType", &tempLong);
wPS1.nRampUpType = (DDWORD)tempLong;
pServerDE->GetPropLongInt("PS1RampDownType", &tempLong);
wPS1.nRampDownType = (DDWORD)tempLong;
pServerDE->GetPropBool("PS1Align", &wPS1.bAlign);
pServerDE->GetPropString("PS1ParticleFile", szString, MAX_CS_FILENAME_LEN);
wPS1.hstrParticle = pServerDE->CreateString(szString);
pServerDE->GetPropReal("PS2SystemRadius", &wPS2.fSystemRadius);
pServerDE->GetPropReal("PS2PositionRadius", &wPS2.fPosRadius);
pServerDE->GetPropVector("PS2Offset", &wPS2.vOffset);
pServerDE->GetPropVector("PS2Rotations", &wPS2.vRotations);
pServerDE->GetPropReal("PS2MinVelocity", &wPS2.fMinVelocity);
pServerDE->GetPropReal("PS2MaxVelocity", &wPS2.fMaxVelocity);
pServerDE->GetPropLongInt("PS2NumParticles", &tempLong);
wPS2.nNumParticles = (DDWORD)tempLong;
pServerDE->GetPropLongInt("PS2EmitType", &tempLong);
wPS2.nEmitType = (DDWORD)tempLong;
pServerDE->GetPropColor("PS2MinColor", &wPS2.vMinColor);
pServerDE->GetPropColor("PS2MaxColor", &wPS2.vMaxColor);
pServerDE->GetPropReal("PS2SystemAlpha", &wPS2.fAlpha);
pServerDE->GetPropReal("PS2MinLifetime", &wPS2.fMinLifetime);
pServerDE->GetPropReal("PS2MaxLifetime", &wPS2.fMaxLifetime);
pServerDE->GetPropReal("PS2AddDelay", &wPS2.fAddDelay);
pServerDE->GetPropReal("PS2Gravity", &wPS2.fGravity);
pServerDE->GetPropLongInt("PS2RampUpType", &tempLong);
wPS2.nRampUpType = (DDWORD)tempLong;
pServerDE->GetPropLongInt("PS2RampDownType", &tempLong);
wPS2.nRampDownType = (DDWORD)tempLong;
pServerDE->GetPropBool("PS2Align", &wPS2.bAlign);
pServerDE->GetPropString("PS2ParticleFile", szString, MAX_CS_FILENAME_LEN);
wPS2.hstrParticle = pServerDE->CreateString(szString);
pServerDE->GetPropReal("SoundRadius", &fSoundRadius);
pServerDE->GetPropString("RampUpSound", szString, MAX_CS_FILENAME_LEN);
hstrSound1 = pServerDE->CreateString(szString);
pServerDE->GetPropString("LoopSound", szString, MAX_CS_FILENAME_LEN);
hstrSound2 = pServerDE->CreateString(szString);
pServerDE->GetPropString("RampDownSound", szString, MAX_CS_FILENAME_LEN);
hstrSound3 = pServerDE->CreateString(szString);
return;
}