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)); } } } }
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))); }
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); } }
public virtual void Initialize(int id, global::core.slot.SlotType type) { this.slotId = id; this.slotType = type; }