コード例 #1
0
ファイル: EntityChange.cs プロジェクト: IronFox/Shard
        public override int CompareTo(object obj)
        {
            Removal other = obj as Removal;

            if (other == null)
            {
                return(1);
            }
            if (other == this)
            {
                return(0);
            }
            int cmp = Origin.CompareTo(other.Origin);

            if (cmp != 0)
            {
                return(cmp);
            }
            return(Target.CompareTo(other.Target));
        }
コード例 #2
0
ファイル: EntityInfo.cs プロジェクト: SCDrifter/Hyperwave
 public int CompareTo(EntityInfo other)
 {
     return(EntityID.CompareTo(other.EntityID));
 }