private string buildConTag(PawnType type) { if (type.type == CellType.Bool) { return("view_as<bool>"); } if (type.type == CellType.Float) { return("view_as<float>"); } if (type.type == CellType.Tag) { return(buildConTag(type.tag)); } return(""); }
private string buildTag(PawnType type) { if (type.type == CellType.Bool) { return("bool "); } if (type.type == CellType.Float) { return("float "); } if (type.type == CellType.Tag) { return(buildTag(type.tag)); } return(""); }
public TypeUnit(PawnType type, int dims) { kind_ = Kind.Array; type_ = type; dims_ = dims; }
public bool equalTo(PawnType other) { return type_ == other.type_ && tag_ == other.tag_; }
private TypeUnit ref_; // kind_ == Reference public TypeUnit(PawnType type) { kind_ = Kind.Cell; type_ = type; }
public TypeUnit(PawnType type, int dims) { kind_ = Kind.Array; type_ = type; dims_ = dims; }
private TypeUnit ref_; // kind_ == Reference public TypeUnit(PawnType type) { kind_ = Kind.Cell; type_ = type; }
public bool equalTo(PawnType other) { return(type_ == other.type_ && tag_ == other.tag_); }
private string buildConTag(PawnType type) { if (type.type == CellType.Bool) return "view_as<bool>"; if (type.type == CellType.Float) return "view_as<float>"; if (type.type == CellType.Tag) return buildConTag(type.tag); return ""; }
private string buildTag(PawnType type) { if (type.type == CellType.Bool) return "bool "; if (type.type == CellType.Float) return "float "; if (type.type == CellType.Tag) return buildTag(type.tag); return ""; }