d2oracle Equals

This commit is contained in:
Gavin Nishizawa 2023-10-06 15:48:19 -07:00
parent 1a4001d56e
commit f200c19e31
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -651,6 +651,12 @@ type Key struct {
}
func (mk1 *Key) D2OracleEquals(mk2 *Key) bool {
if mk1 == nil && mk2 == nil {
return true
}
if (mk1 == nil) || (mk2 == nil) {
return false
}
if mk1.Ampersand != mk2.Ampersand {
return false
}