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

event script class More...

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

Classes

class  ArrayVariableAttr
 Arguments (array variable type) More...
 
class  Attr
 Arguments (base class) More...
 
class  AttrGuidEntry
 ID argument entry More...
 
class  Command
 script command class More...
 
class  ConditionAttr
 Arguments (condition panel type) More...
 
class  FloatAttr
 Arguments (floating point type) More...
 
class  GuidAttr
 Arguments (GUID type) More...
 
class  HashedStringAttr
 Arguments (string type with hash) More...
 
class  IntAttr
 Arguments (integer type) More...
 
class  LocalVariableAttr
 Arguments (local variable type) More...
 
class  SpotAttr
 Arguments (location/spot type) More...
 
class  StringAttr
 Arguments (string type) More...
 
class  VariableAttr
 Arguments (variable type) More...
 

Public Types

enum  Trigger {
  NONE , AUTO , TALK , HIT ,
  HIT_FROM_EV , AUTO_REPEAT , PARALLEL , PARALLEL_MV ,
  AUTO_PARALLEL , BATTLE_START , BATTLE_TURN , BATTLE_PARALLEL ,
  BATTLE_END , INIT , TERM , GETITEM ,
  BATTLE_BEFORE_ACTION , BATTLE_AFTER_ACTION , BATTLE_BEFORE_COMMAND_SELECT , BATTLE_AFTER_COMMAND_SELECT ,
  BATTLE_CANCEL_COMMAND_SELECT , BATTLE_AFTER_RESULT , PARALLEL_FIXED
}
 start trigger More...
 
- Public Types inherited from Yukar.Common.Rom.RomItem
enum  ThumbnailStatusType { Empty = 0 , Creating , Created , Failed }
 Thumbnail image generation status More...
 

Public Member Functions

override void save (System.IO.BinaryWriter writer)
 
override void load (System.IO.BinaryReader reader)
 
override bool initializingAfterLoading ()
 Initialization process after loading More...
 
override void ChangeId (Dictionary< Guid, RomItem > inChangeIdDic)
 
- Public Member Functions inherited from Yukar.Common.Rom.RomItem
string getCategory (string locale=null)
 Get category path More...
 
 RomItem ()
 constructor More...
 
System.Drawing.Bitmap getThumbnail (THUMBNAILMAKERNOTIFY notify, out bool setNotify)
 Get thumbnail image More...
 
System.Drawing.Bitmap getThumbnail (THUMBNAILMAKERNOTIFY notify)
 Get thumbnail image More...
 
System.Drawing.Bitmap getThumbnail ()
 Get thumbnail image More...
 
void invalidateThumbnail ()
 Disable thumbnail images More...
 
void invalidateThumbnail (THUMBNAILMAKERNOTIFY notify)
 Disable thumbnail images More...
 
void forceInvalidateThumbnail (THUMBNAILMAKERNOTIFY notify)
 Force regeneration of thumbnail images More...
 
virtual void save (BinaryWriter writer)
 keep More...
 
virtual void load (BinaryReader reader)
 loading More...
 
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 ()
 Initialization process after loading More...
 
virtual void reImport ()
 Reimport More...
 
virtual void export (string path)
 export More...
 
virtual void onCatalogCleanup ()
 Catalog release processing More...
 
virtual void onNameChanged ()
 Processing when renaming More...
 
void copyFrom (Common.Rom.RomItem src)
 Copy data from another RomItem More...
 
virtual void CheckRecourceConsistency (Catalog inCatalog)
 Consistency check (for tools) More...
 
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)
 Increase/decrease the thumbnail generation pending counter More...
 
void save (BinaryWriter writer)
 keep More...
 
void load (BinaryReader reader)
 loading More...
 

Public Attributes

bool ignoreHeight
 ignore height differences More...
 
bool expandArea
 React even one step ahead More...
 
Trigger trigger
 start trigger More...
 
List< Commandcommands = new List<Command>()
 command list More...
 
- Public Attributes inherited from Yukar.Common.Rom.RomItem
Guid guId
 ID More...
 
String name
 name More...
 
string tags = ""
 tag More...
 
string category = ""
 category More...
 

Static Public Attributes

const int MAX_ATTR = 250
 Unused More...
 
const int MAX_LABEL = 100
 Maximum number of labels More...
 
const int MAX_ATTR_PER_UNIT_old = (sizeof(uint) * 8) / Attr.ATTRTYPE_LENGTH_old - 1
 Old specifications More...
 
static readonly Guid THIS_EVENTS_NAME = new Guid("03917C51-DD7D-43BA-B671-F08F7EB1B7B4")
 GUID pointing to the name of this event More...
 
static readonly string CANCEL_BRANCH_NAME = "%%WhenCancel%%"
 Branch label name for cancellation More...
 
- Static Public Attributes inherited from Yukar.Common.Rom.RomItem
static int thumbnailWidth = 128
 Thumbnail image width (pixels) More...
 
static int thumbnailHeight = 128
 Thumbnail image height (pixels) More...
 
const char CATEGORY_SPLITTER = '\\'
 category delimiter More...
 
static CREATETHUMBNAIL createThumbnailFunction = null
 Thumbnail generation function More...
 
const int UnknownRefCount = -2000
 Constants when reference count is unknown More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Yukar.Common.Rom.RomItem
static bool reImport (List< RomItem > inRomList)
 Reimport More...
 
static void writeChunk (System.IO.BinaryWriter writer, IChunk rom)
 write chunk More...
 
static void readChunk (System.IO.BinaryReader reader, IChunk rom)
 load chunk More...
 
static void skipChunk (System.IO.BinaryReader reader)
 skip chunk More...
 
static T Clone< T > (RomItem inSrc)
 Clone RomItem More...
 
static bool equalChunk (IChunk a, IChunk b)
 Are the contents of the chunks equal? More...
 
static IChunk duplicate (IChunk rom)
 Duplicate IChunk More...
 
- Protected Member Functions inherited from Yukar.Common.Rom.RomItem
virtual void Dispose (bool disposing)
 
- Properties inherited from Yukar.Common.Rom.RomItem
System.Drawing.Bitmap Thumbnail [get]
 thumbnail image More...
 
ThumbnailStatusType ThumbnailStatus = ThumbnailStatusType.Empty [get, set]
 Thumbnail generation status More...
 
string Name [get, set]
 Get display name More...
 
virtual int RefCount [get]
 reference count More...
 
virtual bool UseRefCount [get]
 Should I use reference counting? More...
 
Folder Parent [get, set]
 parent folder More...
 

Detailed Description

event script class

Member Enumeration Documentation

◆ Trigger

enum Yukar.Common.Rom.Script.Trigger

start trigger

Enumerator
NONE 
AUTO 
TALK 
HIT 
HIT_FROM_EV 
AUTO_REPEAT 
PARALLEL 
PARALLEL_MV 
AUTO_PARALLEL 
BATTLE_START 
BATTLE_TURN 
BATTLE_PARALLEL 
BATTLE_END 
INIT 
TERM 
GETITEM 
BATTLE_BEFORE_ACTION 
BATTLE_AFTER_ACTION 
BATTLE_BEFORE_COMMAND_SELECT 
BATTLE_AFTER_COMMAND_SELECT 
BATTLE_CANCEL_COMMAND_SELECT 
BATTLE_AFTER_RESULT 
PARALLEL_FIXED 

Member Function Documentation

◆ ChangeId()

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

◆ initializingAfterLoading()

override bool Yukar.Common.Rom.Script.initializingAfterLoading ( )
virtual

Initialization process after loading

Returns

Reimplemented from Yukar.Common.Rom.RomItem.

◆ load()

override void Yukar.Common.Rom.Script.load ( System.IO.BinaryReader  reader)

◆ save()

override void Yukar.Common.Rom.Script.save ( System.IO.BinaryWriter  writer)

Member Data Documentation

◆ CANCEL_BRANCH_NAME

readonly string Yukar.Common.Rom.Script.CANCEL_BRANCH_NAME = "%%WhenCancel%%"
static

Branch label name for cancellation

◆ commands

List<Command> Yukar.Common.Rom.Script.commands = new List<Command>()

command list

◆ expandArea

bool Yukar.Common.Rom.Script.expandArea

React even one step ahead

◆ ignoreHeight

bool Yukar.Common.Rom.Script.ignoreHeight

ignore height differences

◆ MAX_ATTR

const int Yukar.Common.Rom.Script.MAX_ATTR = 250
static

Unused

◆ MAX_ATTR_PER_UNIT_old

const int Yukar.Common.Rom.Script.MAX_ATTR_PER_UNIT_old = (sizeof(uint) * 8) / Attr.ATTRTYPE_LENGTH_old - 1
static

Old specifications

◆ MAX_LABEL

const int Yukar.Common.Rom.Script.MAX_LABEL = 100
static

Maximum number of labels

◆ THIS_EVENTS_NAME

readonly Guid Yukar.Common.Rom.Script.THIS_EVENTS_NAME = new Guid("03917C51-DD7D-43BA-B671-F08F7EB1B7B4")
static

GUID pointing to the name of this event

◆ trigger

Trigger Yukar.Common.Rom.Script.trigger

start trigger