feat: General.compareTurntime

This commit is contained in:
2024-03-09 09:18:59 +00:00
parent 6e7ca3f998
commit 3d67f8bb55
+17
View File
@@ -155,4 +155,21 @@ export class General extends LazyEntityUpdater<IGeneralEntity> {
}
public compareTurntime(other: General): number {
if(this._raw.turntime < other._raw.turntime){
return -1;
}
if(this._raw.turntime > other._raw.turntime){
return 1;
}
if(this._raw.id < other._raw.id){
return -1;
}
if(this._raw.id > other._raw.id){
return 1;
}
return 0;
}
}