/// public メソッド ///--------------------------------------------------------------------------- /// モデルの登録 public void SetMdlHandle(Data.EffTypeId effTypeId) { objEff.SetMdlHandle(effTypeId); objEff.SetScale(1.0f); this.effTypeId = effTypeId; }
/// public メソッド ///--------------------------------------------------------------------------- /// モデルの登録 public void SetMdlHandle(Data.EffTypeId effTypeId) { objEff.SetMdlHandle(effTypeId); objEff.SetScale(0.1f); this.effTypeId = effTypeId; billFlg = false; billYFlg = false; /// 敵死亡エフェクトは大きめに表示 if (effTypeId == Data.EffTypeId.Eff05) { objEff.SetScale(0.17f); } /// Y軸ビルボードで描画 if (effTypeId == Data.EffTypeId.Eff03 || effTypeId == Data.EffTypeId.Eff04 || effTypeId == Data.EffTypeId.Eff05 || effTypeId == Data.EffTypeId.Eff11) { billYFlg = true; } /// ビルボードで描画 else if (effTypeId == Data.EffTypeId.Eff08 || effTypeId == Data.EffTypeId.Eff09 || effTypeId == Data.EffTypeId.Eff12 || effTypeId == Data.EffTypeId.Eff13) { billFlg = true; } }
/// 終了 public override void End() { effTypeId = 0; DoEnd(); Enable = false; }
/// 追従エフェクトの登録 public bool EntryEffect(Data.EffTypeId effId, GameObjProduct trgObj) { ActorEffAttach actorEff = new ActorEffAttach(); actorEff.Init(); actorEff.Start(); actorEff.SetMdlHandle(effId); actorEff.SetTrgObj(trgObj); actorEffList.Add(actorEff); return(true); }
/// 通常エフェクトの登録 public bool EntryEffect(Data.EffTypeId effId, Vector3 pos) { ActorEffNormal actorEff = new ActorEffNormal(); actorEff.Init(); actorEff.Start(); actorEff.SetMdlHandle(effId); Matrix4 mtx = Matrix4.RotationY(0); Common.MatrixUtil.SetTranslate(ref mtx, pos); actorEff.SetPlace(mtx); actorEffList.Add(actorEff); return(true); }
/// public メソッド ///--------------------------------------------------------------------------- /// モデルのセット public void SetMdlHandle(Data.EffTypeId effTypeId) { int effTypeIdx = (int)effTypeId; int mdlResId = (int)Data.ModelResId.Eff00 + effTypeIdx; int texResId = (int)Data.ModelTexResId.EffA; int shaResId = (int)Data.ModelShaderReslId.Normal; switch (effTypeId) { case Data.EffTypeId.Eff00: texResId = (int)Data.ModelTexResId.EffA; break; case Data.EffTypeId.Eff01: texResId = (int)Data.ModelTexResId.EffB; break; case Data.EffTypeId.Eff02: texResId = (int)Data.ModelTexResId.EffB; break; case Data.EffTypeId.Eff03: texResId = (int)Data.ModelTexResId.EffC; break; case Data.EffTypeId.Eff04: texResId = (int)Data.ModelTexResId.EffC; break; case Data.EffTypeId.Eff05: texResId = (int)Data.ModelTexResId.EffD; break; case Data.EffTypeId.Eff06: texResId = (int)Data.ModelTexResId.EffE; break; case Data.EffTypeId.Eff07: texResId = (int)Data.ModelTexResId.EffF; break; case Data.EffTypeId.Eff08: texResId = (int)Data.ModelTexResId.EffE; break; case Data.EffTypeId.Eff09: texResId = (int)Data.ModelTexResId.EffE; break; case Data.EffTypeId.Eff10: texResId = (int)Data.ModelTexResId.EffG; break; case Data.EffTypeId.Eff11: texResId = (int)Data.ModelTexResId.EffH; break; case Data.EffTypeId.Eff12: texResId = (int)Data.ModelTexResId.EffI; break; case Data.EffTypeId.Eff13: texResId = (int)Data.ModelTexResId.EffI; break; case Data.EffTypeId.Eff14: texResId = (int)Data.ModelTexResId.EffI; break; } Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance(); useMdlHdl.Start(resMgr.GetModel(mdlResId), resMgr.GetTextureContainer(texResId), resMgr.GetShaderContainer(shaResId)); useMdlHdl.SetPlayAnim(0, false); }
/// 開始 public override bool Start() { effTypeId = 0; Enable = DoStart(); return( Enable ); }
/// 開始 public override bool Start() { effTypeId = 0; Enable = DoStart(); return(Enable); }