public override void AddObjectVariablesToAssigner(ToWorkshop toWorkshop, IWorkshopTree reference, VarIndexAssigner assigner)
 {
     assigner.Add(Opposite, Element.Part("Opposite Team Of", reference));
     assigner.Add(Score, Element.Part("Team Score", reference));
     assigner.Add(OnDefense, Element.Part("Is Team On Defense", reference));
     assigner.Add(OnOffense, Element.Part("Is Team On Offense", reference));
 }
Example #2
0
        public override void AddObjectVariablesToAssigner(ToWorkshop toWorkshop, IWorkshopTree reference, VarIndexAssigner assigner)
        {
            var functionHandler = ArrayOfType.ArrayHandler.GetFunctionHandler();

            assigner.Add(_length, functionHandler.Length(reference));
            assigner.Add(_first, functionHandler.FirstOf(reference));
            assigner.Add(_last, functionHandler.LastOf(reference));
        }
        public override void AddObjectVariablesToAssigner(IWorkshopTree reference, VarIndexAssigner assigner)
        {
            assigner.Add(X, Element.Part <V_XOf>(reference));
            assigner.Add(Y, Element.Part <V_YOf>(reference));
            assigner.Add(Z, Element.Part <V_ZOf>(reference));

            assigner.Add(HorizontalAngle, Element.Part <V_HorizontalAngleFromDirection>(reference));
            assigner.Add(VerticalAngle, Element.Part <V_VerticalAngleFromDirection>(reference));
        }
Example #4
0
 /// <summary>
 /// Adds the class objects to the index assigner.
 /// </summary>
 /// <param name="source">The source of the type.</param>
 /// <param name="assigner">The assigner that the object variables will be added to.</param>
 public void AddObjectVariablesToAssigner(IndexReference source, VarIndexAssigner assigner)
 {
     for (int i = 0; i < objectVariables.Count; i++)
     {
         assigner.Add(objectVariables[i], source.CreateChild(i));
     }
 }
Example #5
0
        public void AddVariableInstancesToAssigner(IVariableInstance[] variables, IWorkshopTree reference, VarIndexAssigner assigner)
        {
            var gettables = GetVariableGettables(variables, reference);

            for (int i = 0; i < variables.Length; i++)
            {
                assigner.Add(variables[i].Provider, gettables[i]);
            }
        }
        public override void AddObjectVariablesToAssigner(ToWorkshop toWorkshop, IWorkshopTree reference, VarIndexAssigner assigner)
        {
            assigner.Add(X, Element.XOf(reference));
            assigner.Add(Y, Element.YOf(reference));
            assigner.Add(Z, Element.ZOf(reference));
            assigner.Add(Magnitude, Element.MagnitudeOf(reference));

            assigner.Add(HorizontalAngle, Element.Part("Horizontal Angle From Direction", reference));
            assigner.Add(VerticalAngle, Element.Part("Vertical Angle From Direction", reference));
        }
 public void AddToAssigner(Element reference, VarIndexAssigner assigner)
 {
     assigner.Add(Variable, ArrayStore.CreateChild(reference));
 }
Example #8
0
 /// <summary>Adds the ObjectVariable to a variable assigner.</summary>
 public void AddToAssigner(VarIndexAssigner assigner, ToWorkshop toWorkshop, IWorkshopTree reference) =>
 assigner.Add(Variable.Provider, GetGettable(toWorkshop, reference));
Example #9
0
 public override void AddObjectVariablesToAssigner(IWorkshopTree reference, VarIndexAssigner assigner)
 {
     assigner.Add(_length, Element.Part <V_CountOf>(reference));
     assigner.Add(_last, Element.Part <V_LastOf>(reference));
     assigner.Add(_first, Element.Part <V_FirstOf>(reference));
 }
 public override void AddObjectVariablesToAssigner(ToWorkshop toWorkshop, IWorkshopTree reference, VarIndexAssigner assigner)
 {
     assigner.Add(_length, Element.Part("String Length", reference));
 }