⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fxsunlight.cc

📁 五行MMORPG引擎系统V1.0
💻 CC
📖 第 1 页 / 共 5 页
字号:
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMaxRotation(F32 Rotation)
{
   // Set Attribute.
   mMaxRotation = Rotation;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMinSize(F32 Size)
{
   // Set Attribute.
   mMinSize = Size;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMaxSize(F32 Size)
{
   // Set Attribute.
   mMaxSize = Size;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMinAzimuth(F32 Azimuth)
{
   // Set Attribute.
   mMinAzimuth = Azimuth;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMaxAzimuth(F32 Azimuth)
{
   // Set Attribute.
   mMaxAzimuth = Azimuth;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMinElevation(F32 Elevation)
{
   // Set Attribute.
   mMinElevation = Elevation;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setMaxElevation(F32 Elevation)
{
   // Set Attribute.
   mMaxElevation = Elevation;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

// ********************************************************************************
// Animation Keys.
// ********************************************************************************

void fxSunLight::setRedKeys(const char* Keys)
{
   // Set Attribute.
   mRedKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setGreenKeys(const char* Keys)
{
   // Set Attribute.
   mGreenKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setBlueKeys(const char* Keys)
{
   // Set Attribute.
   mBlueKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setBrightnessKeys(const char* Keys)
{
   // Set Attribute.
   mBrightnessKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setRotationKeys(const char* Keys)
{
   // Set Attribute.
   mRotationKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setSizeKeys(const char* Keys)
{
   // Set Attribute.
   mSizeKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setAzimuthKeys(const char* Keys)
{
   // Set Attribute.
   mAzimuthKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setElevationKeys(const char* Keys)
{
   // Set Attribute.
   mElevationKeys = StringTable->insert(Keys);
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

// ********************************************************************************
// Animation Times.
// ********************************************************************************

void fxSunLight::setColourTime(F32 Time)
{
   // Check for error.
   if (mColourTime <= 0) return;
   // Set Attribute.
   mColourTime = Time;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setBrightnessTime(F32 Time)
{
   // Check for error.
   if (mBrightnessTime <= 0) return;
   // Set Attribute.
   mBrightnessTime = Time;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setRotationTime(F32 Time)
{
   // Check for error.
   if (mRotationTime <= 0) return;
   // Set Attribute.
   mRotationTime = Time;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setSizeTime(F32 Time)
{
   // Check for error.
   if (mSizeTime <= 0) return;
   // Set Attribute.
   mSizeTime = Time;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setAzimuthTime(F32 Time)
{
   // Check for error.
   if (mAzimuthTime <= 0) return;
   // Set Attribute.
   mAzimuthTime = Time;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

void fxSunLight::setElevationTime(F32 Time)
{
   // Check for error.
   if (mElevationTime <= 0) return;
   // Set Attribute.
   mElevationTime = Time;
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}


// ********************************************************************************
// Misc.
// ********************************************************************************

void fxSunLight::reset(void)
{
   // Reset Animation.
   ResetAnimation();
   // Set Config Change Mask.
   if (isServerObject()) setMaskBits(fxSunLightConfigChangeMask);
}

//------------------------------------------------------------------------------

// ********************************************************************************
// Debugging.
// ********************************************************************************

ConsoleMethod(fxSunLight, setEnable, void, 3, 3, "(status)")
{
   object->setEnable(dAtob(argv[2]));
}

// ********************************************************************************
// Media.
// ********************************************************************************

ConsoleMethod(fxSunLight, setFlareBitmaps, void, 4, 4, "(local, remote)")
{
   object->setFlareBitmaps(argv[2], argv[3]);
}

// ********************************************************************************
// Sun Orbit.
// ********************************************************************************

ConsoleMethod(fxSunLight, setSunAzimuth, void, 3, 3, "(azimuth)")
{
   object->setSunAzimuth(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setSunElevation, void, 3, 3, "(elevation)")
{
   object->setSunElevation(dAtof(argv[2]));
}

// ********************************************************************************
// Flare.
// ********************************************************************************

ConsoleMethod(fxSunLight, setFlareTP, void, 3, 3, "(status)")
{
   object->setFlareTP(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setFlareColour, void, 5, 5, "(r,g,b)")
{
   object->setFlareColour(ColorF(dAtof(argv[2]),dAtof(argv[3]),dAtof(argv[4])));
}

ConsoleMethod(fxSunLight, setFlareBrightness, void, 3, 3, "(brightness)")
{
   object->setFlareBrightness(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setFlareSize, void, 3, 3, "(size)")
{
   object->setFlareSize(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setFadeTime, void, 3, 3, "(time)")
{
   object->setFadeTime(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setBlendMode, void, 3, 3, "(mode)")
{
   object->setBlendMode(dAtoi(argv[2]));
}

// ********************************************************************************
// Animation Options.
// ********************************************************************************

ConsoleMethod(fxSunLight, setUseColour, void, 3, 3, "(status)")
{
   object->setUseColour(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setUseBrightness, void, 3, 3, "(status)")
{
   object->setUseBrightness(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setUseRotation, void, 3, 3, "(status)")
{
   object->setUseRotation(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setUseSize, void, 3, 3, "(status)")
{
   object->setUseSize(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setUseAzimuth, void, 3, 3, "(status)")
{
   object->setUseAzimuth(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setUseElevation, void, 3, 3, "(status)")
{
   object->setUseElevation(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLerpColour, void, 3, 3, "(status)")
{
   object->setLerpColour(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLerpBrightness, void, 3, 3, "(status)")
{
   object->setLerpBrightness(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLerpRotation, void, 3, 3, "(status)")
{
   object->setLerpRotation(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLerpSize, void, 3, 3, "(status)")
{
   object->setLerpSize(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLerpAzimuth, void, 3, 3, "(status)")
{
   object->setLerpAzimuth(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLerpElevation, void, 3, 3, "(status)")
{
   object->setLerpElevation(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setLinkFlareSize, void, 3, 3, "(status)")
{
   object->setLinkFlareSize(dAtob(argv[2]));
}

ConsoleMethod(fxSunLight, setSingleColourKeys, void, 3, 3, "(status)")
{
   object->setSingleColourKeys(dAtob(argv[2]));
}

// ********************************************************************************
// Animation Extents.
// ********************************************************************************

ConsoleMethod(fxSunLight, setMinColour, void, 5, 5, "(r,g,b)")
{
   object->setMinColour(ColorF(dAtof(argv[2]),dAtof(argv[3]),dAtof(argv[4])));
}

ConsoleMethod(fxSunLight, setMaxColour, void, 5, 5, "(r,g,b)")
{
   object->setMaxColour(ColorF(dAtof(argv[2]),dAtof(argv[3]),dAtof(argv[4])));
}

ConsoleMethod(fxSunLight, setMinBrightness, void, 3, 3, "(brightness)")
{
   object->setMinBrightness(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMaxBrightness, void, 3, 3, "(brightness)")
{
   object->setMaxBrightness(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMinRotation, void, 3, 3, "(rotation)")
{
   object->setMinRotation(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMaxRotation, void, 3, 3, "(rotation)")
{
   object->setMaxRotation(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMinSize, void, 3, 3, "(size)")
{
   object->setMinSize(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMaxSize, void, 3, 3, "(size)")
{
   object->setMaxSize(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMinAzimuth, void, 3, 3, "(azimuth)")
{
   object->setMinAzimuth(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMaxAzimuth, void, 3, 3, "(azimuth)")
{
   object->setMaxAzimuth(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMinElevation, void, 3, 3, "(elevation)")
{
   object->setMinElevation(dAtof(argv[2]));
}

ConsoleMethod(fxSunLight, setMaxElevation, void, 3, 3, "(elevation)")
{
   object->setMaxElevation(dAtof(argv[2]));
}

// ********************************************************************************
// Animation Keys.
// ********************************************************************************

ConsoleMethod(fxSunLight, setRedKeys, void, 3, 3, "(keys)")
{
   object->setRedKeys(argv[2]);
}

ConsoleMethod(fxSunLight, setGreenKeys, void, 3, 3, "(keys)")
{
   object->setGreenKeys(argv[2]);
}

ConsoleMethod(fxSunLight, setBlueKeys, void, 3, 3, "(keys)")
{
   object->setBlueKeys(argv[2]);
}

ConsoleMethod(fxSunLight, setBrightnessKeys, void, 3, 3, "(keys)")
{
   object->setBrightnessKeys(argv[2]);
}

ConsoleMethod(fxSunLight, setRotationKeys, void, 3, 3, "(keys)")
{
   object->setRotationKeys(argv[2]);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -