Logo
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
Yukar.Common.Rom.Folder Class Reference

Folder information class for tree structure data More...

Inheritance diagram for Yukar.Common.Rom.Folder:
Yukar.Common.Rom.RomItem Yukar.Common.Rom.IChunk

Public Member Functions

string GetDisplayName (string inLanguage)
 
string GetLocalName (string inLanguage)
 
void SetLocalName (string inLanguage, string inName)
 
void UpdateChildIds ()
 
 Folder ()
 
override void load (BinaryReader reader)
 
override void save (BinaryWriter writer)
 
override void saveUsedGUID (BinaryWriter writer, bool inIncludeChildUseRomGUID)
 Export the GUID you are using (for tools) More...
 
void initialize (Catalog inCatalog, bool includeChildrenFolder=false)
 
void AddChild (RomItem child, bool toTop=false)
 
void RemoveChild (RomItem child)
 
List< RomItemAllItems (bool inIgnoreFolder=false)
 
List< FolderAllFolders ()
 
bool IsEmpty (bool inIsResourceOnly)
 
List< RomItemParseChilds (bool inIsAll=true)
 
string FullPath ()
 
Common.Rom.Folder FindChildFolder (string path)
 
- Public Member Functions inherited from Yukar.Common.Rom.RomItem
string getCategory (string locale=null)
 
 RomItem ()
 
System.Drawing.Bitmap getThumbnail (THUMBNAILMAKERNOTIFY notify, out bool setNotify)
 
System.Drawing.Bitmap getThumbnail (THUMBNAILMAKERNOTIFY notify)
 
System.Drawing.Bitmap getThumbnail ()
 
void invalidateThumbnail ()
 
void invalidateThumbnail (THUMBNAILMAKERNOTIFY notify)
 
void forceInvalidateThumbnail (THUMBNAILMAKERNOTIFY notify)
 
virtual void save (BinaryWriter writer)
 
virtual void load (BinaryReader reader)
 
virtual void saveUsedGUID (BinaryWriter writer, bool inIncludeChildUseRomGUID)
 Export the GUID you are using (for tools) More...
 
void saveUsedGUID (BinaryWriter writer)
 Export the GUID you are using (for tools) More...
 
virtual bool initializingAfterLoading ()
 
virtual void reImport ()
 
virtual void export (string path)
 
virtual void onCatalogCleanup ()
 
virtual void onNameChanged ()
 
void copyFrom (Common.Rom.RomItem src)
 
virtual void CheckRecourceConsistency (Catalog inCatalog)
 
virtual void ChangeId (Dictionary< Guid, Rom.RomItem > inChangeIdDic)
 Replace the Id you are using with the corresponding Rom Id More...
 
void ClearId (List< Rom.RomItem > inClearRomItemList)
 Removed rom usage in list More...
 
void Dispose ()
 
void AddUpdatecall (int count)
 
void save (BinaryWriter writer)
 
void load (BinaryReader reader)
 

Static Public Member Functions

static Common.Rom.Folder FindChildFolder (Common.Rom.Folder parent, string path)
 
- Static Public Member Functions inherited from Yukar.Common.Rom.RomItem
static void writeChunk (System.IO.BinaryWriter writer, IChunk rom)
 
static void readChunk (System.IO.BinaryReader reader, IChunk rom)
 
static void skipChunk (System.IO.BinaryReader reader)
 
static T Clone< T > (RomItem inSrc)
 
static bool equalChunk (IChunk a, IChunk b)
 
static IChunk duplicate (IChunk rom)
 

Public Attributes

Guid dlcGuid = Guid.Empty
 
- Public Attributes inherited from Yukar.Common.Rom.RomItem
Guid guId
 
String name
 
string tags = ""
 
string category = ""
 

Properties

short Signature [get, set]
 
Dictionary< string, string > LocalNameDic [get]
 
List< RomItemChilds [get, set]
 
List< Guid > ChildIds [get, set]
 
bool Visibility = true [get, set]
 
bool Locked = false [get, set]
 
bool IsExpanded [get, set]
 
- Properties inherited from Yukar.Common.Rom.RomItem
System.Drawing.Bitmap Thumbnail [get]
 
ThumbnailStatusType ThumbnailStatus = ThumbnailStatusType.Empty [get, set]
 
string Name [get, set]
 
virtual int RefCount [get]
 
virtual bool UseRefCount [get]
 
Folder Parent [get, set]
 

Additional Inherited Members

- Public Types inherited from Yukar.Common.Rom.RomItem
enum  ThumbnailStatusType { Empty = 0 , Creating , Created , Failed }
 Thumbnail image generation status More...
 
- Static Public Attributes inherited from Yukar.Common.Rom.RomItem
static int thumbnailWidth = 128
 
static int thumbnailHeight = 128
 
const char CATEGORY_SPLITTER = '\\'
 
static CREATETHUMBNAIL createThumbnailFunction = null
 
const int UnknownRefCount = -2000
 
- Protected Member Functions inherited from Yukar.Common.Rom.RomItem
virtual void Dispose (bool disposing)
 

Detailed Description

Folder information class for tree structure data

Constructor & Destructor Documentation

◆ Folder()

Yukar.Common.Rom.Folder.Folder ( )

Member Function Documentation

◆ AddChild()

void Yukar.Common.Rom.Folder.AddChild ( RomItem  child,
bool  toTop = false 
)

◆ AllFolders()

List< Folder > Yukar.Common.Rom.Folder.AllFolders ( )

◆ AllItems()

List< RomItem > Yukar.Common.Rom.Folder.AllItems ( bool  inIgnoreFolder = false)

◆ FindChildFolder() [1/2]

static Common.Rom.Folder Yukar.Common.Rom.Folder.FindChildFolder ( Common.Rom.Folder  parent,
string  path 
)
static

◆ FindChildFolder() [2/2]

Common.Rom.Folder Yukar.Common.Rom.Folder.FindChildFolder ( string  path)

◆ FullPath()

string Yukar.Common.Rom.Folder.FullPath ( )

◆ GetDisplayName()

string Yukar.Common.Rom.Folder.GetDisplayName ( string  inLanguage)

◆ GetLocalName()

string Yukar.Common.Rom.Folder.GetLocalName ( string  inLanguage)

◆ initialize()

void Yukar.Common.Rom.Folder.initialize ( Catalog  inCatalog,
bool  includeChildrenFolder = false 
)

◆ IsEmpty()

bool Yukar.Common.Rom.Folder.IsEmpty ( bool  inIsResourceOnly)

◆ load()

override void Yukar.Common.Rom.Folder.load ( BinaryReader  reader)
virtual

Reimplemented from Yukar.Common.Rom.RomItem.

◆ ParseChilds()

List< RomItem > Yukar.Common.Rom.Folder.ParseChilds ( bool  inIsAll = true)

◆ RemoveChild()

void Yukar.Common.Rom.Folder.RemoveChild ( RomItem  child)

◆ save()

override void Yukar.Common.Rom.Folder.save ( BinaryWriter  writer)
virtual

Reimplemented from Yukar.Common.Rom.RomItem.

◆ saveUsedGUID()

override void Yukar.Common.Rom.Folder.saveUsedGUID ( BinaryWriter  writer,
bool  inIncludeChildUseRomGUID 
)
virtual

Export the GUID you are using (for tools)

Parameters
writerWriter
inIncludeChildUseRomGUIDDoes it also include the roms used by the roms used?

Reimplemented from Yukar.Common.Rom.RomItem.

◆ SetLocalName()

void Yukar.Common.Rom.Folder.SetLocalName ( string  inLanguage,
string  inName 
)

◆ UpdateChildIds()

void Yukar.Common.Rom.Folder.UpdateChildIds ( )

Member Data Documentation

◆ dlcGuid

Guid Yukar.Common.Rom.Folder.dlcGuid = Guid.Empty

Property Documentation

◆ ChildIds

List<Guid> Yukar.Common.Rom.Folder.ChildIds
getset

◆ Childs

List<RomItem> Yukar.Common.Rom.Folder.Childs
getset

◆ IsExpanded

bool Yukar.Common.Rom.Folder.IsExpanded
getset

◆ LocalNameDic

Dictionary<string, string> Yukar.Common.Rom.Folder.LocalNameDic
get

◆ Locked

bool Yukar.Common.Rom.Folder.Locked = false
getset

◆ Signature

short Yukar.Common.Rom.Folder.Signature
getset

◆ Visibility

bool Yukar.Common.Rom.Folder.Visibility = true
getset