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
 Attribute (array variable type) More...
 
class  Attr
 Attribute (base class) More...
 
class  Command
 script command class More...
 
class  FloatAttr
 attribute (floating point type) More...
 
class  GuidAttr
 Attribute (GUID type) More...
 
class  HashedStringAttr
 Attribute (string type with hash) More...
 
class  IntAttr
 attribute (integer type) More...
 
class  LocalVariableAttr
 attribute (local variable type) More...
 
class  SpotAttr
 Attribute (location/spot type) More...
 
class  StringAttr
 Attribute (string type) More...
 
class  VariableAttr
 attribute (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
}
 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 ()
 
override void ChangeId (Dictionary< Guid, RomItem > inChangeIdDic)
 
- 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

bool ignoreHeight
 
bool expandArea
 
Trigger trigger
 
List< Commandcommands = new List<Command>()
 
- Public Attributes inherited from Yukar.Common.Rom.RomItem
Guid guId
 
String name
 
string tags = ""
 
string category = ""
 

Static Public Attributes

const int MAX_ATTR = 250
 
const int MAX_LABEL = 100
 
const int MAX_ATTR_PER_UNIT_old = (sizeof(uint) * 8) / Attr.ATTRTYPE_LENGTH_old - 1
 
static readonly Guid THIS_EVENTS_NAME = new Guid("03917C51-DD7D-43BA-B671-F08F7EB1B7B4")
 
- 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
 

Additional Inherited Members

- 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)
 
- 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]
 

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 

Member Function Documentation

◆ ChangeId()

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

◆ initializingAfterLoading()

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

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

◆ commands

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

◆ expandArea

bool Yukar.Common.Rom.Script.expandArea

◆ ignoreHeight

bool Yukar.Common.Rom.Script.ignoreHeight

◆ MAX_ATTR

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

◆ 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

◆ MAX_LABEL

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

◆ THIS_EVENTS_NAME

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

◆ trigger

Trigger Yukar.Common.Rom.Script.trigger