예제 #1
0
 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("");
 }
예제 #2
0
 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("");
 }
예제 #3
0
파일: TypeSet.cs 프로젝트: not1ce111/Spedit
 public TypeUnit(PawnType type, int dims)
 {
     kind_ = Kind.Array;
     type_ = type;
     dims_ = dims;
 }
예제 #4
0
파일: TypeSet.cs 프로젝트: not1ce111/Spedit
 public bool equalTo(PawnType other)
 {
     return type_ == other.type_ && tag_ == other.tag_;
 }
예제 #5
0
파일: TypeSet.cs 프로젝트: not1ce111/Spedit
        private TypeUnit ref_;          // kind_ == Reference

        public TypeUnit(PawnType type)
        {
            kind_ = Kind.Cell;
            type_ = type;
        }
예제 #6
0
파일: TypeSet.cs 프로젝트: z4cH3r/Spedit
 public TypeUnit(PawnType type, int dims)
 {
     kind_ = Kind.Array;
     type_ = type;
     dims_ = dims;
 }
예제 #7
0
파일: TypeSet.cs 프로젝트: z4cH3r/Spedit
        private TypeUnit ref_;          // kind_ == Reference

        public TypeUnit(PawnType type)
        {
            kind_ = Kind.Cell;
            type_ = type;
        }
예제 #8
0
파일: TypeSet.cs 프로젝트: z4cH3r/Spedit
 public bool equalTo(PawnType other)
 {
     return(type_ == other.type_ && tag_ == other.tag_);
 }
예제 #9
0
 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 "";
 }
예제 #10
0
 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 "";
 }