コード例 #1
0
        public SchemaMethod(IDecoder dec)
        {
            Dictionary <string, Object> map = dec.ReadMap();

            Name     = (string)map["name"];
            ArgCount = (int)map["argCount"];
            if (map.ContainsKey("desc"))
            {
                Description = (string)map["desc"];
            }
            for (int x = 0; x < ArgCount; x++)
            {
                SchemaArgument arg = new SchemaArgument(dec, true);
                Arguments.Add(arg);
                if (arg.IsInput())
                {
                    InputArgCount += 1;
                }
                if (arg.IsOutput())
                {
                    OutputArgCount += 1;
                }
                if (arg.IsBidirectional())
                {
                    BidirectionalArgCount += 1;
                }
            }
        }
コード例 #2
0
ファイル: SchemaMethod.cs プロジェクト: drzo/opensim4opencog
		public SchemaMethod(IDecoder dec)
		{
			Dictionary<string, Object> map = dec.ReadMap() ;
			Name = (string)  map["name"] ;
			ArgCount = (int) map["argCount"] ;
			if (map.ContainsKey("desc")) {
				Description = (string) map["desc"] ;
			}
			for (int x = 0 ; x < ArgCount ; x++) {
				SchemaArgument arg = new SchemaArgument(dec, true) ; 
				Arguments.Add(arg) ;
				if (arg.IsInput()) {
					InputArgCount += 1 ;
				}
				if (arg.IsOutput()) {
					OutputArgCount += 1 ;
				}			
				if (arg.IsBidirectional()) {
					BidirectionalArgCount += 1 ;
				}	
			}
		}