Overwrite

Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
Unstable Kitsune
2023-11-28 23:20:26 -05:00
parent 3cd54811de
commit b918192e4e
11608 changed files with 2644205 additions and 47 deletions

View File

@@ -0,0 +1,75 @@
using System;
namespace Server.Items
{
public class BookContent
{
private readonly string m_Title;
private readonly string m_Author;
private readonly BookPageInfo[] m_Pages;
public BookContent(string title, string author, params BookPageInfo[] pages)
{
this.m_Title = title;
this.m_Author = author;
this.m_Pages = pages;
}
public string Title
{
get
{
return this.m_Title;
}
}
public string Author
{
get
{
return this.m_Author;
}
}
public BookPageInfo[] Pages
{
get
{
return this.m_Pages;
}
}
public BookPageInfo[] Copy()
{
BookPageInfo[] copy = new BookPageInfo[this.m_Pages.Length];
for (int i = 0; i < copy.Length; ++i)
copy[i] = new BookPageInfo(this.m_Pages[i].Lines);
return copy;
}
public bool IsMatch(BookPageInfo[] cmp)
{
if (cmp.Length != this.m_Pages.Length)
return false;
for (int i = 0; i < cmp.Length; ++i)
{
string[] a = this.m_Pages[i].Lines;
string[] b = cmp[i].Lines;
if (a.Length != b.Length)
{
return false;
}
else if (a != b)
{
for (int j = 0; j < a.Length; ++j)
{
if (a[j] != b[j])
return false;
}
}
}
return true;
}
}
}