public void SetTypeEditor(string parentTypeName, string propertyName, Type toEdit) { TypeBind tb = new TypeBind(); tb.a1 = parentTypeName; tb.a2 = propertyName; tb.t1 = toEdit; mTypeBind.Add(tb); }
public virtual bool MatchBind(TypeBind tb, Dictionary<string,object> binddictionary) { return (tb.Type.IsAssignableFrom(this.GetType())); }
public virtual bool Match(TypeBind tb) { return (tb.Type.IsAssignableFrom(this.GetType())); }
public bool MatchBind(TypeBind tb, Dictionary<string,object> binddictionary) { return false; }
public bool Match(TypeBind tb) { return false; }
public static bool MatchBind(TypeBind tb, int index, IPuzzlePiece ipp, Dictionary<string,object> tobind) { if(Match(tb,index,ipp)) { return ipp.MatchBind(tb,tobind); } return false; }
public static bool Match(TypeBind tb, int index, IPuzzlePiece ipp) { return (ipp != null && (tb.index == -0x01 || tb.index == index) && ipp.Match(tb)); }
public static bool GetOptional(TypeBind tb) { return tb != null && tb.Optional; }
public override bool MatchBind(TypeBind tb, Dictionary<string, object> binddictionary) { if (this.Piece != null) { return this.Piece.MatchBind (tb,binddictionary); } else { return false; } }
public override bool Match(TypeBind tb) { if (this.Piece != null) { return this.Piece.Match (tb); } else { return false; } }