Exemplo n.º 1
0
        public override object __hx_setField(string field, int hash, object @value, bool handleProperties)
        {
            unchecked {
                switch (hash)
                {
                case 548525016:
                {
                    this.slotType = ((global::core.slot.SlotType)(@value));
                    return(@value);
                }


                case 1946687865:
                {
                    this.slotId = ((int)(global::haxe.lang.Runtime.toInt(@value)));
                    return(@value);
                }


                default:
                {
                    return(base.__hx_setField(field, hash, @value, handleProperties));
                }
                }
            }
        }
Exemplo n.º 2
0
        public virtual void DeserializeFromJson(string json)
        {
            object obj = new global::haxe.format.JsonParser(((string)(json))).parseRec();

            this.slotId   = ((int)(global::haxe.lang.Runtime.getField_f(obj, "slotId", 1946687865, true)));
            this.slotType = ((global::core.slot.SlotType)(global::haxe.lang.Runtime.getField(obj, "slotType", 548525016, true)));
        }
Exemplo n.º 3
0
 public virtual bool CanConnect(global::core.slot.SlotType type)
 {
     if (!((((((this.slotType == global::core.slot.SlotType.DataOut) && (type == global::core.slot.SlotType.DataIn)) || ((this.slotType == global::core.slot.SlotType.DataIn) && (type == global::core.slot.SlotType.DataOut))) || ((this.slotType == global::core.slot.SlotType.ExecutionIn) && (type == global::core.slot.SlotType.ExecutionOut))))))
     {
         if ((this.slotType == global::core.slot.SlotType.ExecutionOut))
         {
             return(type == global::core.slot.SlotType.ExecutionIn);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(true);
     }
 }
Exemplo n.º 4
0
 public virtual void Initialize(int id, global::core.slot.SlotType type)
 {
     this.slotId   = id;
     this.slotType = type;
 }