Example #1
0
        public CasterTemplate(string filePath,
                              CasterPoint caster1, CasterPoint caster2)
            : base(filePath)
        {
            if (caster1 == null)
            {
                throw new Exception("Caster Template: Caster 1 must have a point on template");
            }
            if (caster2 == null)
            {
                throw new Exception("Caster Template: Caster 2 must have a point on template");
            }

            this.caster1Point = caster1;
            this.caster2Point = caster2;
        }
Example #2
0
        public CasterTemplate(string filePath,
                              bool caster1Checked, bool caster2Checked,
                              CasterPoint caster1, CasterPoint caster2,
                              TwitterPoint caster1Twitter,
                              TwitterPoint caster2Twitter)
            : base(filePath)
        {
            if (caster1Checked && caster1 == null)
            {
                throw new Exception("Caster Template: Caster 1 must have a point on template");
            }
            if (caster2Checked && caster2 == null)
            {
                throw new Exception("Caster Template: Caster 2 must have a point on template");
            }

            this.caster1Point        = caster1;
            this.caster2Point        = caster2;
            this.caster1TwitterPoint = caster1Twitter;
            this.caster2TwitterPoint = caster2Twitter;
        }