Ejemplo n.º 1
0
 public SharedQuizExercise(QuizLayer layer, int uid, List<int> bullets, QuizMode mode, string exerciseName,
     string userName)
     : base(layer, uid, exerciseName, userName)
 {
     Bullets = bullets;
     Mode = mode;
 }
Ejemplo n.º 2
0
        public override int AddLayer(string name = "", bool isRenameable = true, bool isHideable = true,
            bool isDeletable = true, bool isShareable = true, bool isInkable = true)
        {
            if (name == "")
                name = GetFallbackName();
            var layer = new QuizLayer(this, name, isRenameable, isHideable, isDeletable, isShareable, isInkable);
            Layers.Add(layer);

            foreach (var bullet in (Layers[0] as QuizLayer).Bullets)
                layer.AddBullet(bullet.Offset, bullet.Position, Mode);

            return layer.UID;
        }