Пример #1
0
    //-----------------------------------------------------
    ///根据初始化物体,并同步到渲染层
    public override void Initial(object pInit)
    {
        base.Initial(pInit);
        m_eSpecialState = ENUM_SPECIAL_STATE.SPECIAL_STATE_NORMAL;

        SObject_SpecialInit pSpecialInit = (SObject_SpecialInit)(pInit);

        if (pSpecialInit != null)
        {
            m_idOwner = pSpecialInit.m_idOwner;
            if (pSpecialInit.m_nDataID != MacroDefine.INVALID_ID)
            {
                m_pSpecialObjData = CDataBaseSystem.Instance.GetDataBase <_DBC_SPECIAL_OBJ_DATA>((int)DataBaseStruct.DBC_SPECIAL_OBJ_DATA).Search_Index_EQU(pSpecialInit.m_nDataID);
            }
            else
            {
                m_pSpecialObjData = null;
            }
        }
        else
        {
            m_idOwner         = MacroDefine.INVALID_ID;
            m_pSpecialObjData = null;
        }

        if (GetSpecialObjData() != null && GetSpecialObjData().m_lpszEffect_Normal != null && GetSpecialObjData().m_lpszEffect_Normal.Length > 0)
        {
            ChangEffect(GetSpecialObjData().m_lpszEffect_Normal, true);
        }
    }
Пример #2
0
    public override void Release()
    {
        ReleaseCommandList();
        m_eSpecialState   = ENUM_SPECIAL_STATE.SPECIAL_STATE_INVALID;
        m_idOwner         = MacroDefine.INVALID_ID;
        m_pSpecialObjData = null;

        base.Release();
    }
Пример #3
0
 public CObject_Special()
 {
     m_eSpecialState   = ENUM_SPECIAL_STATE.SPECIAL_STATE_INVALID;
     m_idOwner         = MacroDefine.INVALID_ID;
     m_pSpecialObjData = null;
 }
Пример #4
0
 protected void SetSpecialState(ENUM_SPECIAL_STATE eState)
 {
     m_eSpecialState = eState;
 }