/// <summary> /// Initialize a Surface3D object. /// </summary> /// <param name="game">The game.</param> /// <param name="actor">The parent actor.</param> /// <param name="effectFileName">The effect file name.</param> public Surface(XiGame game, Actor3D actor, string effectFileName) { XiHelper.ArgumentNullCheck(game); this.game = game; this.actor = actor; EffectFileName = effectFileName; }
/// <summary> /// Remove a actor from the scene. /// </summary> public bool RemoveActor(Actor3D actor) { XiHelper.ArgumentNullCheck(actor); return actorPSet.Remove(actor); }
/// <summary> /// Add an actor to the scene. /// </summary> public void AddActor(Actor3D actor) { XiHelper.ArgumentNullCheck(actor); actorPSet.Add(actor); }