示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RenderableWorldModel"/> class.
        /// </summary>
        /// <param name="inModel">The model to render.</param>
        /// <param name="gameContext">The game context.</param>
        public RenderableWorldModel(WMO inModel, WarcraftGameContext gameContext)
        {
            this.Model       = inModel;
            this.GameContext = gameContext;

            this.ActorTransform = new Transform();

            this.IsInitialized = false;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RenderableGameModel"/> class.
        /// </summary>
        /// <param name="inModel">The model to render.</param>
        /// <param name="gameContext">The game context.</param>
        public RenderableGameModel(MDX inModel, WarcraftGameContext gameContext)
        {
            this.Model       = inModel;
            this.GameContext = gameContext;

            this.ActorTransform = new Transform();

            // Set a default display info for this model
            var displayInfo = GetSkinVariations().FirstOrDefault();

            if (displayInfo != null)
            {
                this.CurrentDisplayInfo = displayInfo;
            }

            this.IsInitialized = false;
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RenderableGameModel"/> class.
 /// </summary>
 /// <param name="inModel">The model to render.</param>
 /// <param name="gameContext">The game context.</param>
 /// <param name="modelPath">The full path of the model in the package group.</param>
 public RenderableGameModel(MDX inModel, WarcraftGameContext gameContext, string modelPath)
     : this(inModel, gameContext)
 {
     this.ModelPath = modelPath;
 }