//----------------------------------------------------- ///根据初始化物体,并同步到渲染层 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); } }
public override void Release() { ReleaseCommandList(); m_eSpecialState = ENUM_SPECIAL_STATE.SPECIAL_STATE_INVALID; m_idOwner = MacroDefine.INVALID_ID; m_pSpecialObjData = null; base.Release(); }
public CObject_Special() { m_eSpecialState = ENUM_SPECIAL_STATE.SPECIAL_STATE_INVALID; m_idOwner = MacroDefine.INVALID_ID; m_pSpecialObjData = null; }
protected void SetSpecialState(ENUM_SPECIAL_STATE eState) { m_eSpecialState = eState; }