public Raypier(GameContainer container, GameContainer re, Bit parent) : base(container, false) { Ender = re; Parent = parent; }
/// <summary> /// @brief コンテナ生成関数 /// </summary> /// <returns></returns> public override GameContainer Create() { var g = new GameContainer(Player.Container); var raypierEnd = new GameContainer(); raypierEnd.Active = false; var raypier = new GameContainer(); var bit = new Bit(g, Player, Index, raypier); g.AddComponent(bit); var r = new Raypier(raypier, raypierEnd, bit); r.Active = false; raypier.AddComponent(r); g.AddComponent(new MeshRenderer(g, "bit.x")); g.Position.LocalRotation *= new Quaternion(Vector3.AxisX, -(float)Math.PI * 0.5f); g.Position.LocalScale *= 3.0f; raypierEnd.AddComponent(new RaypierRenderFinisher(raypierEnd)); return g; }
/// <summary> /// @brief コンストラクタ /// </summary> /// <param name="parent">@param 親コンテナ</param> /// <param name="angle">@param 進行方向</param> public RaipierTrailFactory(GameContainer parent, Bit bit, Action<GameContainer> option) : base(option) { Parent = parent; Bit = bit; }
public BitFactory(Player player, Bit.BitIndex index, Action<GameContainer> option = null) : base(option) { Player = player; Index = index; }