示例#1
0
    public void Copy(EA_EffectBaseInfo ib)
    {
        m_GDEffectId       = ib.m_GDEffectId;
        m_AttachObjectId   = ib.m_AttachObjectId;
        m_AttachBoneName   = ib.m_AttachBoneName;
        m_eLifeType        = ib.m_eLifeType;
        m_eAttachType      = ib.m_eAttachType;
        m_eEffectState     = ib.m_eEffectState;
        m_fStartTime       = ib.m_fStartTime;
        m_fLifeTime        = ib.m_fLifeTime;
        m_EffectTableIndex = ib.m_EffectTableIndex;

        m_EmitPos[0] = ib.m_EmitPos[0];
        m_EmitPos[1] = ib.m_EmitPos[1];
        m_EmitPos[2] = ib.m_EmitPos[2];

        m_EmitAngle[0] = ib.m_EmitAngle[0];
        m_EmitAngle[1] = ib.m_EmitAngle[1];
        m_EmitAngle[2] = ib.m_EmitAngle[2];

        m_EffectResourceType = ib.m_EffectResourceType;
        m_bForceAxis         = ib.m_bForceAxis;
        m_fForceYpos         = ib.m_fForceYpos;
        m_strObjectId        = ib.m_strObjectId;
    }
示例#2
0
    public float[] m_EmitAngle = new float[] { CObjGlobal.fInvalidAngle, CObjGlobal.fInvalidAngle, CObjGlobal.fInvalidAngle };  //	If it's not 0,0,0, look in that direction

    public EA_EffectBaseInfo()
    {
        m_GDEffectId         = CObjGlobal.InvalidEffectID;
        m_AttachObjectId     = CObjGlobal.InvalidObjID;
        m_AttachBoneName     = "";
        m_eLifeType          = eEffectLifeType.eLoop;
        m_eAttachType        = eEffectAttachType.eWorld;
        m_eEffectState       = eEffectState.ES_UnLoad;
        m_fStartTime         = 0;
        m_fLifeTime          = 0;
        m_EffectTableIndex   = "";
        m_EffectResourceType = eEffectResourceType.eParticle;
        m_bForceAxis         = false;
        m_fForceYpos         = 0.0f;
        m_strObjectId        = "";
    }