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

variable box definition More...

Inheritance diagram for Yukar.Common.VariableDefs:
Yukar.Common.Rom.IChunk

Classes

class  Entry
 variable box entry More...
 

Public Types

enum  VarType {
  SYSTEM = 0 , ATTR_TYPE = 0xF , FLAG = 0x1 , DOUBLE = 0x2 ,
  STRING = 0x3 , DOUBLE_ARRAY = 0x4 , CROSS_SAVE = 0x5 , ATTR_LOCAL = 0x10 ,
  LOCAL_FLAG = 0x11 , LOCAL_DOUBLE = 0x12 , LOCAL_STRING = 0x13 , ATTR_ARRAY = 0x100
}
 variable box type More...
 

Public Member Functions

void removeEntry (Entry entry)
 
Entry getVariableEntry (Guid owner, string idStr)
 
Entry getVariableEntry (VarType type, int id)
 
Entry getVariableEntry (Guid owner, string name, bool isLocal)
 
Entry getVariableEntry (Guid owner, VarType type, int index)
 
Entry getFirstEntry (VarType varType)
 
void save (BinaryWriter writer)
 
void load (BinaryReader reader)
 
string getUniqueName (string name, Guid evGuid, bool isLocal=false, bool addForceNumber=false, string middleName="_")
 
int getUniqueID (Guid evGuid, bool isLocal)
 
Entry addEntryWhenNotExists (Guid evGuid, string name)
 
void addEntry (Entry entry)
 
int getVariableID (string name)
 
IEnumerable< EntrygetVariableEntries ()
 
IEnumerable< EntrygetArrayEntries ()
 
IEnumerable< EntrygetLocalVarEntries (Guid evGuid)
 
IEnumerable< EntrygetCrossSaveEntries ()
 
void save (BinaryWriter writer)
 
void load (BinaryReader reader)
 

Public Attributes

bool loaded = false
 

Static Public Attributes

const string LOCAL_PREFIX = "L"
 
const int MAX_VARIABLE = 2048
 
const int MAX_SWITCH_old = 1000
 
const int MAX_VARIABLE_old = 1000
 
const int MAX_STR_VARIABLE_old = 256
 
const int LOCAL_SWITCH_OFFSET_old = 0x10000
 

Properties

Entry this[string name] [get]
 

Detailed Description

variable box definition

Member Enumeration Documentation

◆ VarType

variable box type

Enumerator
SYSTEM 
ATTR_TYPE 
FLAG 
DOUBLE 
STRING 
DOUBLE_ARRAY 
CROSS_SAVE 
ATTR_LOCAL 
LOCAL_FLAG 
LOCAL_DOUBLE 
LOCAL_STRING 
ATTR_ARRAY 

Member Function Documentation

◆ addEntry()

void Yukar.Common.VariableDefs.addEntry ( Entry  entry)

◆ addEntryWhenNotExists()

Entry Yukar.Common.VariableDefs.addEntryWhenNotExists ( Guid  evGuid,
string  name 
)

◆ getArrayEntries()

IEnumerable< Entry > Yukar.Common.VariableDefs.getArrayEntries ( )

◆ getCrossSaveEntries()

IEnumerable< Entry > Yukar.Common.VariableDefs.getCrossSaveEntries ( )

◆ getFirstEntry()

Entry Yukar.Common.VariableDefs.getFirstEntry ( VarType  varType)

◆ getLocalVarEntries()

IEnumerable< Entry > Yukar.Common.VariableDefs.getLocalVarEntries ( Guid  evGuid)

◆ getUniqueID()

int Yukar.Common.VariableDefs.getUniqueID ( Guid  evGuid,
bool  isLocal 
)

◆ getUniqueName()

string Yukar.Common.VariableDefs.getUniqueName ( string  name,
Guid  evGuid,
bool  isLocal = false,
bool  addForceNumber = false,
string  middleName = "_" 
)

◆ getVariableEntries()

IEnumerable< Entry > Yukar.Common.VariableDefs.getVariableEntries ( )

◆ getVariableEntry() [1/4]

Entry Yukar.Common.VariableDefs.getVariableEntry ( Guid  owner,
string  idStr 
)

◆ getVariableEntry() [2/4]

Entry Yukar.Common.VariableDefs.getVariableEntry ( Guid  owner,
string  name,
bool  isLocal 
)

◆ getVariableEntry() [3/4]

Entry Yukar.Common.VariableDefs.getVariableEntry ( Guid  owner,
VarType  type,
int  index 
)

◆ getVariableEntry() [4/4]

Entry Yukar.Common.VariableDefs.getVariableEntry ( VarType  type,
int  id 
)

◆ getVariableID()

int Yukar.Common.VariableDefs.getVariableID ( string  name)

◆ load()

void Yukar.Common.VariableDefs.load ( BinaryReader  reader)

◆ removeEntry()

void Yukar.Common.VariableDefs.removeEntry ( Entry  entry)

◆ save()

void Yukar.Common.VariableDefs.save ( BinaryWriter  writer)

Member Data Documentation

◆ loaded

bool Yukar.Common.VariableDefs.loaded = false

◆ LOCAL_PREFIX

const string Yukar.Common.VariableDefs.LOCAL_PREFIX = "L"
static

◆ LOCAL_SWITCH_OFFSET_old

const int Yukar.Common.VariableDefs.LOCAL_SWITCH_OFFSET_old = 0x10000
static

◆ MAX_STR_VARIABLE_old

const int Yukar.Common.VariableDefs.MAX_STR_VARIABLE_old = 256
static

◆ MAX_SWITCH_old

const int Yukar.Common.VariableDefs.MAX_SWITCH_old = 1000
static

◆ MAX_VARIABLE

const int Yukar.Common.VariableDefs.MAX_VARIABLE = 2048
static

◆ MAX_VARIABLE_old

const int Yukar.Common.VariableDefs.MAX_VARIABLE_old = 1000
static

Property Documentation

◆ this[string name]

Entry Yukar.Common.VariableDefs.this[string name]
get