/// <summary> /// Executes the step for the specified resource. /// </summary> /// <param name="resource">The resource.</param> public void Execute(SNAP.Scripts.IStepArgs args) { if (_if.Process(args)) _then.Execute(args); else if (_else != null) _else.Execute(args); }
//private SNAP snap; // Start is called before the first frame update void Start() { YuusyaAI = GameObject.Find("yuusya").GetComponent <yuusyaAI>(); enemyAI = GameObject.Find("boss").GetComponent <EnemyAI>(); holding = GetComponentInParent <SNAP>(); TorabasamiAnim = GameObject.Find("Trap_Torabasami_Animation_1").GetComponent <Animator>(); //FarstDame = true; //SecondDame = true; parent = transform.parent.gameObject; startbutton = GameObject.Find("Gamemain").GetComponent <Startbutton>(); //snap = GameObject.Find("torabasami").GetComponent<SNAP>(); }
public void SaveToFieldValue(SNAP.Resources.ExternalRefFieldValue value) { if (FieldText == null || FieldText.Length == 0) throw new SNAP.Resources.FieldException("A required field has not been filled out"); value.Path = FieldText; }
void IResourceUI.SaveToFieldValue(SNAP.Resources.IResourceValue value) { SaveToFieldValue((ExternalRefFieldValue)value); }
public override void LoadFromFieldValue(SNAP.Resources.FieldValueList value) { FieldText = value.Values[0].ToString(); }
public static bool ChooseResource(out SNAP.Resources.Resource resource) { return Implementation.ChooseResource("", out resource); }
public void LoadFromFieldValue(SNAP.Resources.FieldValueList value) { field.LoadFromFieldValue(value); }
public override void LoadFromFieldValue(SNAP.Resources.FieldValueList value) { SNAP.Resources.IScriptableValue v = value.Values[0]; SelectedResource = ((SNAP.Resources.InternalRefValue) v).MyResource; }
public void LoadFromFieldValue(SNAP.Resources.IResourceValue value) { _resource.LoadFromFieldValue(value); }
public virtual void SaveToFieldValue(SNAP.Resources.FieldValueList value) { }
public virtual void LoadFromFieldValue(SNAP.Resources.FieldValueList value) { }
public static bool ChooseResource( IEnumerable <SNAP.Resources.InternalRefFieldType.Mask> masks, out SNAP.Resources.Resource resource) { return Implementation.ChooseResource(masks, out resource); }
public override void SaveToFieldValue(SNAP.Resources.FieldValueList field) { field.Values.Add(new SNAP.Resources.TextValue (FieldText)); }
public void SaveToFieldValue(SNAP.Resources.IResourceValue value) { System.Diagnostics.Debug.Assert(value.MyType is Resources.NumericFieldType); ((SNAP.Resources.NumericFieldValue)value).Value = numericUpDown1.Value; }
void IResourceUI.LoadFromFieldValue(SNAP.Resources.IResourceValue value) { this.LoadFromFieldValue((NumericFieldValue)value); }
private void BuildTree(System.Windows.Forms.TreeNode parent, SNAP.Resources.Resource resource) { TreeNode treeNode = CreateTreeNode(resource); /// recursively build the descendants foreach (Resources.Resource childResource in resource.Children.Values) { BuildTree(treeNode, childResource); } AddNode(parent, treeNode); }
public void SaveToFieldValue(SNAP.Resources.IResourceValue value) { labelError.Visible = false; try { _resource.SaveToFieldValue(value); } catch (SNAP.Resources.FieldException x) { labelError.Text = x.Message; labelError.Visible = true; throw; } }
public override void LoadFromFieldValue(SNAP.Resources.FieldValueList value) { for (int i = 0; i < value.Values.Count; ++i) { if (i >= _elements.Count) AddElement(true); // TODO: fix the HACK here SNAP.Resources.FieldValueList itemFieldValue = new SNAP.Resources.FieldValueList(value.Type); itemFieldValue.Values.Add(value.Values[i]); _elements[i].LoadFromFieldValue(itemFieldValue); } }
public override void SaveToFieldValue(SNAP.Resources.FieldValueList value) { if (SelectedResource == null) throw new System.InvalidOperationException("A required field has not been filled out"); value.Values.Add(new SNAP.Resources.InternalRefValue (SelectedResource.QualifiedName)); }
public override void SaveToFieldValue(SNAP.Resources.FieldValueList value) { foreach (MultiValueFieldElement element in _elements) { element.SaveToFieldValue (value); } }
public void SaveToFieldValue(SNAP.Resources.FieldValueList value) { field.SaveToFieldValue(value); }
void IResourceUI.LoadFromFieldValue(SNAP.Resources.IResourceValue value) { LoadFromFieldValue((TextFieldValue)value); }
public static bool ChooseResource(string type, out SNAP.Resources.Resource resource) { return Implementation.ChooseResource(type, out resource); }
void IResourceUI.SaveToFieldValue(SNAP.Resources.IResourceValue value) { SaveToValue((TextFieldValue)value); }
public override void SaveToFieldValue(SNAP.Resources.FieldValueList value) { if (FieldText == null || FieldText.Length == 0) throw new System.InvalidOperationException("A required field has not been filled out"); value.Values.Add(new SNAP.Resources.ExternalRefValue (FieldText)); }
public override void LoadFromFieldValue(SNAP.Resources.IResourceValue value) { throw new System.NotImplementedException(); /// TODO: redesign and implement this /* for (int i = 0; i < value.Values.Count; ++i) { if (i >= _elements.Count) AddElement(true); // TODO: fix the HACK here SNAP.Resources.FieldValueList itemFieldValue = new SNAP.Resources.FieldValueList(value.Type); itemFieldValue.Values.Add(value.Values[i]); _elements[i].LoadFromFieldValue(itemFieldValue); } */ }
void IResourceUI.LoadFromFieldValue(SNAP.Resources.IResourceValue value) { LoadFromFieldValue((ExternalRefFieldValue)value); }
public override void SaveToFieldValue(SNAP.Resources.IResourceValue value) { throw new System.NotImplementedException(); /// TODO: redesign and implement this /* foreach (MultiValueFieldElement element in _elements) { element.SaveToFieldValue (value); } */ }
public void LoadFromFieldValue(SNAP.Resources.ExternalRefFieldValue value) { _value = value; FieldText = value.ToString(); }
// Start is called before the first frame update void Start() { YuusyaAI = GameObject.Find("yuusya").GetComponent <yuusyaAI>(); startbutton = GameObject.Find("Gamemain").GetComponent <Startbutton>(); holding = GetComponentInParent <SNAP>(); }
public bool ChooseResource(string type, out SNAP.Resources.Resource resource) { FamiliesForm familiesForm = new FamiliesForm(); if (familiesForm.ShowDialog() == DialogResult.OK) { resource = familiesForm.SelectedResource; return true; } resource = null; return false; }
// Start is called before the first frame update void Start() { rig2 = GameObject.Find("yuusya").GetComponent <Rigidbody2D>(); startbutton = GameObject.Find("Gamemain").GetComponent <Startbutton>(); holding = GetComponentInParent <SNAP>(); }