Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 private void listBoxValues_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!updatingValues)
     {
         LastClicked = Stype.Value;
         DisplayFoundInResults();
     }
 }
Esempio n. 4
0
 public Fire(Stype abType, short power, short ttl) :
     base(abType, power, ttl)
 {
     _FireEffect = Resources.Load("VFX\\FireEffect") as GameObject;
     if (_FireEffect)
     {
         Debug.Log("YES");
     }
 }
Esempio n. 5
0
 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();
 }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
 public AbilityType(Stype abType, short power, short ttl)
 {
     _abType = abType;
     _power  = power;
     _ttl    = ttl;
 }
Esempio n. 8
0
 public Wind(Stype abType, short power, short ttl) :
     base(abType, power, ttl)
 {
     _arrowSource = Resources.Load("arrow.prefab") as GameObject;
 }
Esempio n. 9
0
 public Water(Stype abType, short power, short ttl) :
     base(abType, power, ttl)
 {
 }
Esempio n. 10
0
 public Rock(Stype abType, short power, short ttl) :
     base(abType, power, ttl)
 {
 }
Esempio n. 11
0
 public void udp_send_protobuf_cmd(Stype stype, Cmd ctype, ProtoBuf.IExtensible body)
 {
     udp_send_protobuf_cmd((int)stype, (int)ctype, body);
 }