![]() |
|
エディットデータ全般を取りまとめて管理するためのクラス [詳解]
クラス |
|
class | DlcInfo |
DLC管理用構造体
[詳解]
|
|
class | MissingRomItem |
実ファイルが見つからないリソースの名前やパスを記憶しておくためのダミーアイテム
[詳解]
|
|
class | OutputLogEventHandlerEventArgs |
ログ出力イベント
[詳解]
|
|
class | YamlFileData |
Yaml保存用管理構造体
[詳解]
|
|
公開型 |
|
enum |
FileType
{
Unknown = -1 , Yaml , RBR , SGR , Count } |
保存形式
|
|
enum | OVERWRITE_RULES { NEVER , ALWAYS , EQUAL_TO_IGNOREITEM , ALWAYS_BUT_DONT_CHANGE_ORDER } |
GUID競合するアイテムを追加した時の上書きルール
|
|
公開メンバ関数 |
|
void | insertItem (RomItem rom, int index) |
int | getIndex (RomItem insert) |
Catalog (bool inIsSrcNewGame=false) | |
Event | getEventByScript (Script script) |
void | addItem (RomItem item, OVERWRITE_RULES overwrite=OVERWRITE_RULES.NEVER) |
Resource.ErrorType | addNewItem (Common.Resource.ResourceItem item, bool overwrite=false) |
void | deleteItem (RomItem item) |
void | deleteItem (Resource.ResourceItem inResourceItem, Dictionary< string, int > inUsedFilePathCountDic, bool inIsAutoDeleteFile=true) |
void | deleteItem (Guid guid) |
bool | isExistItem (Guid guId) |
RomItem | getItemFromGuid (Guid guId, bool isCheckSystemProjectResourceInEditProject=false) |
指定したIDのロムの取得
[詳解]
|
|
RomItem | getItemFromName (string name, Type type) |
T | getItemFromGuid< T > (Guid guId) |
T | getItemFromName< T > (string name) |
Common.Resource.ResourceItem | getItemFromPath (string path, bool isFullCheck=true) |
List< RomItem > | getFilteredItemList (Type type, bool excludeReadOnlyMap=true) |
List< RomItem > | getFilteredItemList (List< Guid > list) |
IEnumerable< T > | getFilteredItemList< T > (List< Guid > list) |
List< RomItem > | getFilteredItemList< T > () |
List< RomItem > | getFilteredItemList (Type type, string option) |
Folder | getRootFolderFromSignature (short inSignature, bool inIsCreate=false) |
void | enumItems< T > (Action< T > func) |
List< ExtraChunk > | getFilteredExtraChunkList (Guid id) |
RomItem | getItemFromIndex (int idx) |
int | saveResources () |
int | save (bool isCopyResource=false, bool includeReadonlyMap=false, bool createBackup=true) |
int | save (FileType inFileType, bool isCopyResource, bool includeReadonlyMap=false, bool createBackup=true, string pathPrefix="") |
void | CreateBackup () |
void | CopyResourceFile (List< RomItem > inRomList) |
List< RomItem > | getEventRomList (Guid evRef) |
bool | checkDiffForSavedFiles (string pathPrefix="") |
void | clearOldRomFiles (FileType inFileType, bool createBackup) |
int | save (Stream stream, bool writeMissingRomList=false) |
int | saveSgr (IEnumerable< RomItem > romList, Stream stream, bool writeMissingRomList=false) |
int | saveYaml (IEnumerable< RomItem > romList, Stream stream, bool writeMissingRomList=false) |
int | save (IEnumerable< RomItem > romList, Stream stream, bool writeMissingRomList=false) |
int | save (FileType inFileType, IEnumerable< RomItem > romList, Stream stream, bool writeMissingRomList=false) |
Resource.ErrorType | addNewResourcesTypeOnceReportProgress (Type type, string directory, string[] ext, bool removeInvalidResources=false) |
Resource.ErrorType | addNewResourcesType (Type type, string directory, string[] ext, bool isReportProgress, bool removeInvalidResources=false) |
int | load (bool autoAddNewResource=true, string useBackup=null, bool skipSystemResources=false) |
void | createResourceRootFolder () |
void | createDatabaseRootFolder () |
void | loadDlcRoms (Guid dlcGuid, bool inIsLoadLayout=true, bool inIsLoadMap=false, bool useDict=false) |
void | addDlcRoms (Guid dlcGuid, bool inIsLoadLayout=true, bool inIsLoadMap=false, bool useDict=false) |
void | AddSystemLayout (Dictionary< Guid, DlcInfo > dlcInfos, bool useDict) |
システムレイアウトを追加する
[詳解]
|
|
void | combineFolder (Folder inKeepFolder, Folder inFolder) |
List< RomItem > | getDlcRoms (Guid dlcGuid) |
void | removeDlcFolders (Guid dlcGuid) |
int | load (Stream stream, OVERWRITE_RULES overwrite=OVERWRITE_RULES.NEVER, bool ignoreMissing=false) |
int | load (FileType inFileType, Stream stream, OVERWRITE_RULES overwrite=OVERWRITE_RULES.NEVER, bool ignoreMissing=false) |
int | loadLayout (FileType inFileType, Stream stream, OVERWRITE_RULES overwrite=OVERWRITE_RULES.NEVER, bool ignoreMissing=false) |
int | loadSgr (Stream stream, OVERWRITE_RULES overwrite, bool ignoreMissing) |
int | loadLayoutSgr (Stream stream, OVERWRITE_RULES overwrite, bool ignoreMissing) |
int | loadYaml (Stream stream, OVERWRITE_RULES overwrite, bool ignoreMissing) |
int | loadLayoutYaml (Stream stream, OVERWRITE_RULES overwrite, bool ignoreMissing) |
void | appendItem (RomItem oldItem, RomItem newItem) |
RomItem | findFirstItem (Type type) |
GameSettings | getGameSettings () |
LayoutProperties | getLayoutProperties () |
void | sort (Type targetType) |
List< Common.Rom.RomItem > | getFullList () |
List< DlcInfo > | getUsingDlcInfoList () |
void | clear (bool userResOnly) |
Resource.ResourceItem | getRemovedRomInfo (Guid guid) |
void | verifyAllResource () |
List< Common.Resource.ResourceItem > | checkLostResource () |
void | deleteAndIgnoreItem (RomItem rom) |
void | reorder (IEnumerable< RomItem > order) |
void | cleanup () |
delegate void | OutputLogEventHandler (object sender, OutputLogEventHandlerEventArgs e) |
ログ出力ハンドラ
[詳解]
|
|
void | CallOutputLog (string inLog) |
ログ出力
[詳解]
|
|
静的公開メンバ関数 |
|
static bool | isSystemId (Guid inId) |
static Catalog | LoadGameSettings (string inFolderPath) |
static void | resetCurrentRomVersion () |
static void | DeleteFilesAndFoldersRecursively (string target_dir) |
static void | Reload (List< Common.Rom.RomItem > inRomList) |
static RomItem | createItem (Type type) |
static short | getSignatureFromType (Type type) |
static Type | getType (BinaryReader reader) |
static void | writeType (BinaryWriter writer, Type currentCategory) |
static Type | getTypeFromSignature (short signature) |
static FileType | getFileTypeFromFolder (string inFolderPath, bool inIsCheckGameSettings=false) |
static FileType | getFileTypeFromFileName (string inFolderPath) |
static string | getExtension (FileType inFileType) |
static string | getRomFileName (Type type) |
static string | getRomFileName (FileType inFileType, Type type) |
static void | createDlcList (bool jpPreferred) |
static Dictionary< Guid, DlcInfo > | createDlcList (string path, bool jpPreferred) |
パスにあるDLC情報を取得する
[詳解]
|
|
static string | GetLog (object inItem) |
公開変数類 |
|
int | romVersion = ROM_VERSION |
int | lastUsedSwitch |
静的公開変数類 |
|
static string | categoryInfoFileName = "info.xml" |
const short | ROM_VERSION = 74 |
const short | ROM_VERSION_SGB1 = 9 |
const string | ROM_HEADER = "YUKAR" |
const string | ROM_EXTENSION = ".rbr" |
const string | OLDROM_EXTENSION = ".sgr" |
const string | YAML_EXTENSION = ".yaml" |
const string | BACKUPDIR = "backup" |
const string | EMERGENCY_BACKUPDIR_PREFIX = BACKUPDIR + "\\bakin_emergency_backup_" |
const string | BACKUPDIR_PREFIX = BACKUPDIR + "\\bakin_backup_" |
static Guid[] | sOldContentIds |
const short | SIGNATURE_ROOT = 0x0001 |
const short | SIGNATURE_SETTINGS = 0x0100 |
const short | SIGNATURE_HERO = 0x0200 |
const short | SIGNATURE_MAP = 0x0300 |
const short | SIGNATURE_FIELD = 0x0310 |
const short | SIGNATURE_MAPOBJECT_REF = 0x0320 |
const short | SIGNATURE_STAIR_REF = 0x0330 |
const short | SIGNATURE_CAMERA = 0x0340 |
const short | SIGNATURE_RENDERSETTINGS = 0x0350 |
const short | SIGNATURE_ITEM = 0x0400 |
const short | SIGNATURE_SKILL = 0x0500 |
const short | SIGNATURE_BATTLE_COMMAND = 0x0600 |
const short | SIGNATURE_EVENT = 0x0700 |
const short | SIGNATURE_SCRIPT = 0x0710 |
const short | SIGNATURE_MONSTER = 0x0800 |
const short | SIGNATURE_EFFECT = 0x0900 |
const short | SIGNATURE_CAST = 0x0A00 |
const short | SIGNATURE_JOB = 0x0B00 |
const short | SIGNATURE_NITEM = 0x0C00 |
const short | SIGNATURE_NSKILL = 0x0D00 |
const short | SIGNATURE_ATTRIBUTE = 0x0E00 |
const short | SIGNATURE_CONDITION = 0x0F00 |
const short | SIGNATURE_RESOURCE = 0x1100 |
const short | SIGNATURE_BGM = 0x1101 |
const short | SIGNATURE_SE = 0x1102 |
const short | SIGNATURE_MAPCHIP_OLD = 0x1103 |
const short | SIGNATURE_CHARACTER = 0x1104 |
const short | SIGNATURE_ICON = 0x1105 |
const short | SIGNATURE_MONSTER_IMG = 0x1106 |
const short | SIGNATURE_SPRITE = 0x1107 |
const short | SIGNATURE_WINDOW = 0x1108 |
const short | SIGNATURE_EFFECT_SOURCE = 0x1109 |
const short | SIGNATURE_SYSTEM_IMG = 0x1110 |
const short | SIGNATURE_BUILDING = 0x1111 |
const short | SIGNATURE_MAPITEM = 0x1112 |
const short | SIGNATURE_FACE = 0x1113 |
const short | SIGNATURE_BGS = 0x1114 |
const short | SIGNATURE_BATTLE_BG = 0x1115 |
const short | SIGNATURE_MAPCHIP = 0x1116 |
const short | SIGNATURE_ITEM_MODEL = 0x1117 |
const short | SIGNATURE_MAP_BG = 0x1118 |
const short | SIGNATURE_REFLECTION = 0x1119 |
const short | SIGNATURE_LUT = 0x1120 |
const short | SIGNATURE_LOCALLIGHT = 0x1121 |
const short | SIGNATURE_MATERIAL = 0x1122 |
const short | SIGNATURE_TEXTURE = 0x1123 |
const short | SIGNATURE_MODEL = 0x1124 |
const short | SIGNATURE_PARTICLE = 0x1125 |
const short | SIGNATURE_MOTIONSET = 0x1126 |
const short | SIGNATURE_SLICEANIMATIONSET = 0x1127 |
const short | SIGNATURE_SETUPPED = 0x1128 |
const short | SIGNATURE_PHYSICSSETUP = 0x112A |
const short | SIGNATURE_MOVIE = 0x112B |
const short | SIGNATURE_MIDI = 0x112C |
const short | SIGNATURE_VST = 0x112D |
const short | SIGNATURE_NSPRITE = 0x112E |
const short | SIGNATURE_NSPRITESET = 0x112F |
const short | SIGNATURE_SOUND = 0x1130 |
const short | SIGNATURE_IGNORE = 0x1200 |
const short | SIGNATURE_SETUPPED2D = 0x1131 |
const short | SIGNATURE_IMAGE = 0x1132 |
const short | SIGNATURE_PHYSICSSETUP_OLD = 0x046A |
const short | SIGNATURE_EXTRA = 0x2000 |
const short | SIGNATURE_FOLDER = 0x2002 |
const short | SIGNATURE_FOLDER_FOR_MAP = 0x2003 |
const short | SIGNATURE_LAYOUT = 0x2004 |
const short | SIGNATURE_AREABATTLESETTINGS = 0x2001 |
const short | SIGNATURE_CAMERA_FRAME = 0x0341 |
const short | SIGNATURE_SETUPPED_SUBGRAPHIC = 0x2100 |
const short | SIGNATURE_LAYOUT_NODE = 0x2101 |
const short | SIGNATURE_LAYOUT_MENU_ITEM = 0x2102 |
const short | SIGNATURE_CONDITION_PANEL = 0x2103 |
const short | SIGNATURE_COPY_TEMP_ITEM = 0x2200 |
const int | RESULT_ERROR = -1 |
const int | RESULT_IO_ERROR = 1 |
const int | RESULT_NOERROR = 0 |
const int | GUID_SIZE = 16 |
const int | GUID_STR_SIZE = 36 |
static Catalog | sInstance = null |
static int | sLoadRomVersion |
static string | sResourceDir = ".\\" |
static Func< int, int, string, bool > | sProgressListener |
static bool | sEngineMode |
static bool | sIgnoreMissingMode |
static Guid[] | sSystemResourceContentIds |
static readonly Guid | sSgb1DlcGuid = new Guid("C48094A5-6B1B-40B3-B3B2-4E5A9B04DC3F") |
static readonly Guid | sSgb1hdDlcGuid = new Guid("14D05464-B51E-4FC1-842A-752CD77641A0") |
static readonly string | sCameraFileName = "Camera" |
static readonly string | sBattleCameraFileName = "BattleCamera" |
static bool | isLoading = false |
static Dictionary< Guid, DlcInfo > | sDlcDictionary = new Dictionary<Guid, DlcInfo>() |
イベント |
|
static OutputLogEventHandler | OutputLog |
エディットデータ全般を取りまとめて管理するためのクラス
void Yukar.Common.Catalog.AddSystemLayout | ( | Dictionary< Guid, DlcInfo > | dlcInfos, |
bool | useDict | ||
) |
システムレイアウトを追加する
dlcInfos | 読み込みを行うDLCのリスト |
useDict | ローカライズの変換を行うか |
void Yukar.Common.Catalog.CallOutputLog | ( | string | inLog | ) |
ログ出力
inLog | ログ |
|
static |
パスにあるDLC情報を取得する
path | 取得したいDLCがあるパス |
jpPreferred | 日本語を優先して取得するか |
void Yukar.Common.Catalog.enumItems< T > | ( | Action< T > | func | ) |
T | : | RomItem |
List< RomItem > Yukar.Common.Catalog.getFilteredItemList< T > | ( | ) |
T | : | RomItem |
IEnumerable< T > Yukar.Common.Catalog.getFilteredItemList< T > | ( | List< Guid > | list | ) |
T | : | RomItem |
RomItem Yukar.Common.Catalog.getItemFromGuid | ( | Guid | guId, |
bool |
isCheckSystemProjectResourceInEditProject
=
false |
||
) |
指定したIDのロムの取得
guId | ID |
isCheckSystemProjectResourceInEditProject | システムリソースは編集中のカタログも検索対象にする |
T Yukar.Common.Catalog.getItemFromGuid< T > | ( | Guid | guId | ) |
T | : | RomItem |
T Yukar.Common.Catalog.getItemFromName< T > | ( | string | name | ) |
T | : | RomItem |
delegate void Yukar.Common.Catalog.OutputLogEventHandler | ( | object | sender, |
OutputLogEventHandlerEventArgs | e | ||
) |
ログ出力ハンドラ
sender | |
e |
|
static |
|
static |