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

A class that holds database attribute definitions Skill/attack effects and influence, etc. More...

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

Classes

class  Affinity
 A class that sets the compatibility between attributes More...
 

Public Member Functions

override void save (BinaryWriter writer)
 save More...
 
override void load (BinaryReader reader)
 Load More...
 
override void ChangeId (Dictionary< Guid, RomItem > inChangeIdDic)
 Replace the Id you are using with the corresponding Rom Id More...
 
- 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 postImport (string srcpath)
 
virtual void reImport ()
 
virtual void export (string path)
 
virtual void onCatalogCleanup ()
 
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)
 

Public Attributes

String description = ""
 
Guid scriptOnTrigger
 
Resource.Icon.Ref icon = new Resource.Icon.Ref()
 
Guid model
 
Guid effect
 
List< AffinityaffinityList = new List<Affinity>()
 
- Public Attributes inherited from Yukar.Common.Rom.RomItem
Guid guId
 
String name
 
string tags = ""
 
string category = ""
 

Static Public Attributes

static readonly Guid[] predefinedAttributes
 
- 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
 

Properties

string Description [get, set]
 
Icon.Ref Icon [get, set]
 
Guid Effect [get, set]
 
Guid Model [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 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)
 
- Protected Member Functions inherited from Yukar.Common.Rom.RomItem
virtual void Dispose (bool disposing)
 

Detailed Description

A class that holds database attribute definitions Skill/attack effects and influence, etc.

Member Function Documentation

◆ ChangeId()

override void Yukar.Common.Rom.Attribute.ChangeId ( Dictionary< Guid, RomItem inChangeIdDic)

Replace the Id you are using with the corresponding Rom Id

Parameters
inChangeIdDicRom dictionary to replace

◆ load()

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

Load

Parameters
readerinput stream

Reimplemented from Yukar.Common.Rom.RomItem.

◆ save()

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

save

Parameters
writeroutput stream

Reimplemented from Yukar.Common.Rom.RomItem.

Member Data Documentation

◆ affinityList

List<Affinity> Yukar.Common.Rom.Attribute.affinityList = new List<Affinity>()

◆ description

String Yukar.Common.Rom.Attribute.description = ""

◆ effect

Guid Yukar.Common.Rom.Attribute.effect

◆ icon

Resource.Icon.Ref Yukar.Common.Rom.Attribute.icon = new Resource.Icon.Ref()

◆ model

Guid Yukar.Common.Rom.Attribute.model

◆ predefinedAttributes

readonly Guid [] Yukar.Common.Rom.Attribute.predefinedAttributes
static
Initial value:
=
{
new Guid("9EA19C01-82AC-4270-9026-4A6872AAA283"),
new Guid("C9B1A10D-8A5B-4A87-A44B-9A3EE5570476"),
new Guid("9BBAD936-98EC-4B7C-922A-9ACC31FE6248"),
new Guid("8E3BA932-2AB8-4809-8B23-03B2D38422A4"),
new Guid("CB1B2798-4AF8-4235-8B33-6934885F17A5"),
new Guid("B4853A19-0142-4A30-B31A-274CF4C5E991"),
}

◆ scriptOnTrigger

Guid Yukar.Common.Rom.Attribute.scriptOnTrigger

Property Documentation

◆ Description

string Yukar.Common.Rom.Attribute.Description
getset

◆ Effect

Guid Yukar.Common.Rom.Attribute.Effect
getset

◆ Icon

Icon.Ref Yukar.Common.Rom.Attribute.Icon
getset

◆ Model

Guid Yukar.Common.Rom.Attribute.Model
getset