public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Stype != 0) { hash ^= Stype.GetHashCode(); } if (Email.Length != 0) { hash ^= Email.GetHashCode(); } if (dog_ != null) { hash ^= Dog.GetHashCode(); } if (house_ != null) { hash ^= House.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Id != 0) { hash ^= Id.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Stype != global::People.Person.Types.SType.Male) { hash ^= Stype.GetHashCode(); } if (Email.Length != 0) { hash ^= Email.GetHashCode(); } if (dog_ != null) { hash ^= Dog.GetHashCode(); } if (house_ != null) { hash ^= House.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
private void listBoxValues_SelectedIndexChanged(object sender, EventArgs e) { if (!updatingValues) { LastClicked = Stype.Value; DisplayFoundInResults(); } }
public Fire(Stype abType, short power, short ttl) : base(abType, power, ttl) { _FireEffect = Resources.Load("VFX\\FireEffect") as GameObject; if (_FireEffect) { Debug.Log("YES"); } }
private void listBoxResults_SelectedIndexChanged(object sender, EventArgs e) { listBoxFoundIn.BeginUpdate(); listBoxFoundIn.DataSource = null; if (listBoxResults.SelectedItem is INIProperty iniprop) { LastClicked = Stype.Result; DisplayFoundInResults(); DisplayValues(); } listBoxFoundIn.EndUpdate(); }
public static CholmodSparse CreateSparse(CompressedColumnStorage <Complex> matrix, Stype stype, List <GCHandle> handles) { var A = new CholmodSparse(); A.nrow = (uint)matrix.RowCount; A.ncol = (uint)matrix.ColumnCount; A.dtype = Dtype.Double; A.xtype = Xtype.Complex; A.stype = stype; A.itype = Constants.CHOLMOD_INT; A.nzmax = (uint)matrix.Values.Length; A.packed = 1; A.sorted = 1; A.nz = IntPtr.Zero; A.p = InteropHelper.Pin(matrix.ColumnPointers, handles); A.i = InteropHelper.Pin(matrix.RowIndices, handles); A.x = InteropHelper.Pin(matrix.Values, handles); A.z = IntPtr.Zero; return(A); }
public AbilityType(Stype abType, short power, short ttl) { _abType = abType; _power = power; _ttl = ttl; }
public Wind(Stype abType, short power, short ttl) : base(abType, power, ttl) { _arrowSource = Resources.Load("arrow.prefab") as GameObject; }
public Water(Stype abType, short power, short ttl) : base(abType, power, ttl) { }
public Rock(Stype abType, short power, short ttl) : base(abType, power, ttl) { }
public void udp_send_protobuf_cmd(Stype stype, Cmd ctype, ProtoBuf.IExtensible body) { udp_send_protobuf_cmd((int)stype, (int)ctype, body); }