Logo
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | Events | List of all members
Yukar.Common.Catalog Class Reference

A class for collectively managing all edit data More...

Classes

class  DlcInfo
 DLC management structure More...
 
class  MissingRomItem
 A dummy item for remembering the name or path of a resource for which the actual file cannot be found. More...
 
class  OutputLogEventHandlerEventArgs
 log output event More...
 
class  YamlFileData
 Yaml storage management structure More...
 

Public Types

enum  FileType {
  Unknown = -1 , Yaml , RBR , SGR ,
  Count
}
 Save format More...
 
enum  OVERWRITE_RULES { NEVER , ALWAYS , EQUAL_TO_IGNOREITEM , ALWAYS_BUT_DONT_CHANGE_ORDER }
 Overwrite rules when adding items with conflicting GUIDs More...
 

Public Member Functions

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)
 
void addEnhancedItem (NItem inItem)
 
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)
 Acquisition of ROM with specified ID More...
 
RomItem getItemFromGuid (Resource.Icon.Ref iconRef)
 Obtain the ROM with the specified ID (for BattleScript compatibility with Ver1.2.2 or earlier) More...
 
RomItem getItemFromName (string name, Type type)
 
getItemFromGuid< T > (Guid guId)
 
getItemFromName< T > (string name)
 
Common.Resource.ResourceItem getItemFromPath (string path, bool isFullCheck=true)
 
List< RomItemgetFilteredItemList (Type type, bool excludeReadOnlyMap=true)
 
List< RomItemgetFilteredItemList (List< Guid > list)
 
IEnumerable< T > getFilteredItemList< T > (List< Guid > list)
 
List< RomItemgetFilteredItemList< T > ()
 
IEnumerable< T > getFiltered< T > ()
 
List< RomItemgetFilteredItemList (Type type, string option)
 
IEnumerable< Tuple< T, int > > getIndexedItemList< T > ()
 
Folder getRootFolderFromSignature (short inSignature, bool inIsCreate=false)
 
void enumItems< T > (Action< T > func)
 
List< ExtraChunkgetFilteredExtraChunkList (Guid id)
 
RomItem getItemFromIndex (int idx)
 
int saveResources ()
 
int save (bool isCopyResource=false, bool includeReadonlyMap=false, bool createBackup=true)
 
int saveRom (FileType inFileType, Type type, string pathPrefix="")
 
int save (FileType inFileType, bool isCopyResource, bool includeReadonlyMap=false, bool createBackup=true, string pathPrefix="")
 
void CreateBackup ()
 
void CopyResourceFile (List< RomItem > inRomList)
 
List< RomItemgetEventRomList (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 ()
 
long getDlcTimestamp (Guid dlcGuid)
 
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)
 Add system layout More...
 
void combineFolder (Folder inKeepFolder, Folder inFolder)
 
List< RomItemgetDlcRoms (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 (bool inCreateForce=true)
 
LayoutProperties getLayoutProperties ()
 
void sort (Type targetType)
 
List< Common.Rom.RomItem > getFullList ()
 
List< DlcInfogetUsingDlcInfoList ()
 
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 reorderDatabaseFromFolderTree ()
 
void cleanup ()
 
delegate void OutputLogEventHandler (object sender, OutputLogEventHandlerEventArgs e)
 log output handler More...
 
void CallOutputLog (string inLog)
 log output More...
 

Static Public Member Functions

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, DlcInfocreateDlcList (string path, bool jpPreferred)
 Get DLC info in path More...
 
static string GetLog (object inItem)
 

Public Attributes

int romVersion = ROM_VERSION
 
int lastUsedSwitch
 

Static Public Attributes

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_SETTINGS_STATUS = 0x0101
 
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_BLENDSHAPE = 0x1133
 
const short SIGNATURE_DECAL = 0x1134
 
const short SIGNATURE_PHYSICSSETUP_OLD = 0x046A
 
const short SIGNATURE_EXTRA = 0x2000
 
const short SIGNATURE_FOLDER = 0x2002
 
const short SIGNATURE_FOLDER_FOR_EVENTLIST = 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 short SIGNATURE_TERRAIN_CBINFO = 0x2201
 
const short SIGNATURE_MAP_CBSIZEINFO = 0x2202
 
const short SIGNATURE_BLENDSHAPE_CLIP = 0x2203
 
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 sResourceItemFileName = "ResourceItem"
 
static readonly string sCameraFileName = "Camera"
 
static readonly string sBattleCameraFileName = "BattleCamera"
 
static bool isLoading = false
 
static Dictionary< Guid, DlcInfosDlcDictionary = new Dictionary<Guid, DlcInfo>()
 

Properties

static bool IsSrcNewGame [get]
 
static bool IsEditorCopyProcess [get, set]
 
GameDataManager GameDataManager [get, set]
 
Resource.Texture ErrorTexture [get]
 
Resource.Texture ErrorMapChipTexture [get]
 
Resource.SliceAnimationSet ErrorAnimation [get]
 
System.Drawing.Bitmap ErrorTextureBitmap [get]
 
bool IsReadOnly = false [get, set]
 
bool IsCopySystemProjectResourceFile = false [get, set]
 
string ProjectDir [get, set]
 
static string sSystemResourceDir [get, set]
 
static string sDlcDir [get, set]
 

Events

static OutputLogEventHandler OutputLog
 

Detailed Description

A class for collectively managing all edit data

Member Enumeration Documentation

◆ FileType

Save format

Enumerator
Unknown 
Yaml 
RBR 
SGR 
Count 

◆ OVERWRITE_RULES

Overwrite rules when adding items with conflicting GUIDs

Enumerator
NEVER 
ALWAYS 
EQUAL_TO_IGNOREITEM 
ALWAYS_BUT_DONT_CHANGE_ORDER 

Constructor & Destructor Documentation

◆ Catalog()

Yukar.Common.Catalog.Catalog ( bool  inIsSrcNewGame = false)

Member Function Documentation

◆ addDlcRoms()

void Yukar.Common.Catalog.addDlcRoms ( Guid  dlcGuid,
bool  inIsLoadLayout = true,
bool  inIsLoadMap = false,
bool  useDict = false 
)

◆ addEnhancedItem()

void Yukar.Common.Catalog.addEnhancedItem ( NItem  inItem)

◆ addItem()

void Yukar.Common.Catalog.addItem ( RomItem  item,
OVERWRITE_RULES  overwrite = OVERWRITE_RULES.NEVER 
)

◆ addNewItem()

Resource.ErrorType Yukar.Common.Catalog.addNewItem ( Common.Resource.ResourceItem  item,
bool  overwrite = false 
)

◆ addNewResourcesType()

Resource.ErrorType Yukar.Common.Catalog.addNewResourcesType ( Type  type,
string  directory,
string[]  ext,
bool  isReportProgress,
bool  removeInvalidResources = false 
)

◆ addNewResourcesTypeOnceReportProgress()

Resource.ErrorType Yukar.Common.Catalog.addNewResourcesTypeOnceReportProgress ( Type  type,
string  directory,
string[]  ext,
bool  removeInvalidResources = false 
)

◆ AddSystemLayout()

void Yukar.Common.Catalog.AddSystemLayout ( Dictionary< Guid, DlcInfo dlcInfos,
bool  useDict 
)

Add system layout

Parameters
dlcInfosList of DLCs to load
useDictdo localization conversions

◆ appendItem()

void Yukar.Common.Catalog.appendItem ( RomItem  oldItem,
RomItem  newItem 
)

◆ CallOutputLog()

void Yukar.Common.Catalog.CallOutputLog ( string  inLog)

log output

Parameters
inLoglog

◆ checkDiffForSavedFiles()

bool Yukar.Common.Catalog.checkDiffForSavedFiles ( string  pathPrefix = "")

◆ checkLostResource()

List< Common.Resource.ResourceItem > Yukar.Common.Catalog.checkLostResource ( )

◆ cleanup()

void Yukar.Common.Catalog.cleanup ( )

◆ clear()

void Yukar.Common.Catalog.clear ( bool  userResOnly)

◆ clearOldRomFiles()

void Yukar.Common.Catalog.clearOldRomFiles ( FileType  inFileType,
bool  createBackup 
)

◆ combineFolder()

void Yukar.Common.Catalog.combineFolder ( Folder  inKeepFolder,
Folder  inFolder 
)

◆ CopyResourceFile()

void Yukar.Common.Catalog.CopyResourceFile ( List< RomItem inRomList)

◆ CreateBackup()

void Yukar.Common.Catalog.CreateBackup ( )

◆ createDatabaseRootFolder()

void Yukar.Common.Catalog.createDatabaseRootFolder ( )

◆ createDlcList() [1/2]

static void Yukar.Common.Catalog.createDlcList ( bool  jpPreferred)
static

◆ createDlcList() [2/2]

static Dictionary< Guid, DlcInfo > Yukar.Common.Catalog.createDlcList ( string  path,
bool  jpPreferred 
)
static

Get DLC info in path

Parameters
pathPath with DLC you want to get
jpPreferredDo you prefer to acquire Japanese?
Returns
DLC information in the pass

◆ createItem()

static RomItem Yukar.Common.Catalog.createItem ( Type  type)
static

◆ createResourceRootFolder()

void Yukar.Common.Catalog.createResourceRootFolder ( )

◆ deleteAndIgnoreItem()

void Yukar.Common.Catalog.deleteAndIgnoreItem ( RomItem  rom)

◆ DeleteFilesAndFoldersRecursively()

static void Yukar.Common.Catalog.DeleteFilesAndFoldersRecursively ( string  target_dir)
static

◆ deleteItem() [1/3]

void Yukar.Common.Catalog.deleteItem ( Guid  guid)

◆ deleteItem() [2/3]

void Yukar.Common.Catalog.deleteItem ( Resource.ResourceItem  inResourceItem,
Dictionary< string, int >  inUsedFilePathCountDic,
bool  inIsAutoDeleteFile = true 
)

◆ deleteItem() [3/3]

void Yukar.Common.Catalog.deleteItem ( RomItem  item)

◆ enumItems< T >()

void Yukar.Common.Catalog.enumItems< T > ( Action< T >  func)
Type Constraints
T :RomItem 

◆ findFirstItem()

RomItem Yukar.Common.Catalog.findFirstItem ( Type  type)

◆ getDlcRoms()

List< RomItem > Yukar.Common.Catalog.getDlcRoms ( Guid  dlcGuid)

◆ getDlcTimestamp()

long Yukar.Common.Catalog.getDlcTimestamp ( Guid  dlcGuid)

◆ getEventByScript()

Event Yukar.Common.Catalog.getEventByScript ( Script  script)

◆ getEventRomList()

List< RomItem > Yukar.Common.Catalog.getEventRomList ( Guid  evRef)

◆ getExtension()

static string Yukar.Common.Catalog.getExtension ( FileType  inFileType)
static

◆ getFileTypeFromFileName()

static FileType Yukar.Common.Catalog.getFileTypeFromFileName ( string  inFolderPath)
static

◆ getFileTypeFromFolder()

static FileType Yukar.Common.Catalog.getFileTypeFromFolder ( string  inFolderPath,
bool  inIsCheckGameSettings = false 
)
static

◆ getFiltered< T >()

IEnumerable< T > Yukar.Common.Catalog.getFiltered< T > ( )
Type Constraints
T :RomItem 

◆ getFilteredExtraChunkList()

List< ExtraChunk > Yukar.Common.Catalog.getFilteredExtraChunkList ( Guid  id)

◆ getFilteredItemList() [1/3]

List< RomItem > Yukar.Common.Catalog.getFilteredItemList ( List< Guid >  list)

◆ getFilteredItemList() [2/3]

List< RomItem > Yukar.Common.Catalog.getFilteredItemList ( Type  type,
bool  excludeReadOnlyMap = true 
)

◆ getFilteredItemList() [3/3]

List< RomItem > Yukar.Common.Catalog.getFilteredItemList ( Type  type,
string  option 
)

◆ getFilteredItemList< T >() [1/2]

Type Constraints
T :RomItem 

◆ getFilteredItemList< T >() [2/2]

IEnumerable< T > Yukar.Common.Catalog.getFilteredItemList< T > ( List< Guid >  list)
Type Constraints
T :RomItem 

◆ getFullList()

List< Common.Rom.RomItem > Yukar.Common.Catalog.getFullList ( )

◆ getGameSettings()

GameSettings Yukar.Common.Catalog.getGameSettings ( bool  inCreateForce = true)

◆ getIndex()

int Yukar.Common.Catalog.getIndex ( RomItem  insert)

◆ getIndexedItemList< T >()

IEnumerable< Tuple< T, int > > Yukar.Common.Catalog.getIndexedItemList< T > ( )
Type Constraints
T :RomItem 

◆ getItemFromGuid() [1/2]

RomItem Yukar.Common.Catalog.getItemFromGuid ( Guid  guId,
bool  isCheckSystemProjectResourceInEditProject = false 
)

Acquisition of ROM with specified ID

Parameters
guIdID
isCheckSystemProjectResourceInEditProjectSearch system resources for catalogs that are being edited
Returns

◆ getItemFromGuid() [2/2]

RomItem Yukar.Common.Catalog.getItemFromGuid ( Resource.Icon.Ref  iconRef)

Obtain the ROM with the specified ID (for BattleScript compatibility with Ver1.2.2 or earlier)

Parameters
guIdID
isCheckSystemProjectResourceInEditProjectSearch system resources for catalogs that are being edited
Returns

◆ getItemFromGuid< T >()

T Yukar.Common.Catalog.getItemFromGuid< T > ( Guid  guId)
Type Constraints
T :RomItem 

◆ getItemFromIndex()

RomItem Yukar.Common.Catalog.getItemFromIndex ( int  idx)

◆ getItemFromName()

RomItem Yukar.Common.Catalog.getItemFromName ( string  name,
Type  type 
)

◆ getItemFromName< T >()

T Yukar.Common.Catalog.getItemFromName< T > ( string  name)
Type Constraints
T :RomItem 

◆ getItemFromPath()

Common.Resource.ResourceItem Yukar.Common.Catalog.getItemFromPath ( string  path,
bool  isFullCheck = true 
)

◆ getLayoutProperties()

LayoutProperties Yukar.Common.Catalog.getLayoutProperties ( )

◆ GetLog()

static string Yukar.Common.Catalog.GetLog ( object  inItem)
static

◆ getRemovedRomInfo()

Resource.ResourceItem Yukar.Common.Catalog.getRemovedRomInfo ( Guid  guid)

◆ getRomFileName() [1/2]

static string Yukar.Common.Catalog.getRomFileName ( FileType  inFileType,
Type  type 
)
static

◆ getRomFileName() [2/2]

static string Yukar.Common.Catalog.getRomFileName ( Type  type)
static

◆ getRootFolderFromSignature()

Folder Yukar.Common.Catalog.getRootFolderFromSignature ( short  inSignature,
bool  inIsCreate = false 
)

◆ getSignatureFromType()

static short Yukar.Common.Catalog.getSignatureFromType ( Type  type)
static

◆ getType()

static Type Yukar.Common.Catalog.getType ( BinaryReader  reader)
static

◆ getTypeFromSignature()

static Type Yukar.Common.Catalog.getTypeFromSignature ( short  signature)
static

◆ getUsingDlcInfoList()

List< DlcInfo > Yukar.Common.Catalog.getUsingDlcInfoList ( )

◆ insertItem()

void Yukar.Common.Catalog.insertItem ( RomItem  rom,
int  index 
)

◆ isExistItem()

bool Yukar.Common.Catalog.isExistItem ( Guid  guId)

◆ isSystemId()

static bool Yukar.Common.Catalog.isSystemId ( Guid  inId)
static

◆ load() [1/3]

int Yukar.Common.Catalog.load ( bool  autoAddNewResource = true,
string  useBackup = null,
bool  skipSystemResources = false 
)

◆ load() [2/3]

int Yukar.Common.Catalog.load ( FileType  inFileType,
Stream  stream,
OVERWRITE_RULES  overwrite = OVERWRITE_RULES.NEVER,
bool  ignoreMissing = false 
)

◆ load() [3/3]

int Yukar.Common.Catalog.load ( Stream  stream,
OVERWRITE_RULES  overwrite = OVERWRITE_RULES.NEVER,
bool  ignoreMissing = false 
)

◆ loadDlcRoms()

void Yukar.Common.Catalog.loadDlcRoms ( Guid  dlcGuid,
bool  inIsLoadLayout = true,
bool  inIsLoadMap = false,
bool  useDict = false 
)

◆ LoadGameSettings()

static Catalog Yukar.Common.Catalog.LoadGameSettings ( string  inFolderPath)
static

◆ loadLayout()

int Yukar.Common.Catalog.loadLayout ( FileType  inFileType,
Stream  stream,
OVERWRITE_RULES  overwrite = OVERWRITE_RULES.NEVER,
bool  ignoreMissing = false 
)

◆ loadLayoutSgr()

int Yukar.Common.Catalog.loadLayoutSgr ( Stream  stream,
OVERWRITE_RULES  overwrite,
bool  ignoreMissing 
)

◆ loadLayoutYaml()

int Yukar.Common.Catalog.loadLayoutYaml ( Stream  stream,
OVERWRITE_RULES  overwrite,
bool  ignoreMissing 
)

◆ loadSgr()

int Yukar.Common.Catalog.loadSgr ( Stream  stream,
OVERWRITE_RULES  overwrite,
bool  ignoreMissing 
)

◆ loadYaml()

int Yukar.Common.Catalog.loadYaml ( Stream  stream,
OVERWRITE_RULES  overwrite,
bool  ignoreMissing 
)

◆ OutputLogEventHandler()

delegate void Yukar.Common.Catalog.OutputLogEventHandler ( object  sender,
OutputLogEventHandlerEventArgs  e 
)

log output handler

Parameters
sender
e

◆ Reload()

static void Yukar.Common.Catalog.Reload ( List< Common.Rom.RomItem >  inRomList)
static

◆ removeDlcFolders()

void Yukar.Common.Catalog.removeDlcFolders ( Guid  dlcGuid)

◆ reorder()

void Yukar.Common.Catalog.reorder ( IEnumerable< RomItem order)

◆ reorderDatabaseFromFolderTree()

void Yukar.Common.Catalog.reorderDatabaseFromFolderTree ( )

◆ resetCurrentRomVersion()

static void Yukar.Common.Catalog.resetCurrentRomVersion ( )
static

◆ save() [1/5]

int Yukar.Common.Catalog.save ( bool  isCopyResource = false,
bool  includeReadonlyMap = false,
bool  createBackup = true 
)

◆ save() [2/5]

int Yukar.Common.Catalog.save ( FileType  inFileType,
bool  isCopyResource,
bool  includeReadonlyMap = false,
bool  createBackup = true,
string  pathPrefix = "" 
)

◆ save() [3/5]

int Yukar.Common.Catalog.save ( FileType  inFileType,
IEnumerable< RomItem romList,
Stream  stream,
bool  writeMissingRomList = false 
)

◆ save() [4/5]

int Yukar.Common.Catalog.save ( IEnumerable< RomItem romList,
Stream  stream,
bool  writeMissingRomList = false 
)

◆ save() [5/5]

int Yukar.Common.Catalog.save ( Stream  stream,
bool  writeMissingRomList = false 
)

◆ saveResources()

int Yukar.Common.Catalog.saveResources ( )

◆ saveRom()

int Yukar.Common.Catalog.saveRom ( FileType  inFileType,
Type  type,
string  pathPrefix = "" 
)

◆ saveSgr()

int Yukar.Common.Catalog.saveSgr ( IEnumerable< RomItem romList,
Stream  stream,
bool  writeMissingRomList = false 
)

◆ saveYaml()

int Yukar.Common.Catalog.saveYaml ( IEnumerable< RomItem romList,
Stream  stream,
bool  writeMissingRomList = false 
)

◆ sort()

void Yukar.Common.Catalog.sort ( Type  targetType)

◆ verifyAllResource()

void Yukar.Common.Catalog.verifyAllResource ( )

◆ writeType()

static void Yukar.Common.Catalog.writeType ( BinaryWriter  writer,
Type  currentCategory 
)
static

Member Data Documentation

◆ BACKUPDIR

const string Yukar.Common.Catalog.BACKUPDIR = "backup"
static

◆ BACKUPDIR_PREFIX

const string Yukar.Common.Catalog.BACKUPDIR_PREFIX = BACKUPDIR + "\\bakin_backup_"
static

◆ categoryInfoFileName

string Yukar.Common.Catalog.categoryInfoFileName = "info.xml"
static

◆ EMERGENCY_BACKUPDIR_PREFIX

const string Yukar.Common.Catalog.EMERGENCY_BACKUPDIR_PREFIX = BACKUPDIR + "\\bakin_emergency_backup_"
static

◆ GUID_SIZE

const int Yukar.Common.Catalog.GUID_SIZE = 16
static

◆ GUID_STR_SIZE

const int Yukar.Common.Catalog.GUID_STR_SIZE = 36
static

◆ isLoading

bool Yukar.Common.Catalog.isLoading = false
static

◆ lastUsedSwitch

int Yukar.Common.Catalog.lastUsedSwitch

◆ OLDROM_EXTENSION

const string Yukar.Common.Catalog.OLDROM_EXTENSION = ".sgr"
static

◆ RESULT_ERROR

const int Yukar.Common.Catalog.RESULT_ERROR = -1
static

◆ RESULT_IO_ERROR

const int Yukar.Common.Catalog.RESULT_IO_ERROR = 1
static

◆ RESULT_NOERROR

const int Yukar.Common.Catalog.RESULT_NOERROR = 0
static

◆ ROM_EXTENSION

const string Yukar.Common.Catalog.ROM_EXTENSION = ".rbr"
static

◆ ROM_HEADER

const string Yukar.Common.Catalog.ROM_HEADER = "YUKAR"
static

◆ ROM_VERSION

const short Yukar.Common.Catalog.ROM_VERSION = 74
static

◆ ROM_VERSION_SGB1

const short Yukar.Common.Catalog.ROM_VERSION_SGB1 = 9
static

◆ romVersion

int Yukar.Common.Catalog.romVersion = ROM_VERSION

◆ sBattleCameraFileName

readonly string Yukar.Common.Catalog.sBattleCameraFileName = "BattleCamera"
static

◆ sCameraFileName

readonly string Yukar.Common.Catalog.sCameraFileName = "Camera"
static

◆ sDlcDictionary

Dictionary<Guid, DlcInfo> Yukar.Common.Catalog.sDlcDictionary = new Dictionary<Guid, DlcInfo>()
static

◆ sEngineMode

bool Yukar.Common.Catalog.sEngineMode
static

◆ SIGNATURE_AREABATTLESETTINGS

const short Yukar.Common.Catalog.SIGNATURE_AREABATTLESETTINGS = 0x2001
static

◆ SIGNATURE_ATTRIBUTE

const short Yukar.Common.Catalog.SIGNATURE_ATTRIBUTE = 0x0E00
static

◆ SIGNATURE_BATTLE_BG

const short Yukar.Common.Catalog.SIGNATURE_BATTLE_BG = 0x1115
static

◆ SIGNATURE_BATTLE_COMMAND

const short Yukar.Common.Catalog.SIGNATURE_BATTLE_COMMAND = 0x0600
static

◆ SIGNATURE_BGM

const short Yukar.Common.Catalog.SIGNATURE_BGM = 0x1101
static

◆ SIGNATURE_BGS

const short Yukar.Common.Catalog.SIGNATURE_BGS = 0x1114
static

◆ SIGNATURE_BLENDSHAPE

const short Yukar.Common.Catalog.SIGNATURE_BLENDSHAPE = 0x1133
static

◆ SIGNATURE_BLENDSHAPE_CLIP

const short Yukar.Common.Catalog.SIGNATURE_BLENDSHAPE_CLIP = 0x2203
static

◆ SIGNATURE_BUILDING

const short Yukar.Common.Catalog.SIGNATURE_BUILDING = 0x1111
static

◆ SIGNATURE_CAMERA

const short Yukar.Common.Catalog.SIGNATURE_CAMERA = 0x0340
static

◆ SIGNATURE_CAMERA_FRAME

const short Yukar.Common.Catalog.SIGNATURE_CAMERA_FRAME = 0x0341
static

◆ SIGNATURE_CAST

const short Yukar.Common.Catalog.SIGNATURE_CAST = 0x0A00
static

◆ SIGNATURE_CHARACTER

const short Yukar.Common.Catalog.SIGNATURE_CHARACTER = 0x1104
static

◆ SIGNATURE_CONDITION

const short Yukar.Common.Catalog.SIGNATURE_CONDITION = 0x0F00
static

◆ SIGNATURE_CONDITION_PANEL

const short Yukar.Common.Catalog.SIGNATURE_CONDITION_PANEL = 0x2103
static

◆ SIGNATURE_COPY_TEMP_ITEM

const short Yukar.Common.Catalog.SIGNATURE_COPY_TEMP_ITEM = 0x2200
static

◆ SIGNATURE_DECAL

const short Yukar.Common.Catalog.SIGNATURE_DECAL = 0x1134
static

◆ SIGNATURE_EFFECT

const short Yukar.Common.Catalog.SIGNATURE_EFFECT = 0x0900
static

◆ SIGNATURE_EFFECT_SOURCE

const short Yukar.Common.Catalog.SIGNATURE_EFFECT_SOURCE = 0x1109
static

◆ SIGNATURE_EVENT

const short Yukar.Common.Catalog.SIGNATURE_EVENT = 0x0700
static

◆ SIGNATURE_EXTRA

const short Yukar.Common.Catalog.SIGNATURE_EXTRA = 0x2000
static

◆ SIGNATURE_FACE

const short Yukar.Common.Catalog.SIGNATURE_FACE = 0x1113
static

◆ SIGNATURE_FIELD

const short Yukar.Common.Catalog.SIGNATURE_FIELD = 0x0310
static

◆ SIGNATURE_FOLDER

const short Yukar.Common.Catalog.SIGNATURE_FOLDER = 0x2002
static

◆ SIGNATURE_FOLDER_FOR_EVENTLIST

const short Yukar.Common.Catalog.SIGNATURE_FOLDER_FOR_EVENTLIST = 0x2003
static

◆ SIGNATURE_HERO

const short Yukar.Common.Catalog.SIGNATURE_HERO = 0x0200
static

◆ SIGNATURE_ICON

const short Yukar.Common.Catalog.SIGNATURE_ICON = 0x1105
static

◆ SIGNATURE_IGNORE

const short Yukar.Common.Catalog.SIGNATURE_IGNORE = 0x1200
static

◆ SIGNATURE_IMAGE

const short Yukar.Common.Catalog.SIGNATURE_IMAGE = 0x1132
static

◆ SIGNATURE_ITEM

const short Yukar.Common.Catalog.SIGNATURE_ITEM = 0x0400
static

◆ SIGNATURE_ITEM_MODEL

const short Yukar.Common.Catalog.SIGNATURE_ITEM_MODEL = 0x1117
static

◆ SIGNATURE_JOB

const short Yukar.Common.Catalog.SIGNATURE_JOB = 0x0B00
static

◆ SIGNATURE_LAYOUT

const short Yukar.Common.Catalog.SIGNATURE_LAYOUT = 0x2004
static

◆ SIGNATURE_LAYOUT_MENU_ITEM

const short Yukar.Common.Catalog.SIGNATURE_LAYOUT_MENU_ITEM = 0x2102
static

◆ SIGNATURE_LAYOUT_NODE

const short Yukar.Common.Catalog.SIGNATURE_LAYOUT_NODE = 0x2101
static

◆ SIGNATURE_LOCALLIGHT

const short Yukar.Common.Catalog.SIGNATURE_LOCALLIGHT = 0x1121
static

◆ SIGNATURE_LUT

const short Yukar.Common.Catalog.SIGNATURE_LUT = 0x1120
static

◆ SIGNATURE_MAP

const short Yukar.Common.Catalog.SIGNATURE_MAP = 0x0300
static

◆ SIGNATURE_MAP_BG

const short Yukar.Common.Catalog.SIGNATURE_MAP_BG = 0x1118
static

◆ SIGNATURE_MAP_CBSIZEINFO

const short Yukar.Common.Catalog.SIGNATURE_MAP_CBSIZEINFO = 0x2202
static

◆ SIGNATURE_MAPCHIP

const short Yukar.Common.Catalog.SIGNATURE_MAPCHIP = 0x1116
static

◆ SIGNATURE_MAPCHIP_OLD

const short Yukar.Common.Catalog.SIGNATURE_MAPCHIP_OLD = 0x1103
static

◆ SIGNATURE_MAPITEM

const short Yukar.Common.Catalog.SIGNATURE_MAPITEM = 0x1112
static

◆ SIGNATURE_MAPOBJECT_REF

const short Yukar.Common.Catalog.SIGNATURE_MAPOBJECT_REF = 0x0320
static

◆ SIGNATURE_MATERIAL

const short Yukar.Common.Catalog.SIGNATURE_MATERIAL = 0x1122
static

◆ SIGNATURE_MIDI

const short Yukar.Common.Catalog.SIGNATURE_MIDI = 0x112C
static

◆ SIGNATURE_MODEL

const short Yukar.Common.Catalog.SIGNATURE_MODEL = 0x1124
static

◆ SIGNATURE_MONSTER

const short Yukar.Common.Catalog.SIGNATURE_MONSTER = 0x0800
static

◆ SIGNATURE_MONSTER_IMG

const short Yukar.Common.Catalog.SIGNATURE_MONSTER_IMG = 0x1106
static

◆ SIGNATURE_MOTIONSET

const short Yukar.Common.Catalog.SIGNATURE_MOTIONSET = 0x1126
static

◆ SIGNATURE_MOVIE

const short Yukar.Common.Catalog.SIGNATURE_MOVIE = 0x112B
static

◆ SIGNATURE_NITEM

const short Yukar.Common.Catalog.SIGNATURE_NITEM = 0x0C00
static

◆ SIGNATURE_NSKILL

const short Yukar.Common.Catalog.SIGNATURE_NSKILL = 0x0D00
static

◆ SIGNATURE_NSPRITE

const short Yukar.Common.Catalog.SIGNATURE_NSPRITE = 0x112E
static

◆ SIGNATURE_NSPRITESET

const short Yukar.Common.Catalog.SIGNATURE_NSPRITESET = 0x112F
static

◆ SIGNATURE_PARTICLE

const short Yukar.Common.Catalog.SIGNATURE_PARTICLE = 0x1125
static

◆ SIGNATURE_PHYSICSSETUP

const short Yukar.Common.Catalog.SIGNATURE_PHYSICSSETUP = 0x112A
static

◆ SIGNATURE_PHYSICSSETUP_OLD

const short Yukar.Common.Catalog.SIGNATURE_PHYSICSSETUP_OLD = 0x046A
static

◆ SIGNATURE_REFLECTION

const short Yukar.Common.Catalog.SIGNATURE_REFLECTION = 0x1119
static

◆ SIGNATURE_RENDERSETTINGS

const short Yukar.Common.Catalog.SIGNATURE_RENDERSETTINGS = 0x0350
static

◆ SIGNATURE_RESOURCE

const short Yukar.Common.Catalog.SIGNATURE_RESOURCE = 0x1100
static

◆ SIGNATURE_ROOT

const short Yukar.Common.Catalog.SIGNATURE_ROOT = 0x0001
static

◆ SIGNATURE_SCRIPT

const short Yukar.Common.Catalog.SIGNATURE_SCRIPT = 0x0710
static

◆ SIGNATURE_SE

const short Yukar.Common.Catalog.SIGNATURE_SE = 0x1102
static

◆ SIGNATURE_SETTINGS

const short Yukar.Common.Catalog.SIGNATURE_SETTINGS = 0x0100
static

◆ SIGNATURE_SETTINGS_STATUS

const short Yukar.Common.Catalog.SIGNATURE_SETTINGS_STATUS = 0x0101
static

◆ SIGNATURE_SETUPPED

const short Yukar.Common.Catalog.SIGNATURE_SETUPPED = 0x1128
static

◆ SIGNATURE_SETUPPED2D

const short Yukar.Common.Catalog.SIGNATURE_SETUPPED2D = 0x1131
static

◆ SIGNATURE_SETUPPED_SUBGRAPHIC

const short Yukar.Common.Catalog.SIGNATURE_SETUPPED_SUBGRAPHIC = 0x2100
static

◆ SIGNATURE_SKILL

const short Yukar.Common.Catalog.SIGNATURE_SKILL = 0x0500
static

◆ SIGNATURE_SLICEANIMATIONSET

const short Yukar.Common.Catalog.SIGNATURE_SLICEANIMATIONSET = 0x1127
static

◆ SIGNATURE_SOUND

const short Yukar.Common.Catalog.SIGNATURE_SOUND = 0x1130
static

◆ SIGNATURE_SPRITE

const short Yukar.Common.Catalog.SIGNATURE_SPRITE = 0x1107
static

◆ SIGNATURE_STAIR_REF

const short Yukar.Common.Catalog.SIGNATURE_STAIR_REF = 0x0330
static

◆ SIGNATURE_SYSTEM_IMG

const short Yukar.Common.Catalog.SIGNATURE_SYSTEM_IMG = 0x1110
static

◆ SIGNATURE_TERRAIN_CBINFO

const short Yukar.Common.Catalog.SIGNATURE_TERRAIN_CBINFO = 0x2201
static

◆ SIGNATURE_TEXTURE

const short Yukar.Common.Catalog.SIGNATURE_TEXTURE = 0x1123
static

◆ SIGNATURE_VST

const short Yukar.Common.Catalog.SIGNATURE_VST = 0x112D
static

◆ SIGNATURE_WINDOW

const short Yukar.Common.Catalog.SIGNATURE_WINDOW = 0x1108
static

◆ sIgnoreMissingMode

bool Yukar.Common.Catalog.sIgnoreMissingMode
static

◆ sInstance

Catalog Yukar.Common.Catalog.sInstance = null
static

◆ sLoadRomVersion

int Yukar.Common.Catalog.sLoadRomVersion
static

◆ sOldContentIds

Guid [] Yukar.Common.Catalog.sOldContentIds
static
Initial value:
= new Guid[]
{
new Guid("{C48094A5-6B1B-40B3-B3B2-4E5A9B04DC3F}"),
new Guid("{34361d7c-7ffa-433b-96a8-addae31c8bc6}"),
}

◆ sProgressListener

Func<int, int, string, bool> Yukar.Common.Catalog.sProgressListener
static

◆ sResourceDir

string Yukar.Common.Catalog.sResourceDir = ".\\"
static

◆ sResourceItemFileName

readonly string Yukar.Common.Catalog.sResourceItemFileName = "ResourceItem"
static

◆ sSgb1DlcGuid

readonly Guid Yukar.Common.Catalog.sSgb1DlcGuid = new Guid("C48094A5-6B1B-40B3-B3B2-4E5A9B04DC3F")
static

◆ sSgb1hdDlcGuid

readonly Guid Yukar.Common.Catalog.sSgb1hdDlcGuid = new Guid("14D05464-B51E-4FC1-842A-752CD77641A0")
static

◆ sSystemResourceContentIds

Guid [] Yukar.Common.Catalog.sSystemResourceContentIds
static
Initial value:
= new Guid[]
{
new Guid("{205E1C41-1422-4DBA-A63F-78E86E4CAE90}"),
}

◆ YAML_EXTENSION

const string Yukar.Common.Catalog.YAML_EXTENSION = ".yaml"
static

Property Documentation

◆ ErrorAnimation

Resource.SliceAnimationSet Yukar.Common.Catalog.ErrorAnimation
get

◆ ErrorMapChipTexture

Resource.Texture Yukar.Common.Catalog.ErrorMapChipTexture
get

◆ ErrorTexture

Resource.Texture Yukar.Common.Catalog.ErrorTexture
get

◆ ErrorTextureBitmap

System.Drawing.Bitmap Yukar.Common.Catalog.ErrorTextureBitmap
get

◆ GameDataManager

GameDataManager Yukar.Common.Catalog.GameDataManager
getset

◆ IsCopySystemProjectResourceFile

bool Yukar.Common.Catalog.IsCopySystemProjectResourceFile = false
getset

◆ IsEditorCopyProcess

bool Yukar.Common.Catalog.IsEditorCopyProcess
staticgetset

◆ IsReadOnly

bool Yukar.Common.Catalog.IsReadOnly = false
getset

◆ IsSrcNewGame

bool Yukar.Common.Catalog.IsSrcNewGame
staticget

◆ ProjectDir

string Yukar.Common.Catalog.ProjectDir
getset

◆ sDlcDir

string Yukar.Common.Catalog.sDlcDir
staticgetset

◆ sSystemResourceDir

string Yukar.Common.Catalog.sSystemResourceDir
staticgetset

Event Documentation

◆ OutputLog

OutputLogEventHandler Yukar.Common.Catalog.OutputLog
static