Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CharacterViewModel" /> class.
        /// </summary>
        /// <param name="pos">The position.</param>
        /// <param name="id">The identifier.</param>
        /// <param name="emotion">The emotion.</param>
        /// <param name="action">The action.</param>
        /// <param name="color">The color.</param>
        public CharacterViewModel(VRPosition pos, int id, int emotion, int action, string color)
        {
            this.characterModel = new CharacterModel(pos, id, emotion, action, color);
            this.Model = this.characterModel;

            Log.Logger.GetInstance().Warning("New Char at: " + pos.X + ":" + pos.Y);
        }
Пример #2
0
 public void SetUp()
 {
     position1 = new VRPosition(42, 42, 42);
     character1 = new CharacterModel(position1, 0, 0, 0, "#000");
     character2 = new CharacterModel(position1, 0, 2, 5, "#000");
 }