-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathRTextBase.cs
More file actions
29 lines (22 loc) · 875 Bytes
/
Copy pathRTextBase.cs
File metadata and controls
29 lines (22 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2026 Nenkai
// SPDX-License-Identifier: MIT
using System.Collections.Generic;
using System.Linq;
using PDTools.Utils;
namespace PDTools.RText;
public abstract class RTextBase
{
protected SortedDictionary<string, RTextPageBase> _pages { get; set; }
= new SortedDictionary<string, RTextPageBase>(AlphaNumStringComparer.Default);
public SortedDictionary<string, RTextPageBase> GetPages()
{
return _pages;
}
public abstract void Read(byte[] buffer);
/* Note & possible minor TODO - use optimized string table:
* While we are saving strings ordered, we still aren't storing the strings optimally
* As in - different entry offsets may point to the same string offsets to save on size
* Most specifically noticeable in car description rt2's
*/
public abstract void Save(string filePath);
}