Class that holds camera information More...
Classes | |
class | KeyFrame |
Class that holds keyframes More... | |
class | SkitOptions |
Public Types | |
enum | NodeType { NODE_USER_RES = 0 , NODE_SYS_RES , NODE_DLC_RES , NODE_NONE , NODE_FOLDER , NODE_SYS_FOLDER , NODE_DLC_FOLDER } |
node type More... | |
enum | CameraType { NORMAL = 0 , BATTLE , SKIT } |
camera type More... | |
enum | TargetType { TARGET_PLAYER = 0 , TARGET_MAP , TARGET_EVENT , TARGET_SPOT , TARGET_CENTER_OF_MAP } |
target More... | |
enum | Flag { FLAG_ANIM_LOOP = (1 << 0) , FLAG_SPEED_BASE = (1 << 1) , FLAG_INTERPOLATION_LAST = (1 << 2) , FLAG_UNUSE_IN_BATTLE = (1 << 3) , FLAG_ORTHOGONAL = (1 << 4) } |
Various setting flags More... | |
enum | LpfTypes { NONE = 0 , HEIGHT = 1 , XZ = 2 , BOTH = 3 } |
LPF treatment type More... | |
Public Types inherited from Yukar.Common.Rom.RomItem | |
enum | ThumbnailStatusType { Empty = 0 , Creating , Created , Failed } |
Thumbnail image generation status More... | |
Public Member Functions | |
int | validateIndex (int index) |
Camera () | |
constructor More... | |
Camera (NodeType inNodeTp, CameraType inCamTp, Guid inMapId) | |
constructor More... | |
override void | load (System.IO.BinaryReader reader) |
Load More... | |
override void | save (System.IO.BinaryWriter writer) |
save More... | |
KeyFrame | getKeyFrame (int index) |
Get specified keyframe More... | |
KeyFrame | getLastKeyFrame () |
Get last keyframe More... | |
KeyFrame | createKeyFrame (float inFr, Quaternion inQt, Vector3 inPs, Vector3 inOt, TargetType inTp, Guid inId, Vector3 inOf) |
keyframe generation More... | |
KeyFrame | createKeyFrame (float inFr, Quaternion inQt, Vector3 inPs, Vector3 inOt, TargetType inTp, Guid inId, Vector3 inOf, Vector3 inLight, Vector3 inDof) |
keyframe generation More... | |
KeyFrame | addKeyFrame (KeyFrame inSrc, bool isInsert) |
Add keyframe More... | |
void | sort () |
sort More... | |
void | setKeyFrame (int index, KeyFrame dst) |
Setting keyframes More... | |
void | removeKeyFrame (int index) |
Delete keyframe More... | |
void | addPosition (Vector3 pos) |
Position move (all keyframes) More... | |
void | addOffset (Vector3 offset) |
Offset move (all keyframes) More... | |
void | convertOldCameraToNewCamera (float wait, Camera.TargetType ttpSt, Camera.TargetType ttpEd, Guid gidSt, Guid gidEd, Vector3 ofs, ThirdPersonCameraSettings camSt, ThirdPersonCameraSettings camEd, int division=8, int spinTp=0) |
bool | setTiming (int index, int value) |
Change Keyframe Timing at Specified Index More... | |
string | getNameWithParentMap (Catalog catalog, string defaultCameraName) |
void | createSkitDefaultKeyFrame (int v) |
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 void | convQuaternionToAngle (Quaternion quat, out Vector3 ang) |
convert quaternion to angle More... | |
static bool | createNewCamera (Catalog catalog, string inName, string inTag, Camera.NodeType inNodeTp, Camera.CameraType inCamTp, Guid inMapId, out Camera cam) |
static Camera | createDefaultCamera (Catalog catalog) |
Generate new camera from old default camera More... | |
static Camera | findCamera (Catalog catalog, Guid inMapId, string name, bool useDefault=true) |
Camera search by path and name More... | |
static Camera | findBattleCamera (Catalog catalog, string name, string category="") |
Battle camera search More... | |
static Camera | findSkitCamera (Catalog catalog, string name, NodeType nodeType) |
Conversation scene camera search More... | |
static void | CopyFromSource (Catalog catalog, Camera rom) |
static void | createMapDefaultCamera (Map map, Catalog catalog) |
static void | createMapDefaultCamera (Map map, Catalog catalog, Guid defaultGuid, List< Camera > userCams) |
static List< Camera > | getMapDefaultCameras (Catalog catalog) |
static Camera | getDefaultCamera (Catalog catalog) |
static List< Camera > | getMapCameras (Map map, Catalog catalog, bool includeDefault) |
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 | |
NodeType | nodeType |
CameraType | camType |
Guid | parentMapId |
Guid | cloneSource |
UInt32 | flag = 0 |
float | wait = 0f |
List< KeyFrame > | keyFrameList = new List<KeyFrame>() |
float | loopStart = -1 |
SkitOptions | skitOptions |
LpfTypes | lpfType = LpfTypes.HEIGHT |
KeyFrame.Flag | easing |
Public Attributes inherited from Yukar.Common.Rom.RomItem | |
Guid | guId |
String | name |
string | tags = "" |
string | category = "" |
Static Public Attributes | |
static readonly Guid | EMPTY_MAP_GUID = new Guid("69B54607-4654-4F97-9D50-515D2C762E7E") |
const int | MinTiming = 0 |
const int | MaxTiming = 365 * 24 * 60 * 60 - 1 |
static string | NAME_DEFAULT = "cam_default" |
static string | NAME_MAP = "cam_map" |
static string | NAME_BATTLE_START = "cam_battle_start" |
static string | NAME_BATTLE_WAIT = "cam_battle_wait" |
static string | NAME_BATTLE_ATTACK = "cam_battle_attack" |
static string | NAME_BATTLE_USE_SKILL = "cam_battle_use_skill" |
static string | NAME_BATTLE_USE_ITEM = "cam_battle_use_item" |
static string | NAME_BATTLE_WIPE = "cam_battle_wipe" |
static string | NAME_BATTLE_CHANGE = "cam_battle_change" |
static string | NAME_BATTLE_ENTER = "cam_battle_enter" |
static string | NAME_BATTLE_LEAVE = "cam_battle_leave" |
static string | NAME_BATTLE_USE_CAPTURE_ITEM = "cam_battle_use_capture_item" |
static string | NAME_BATTLE_CAPTURE = "cam_battle_capture" |
static string | NAME_BATTLE_CHECK_CAPTURE = "cam_battle_check_capture" |
static string | NAME_BATTLE_CAPTURE_SUCCESS = "cam_battle_capture_success" |
static string | NAME_BATTLE_CAPTURE_FAILED = "cam_battle_capture_failed" |
static string | NAME_BATTLE_RESULT = "cam_battle_result" |
static string[] | BATTLECAMERANAMES |
Battle camera list (order cannot be changed as index is used in skip setting) 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 |
Properties | |
float | InterpolateTime [get, set] |
int | InterpolateType [get, set] |
bool | UnUseInBattle [get, set] |
bool | Orthogonal [get, set] |
float | ActorDistance [get, set] |
float | ActorAngle [get, set] |
Guid | CloneSource [get, set] |
bool | Loop [get, set] |
bool | IsGameDefaultCamera [get] |
float | LoopStart [get, set] |
int | LpfType [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 | |
Protected Member Functions inherited from Yukar.Common.Rom.RomItem | |
virtual void | Dispose (bool disposing) |
Class that holds camera information
enum Yukar.Common.Rom.Camera.Flag |
enum Yukar.Common.Rom.Camera.NodeType |
enum Yukar.Common.Rom.Camera.TargetType |
Yukar.Common.Rom.Camera.Camera | ( | ) |
constructor
Yukar.Common.Rom.Camera.Camera | ( | NodeType | inNodeTp, |
CameraType | inCamTp, | ||
Guid | inMapId | ||
) |
constructor
inNodeTp | node type |
inCamTp | camera type |
inMapId | map GUID |
Add keyframe
inSrc | Insertion position |
isInsert | insert or not |
void Yukar.Common.Rom.Camera.addOffset | ( | Vector3 | offset | ) |
Offset move (all keyframes)
offset |
void Yukar.Common.Rom.Camera.addPosition | ( | Vector3 | pos | ) |
Position move (all keyframes)
pos |
void Yukar.Common.Rom.Camera.convertOldCameraToNewCamera | ( | float | wait, |
Camera.TargetType | ttpSt, | ||
Camera.TargetType | ttpEd, | ||
Guid | gidSt, | ||
Guid | gidEd, | ||
Vector3 | ofs, | ||
ThirdPersonCameraSettings | camSt, | ||
ThirdPersonCameraSettings | camEd, | ||
int | division = 8 , |
||
int | spinTp = 0 |
||
) |
wait | |
ttpSt | |
ttpEd | |
gidSt | |
gidEd | |
ofs | |
camSt | |
camEd | |
division | |
spinTp |
|
static |
convert quaternion to angle
quat | Quaternion |
ang | angle |
Generate new camera from old default camera
catalog |
KeyFrame Yukar.Common.Rom.Camera.createKeyFrame | ( | float | inFr, |
Quaternion | inQt, | ||
Vector3 | inPs, | ||
Vector3 | inOt, | ||
TargetType | inTp, | ||
Guid | inId, | ||
Vector3 | inOf | ||
) |
keyframe generation
inFr | frame value |
inQt | camera orientation |
inPs | camera position |
inOt | Angle of view/near clip |
inTp | target type |
inId | target ID |
inOf |
KeyFrame Yukar.Common.Rom.Camera.createKeyFrame | ( | float | inFr, |
Quaternion | inQt, | ||
Vector3 | inPs, | ||
Vector3 | inOt, | ||
TargetType | inTp, | ||
Guid | inId, | ||
Vector3 | inOf, | ||
Vector3 | inLight, | ||
Vector3 | inDof | ||
) |
keyframe generation
inFr | frame value |
inQt | camera orientation |
inPs | camera position |
inOt | Angle of view/near clip |
inTp | target type |
inId | target ID |
inOf | |
inLight | |
inDof |
|
static |
|
static |
false | = create new / true = already exists |
catalog | |
inName | |
inTag | |
inNodeTp | |
inCamTp | |
inMapId | |
cam |
void Yukar.Common.Rom.Camera.createSkitDefaultKeyFrame | ( | int | v | ) |
|
static |
Battle camera search
catalog | |
name |
|
static |
Conversation scene camera search
catalog | |
name |
KeyFrame Yukar.Common.Rom.Camera.getKeyFrame | ( | int | index | ) |
Get specified keyframe
index | Specified index |
KeyFrame Yukar.Common.Rom.Camera.getLastKeyFrame | ( | ) |
Get last keyframe
|
static |
string Yukar.Common.Rom.Camera.getNameWithParentMap | ( | Catalog | catalog, |
string | defaultCameraName | ||
) |
override void Yukar.Common.Rom.Camera.load | ( | System.IO.BinaryReader | reader | ) |
Load
reader | input stream |
void Yukar.Common.Rom.Camera.removeKeyFrame | ( | int | index | ) |
Delete keyframe
index |
override void Yukar.Common.Rom.Camera.save | ( | System.IO.BinaryWriter | writer | ) |
save
writer | output stream |
void Yukar.Common.Rom.Camera.setKeyFrame | ( | int | index, |
KeyFrame | dst | ||
) |
Setting keyframes
index | setting index |
dst | setting keyframe |
bool Yukar.Common.Rom.Camera.setTiming | ( | int | index, |
int | value | ||
) |
Change Keyframe Timing at Specified Index
index | |
value |
void Yukar.Common.Rom.Camera.sort | ( | ) |
sort
int Yukar.Common.Rom.Camera.validateIndex | ( | int | index | ) |
|
static |
Battle camera list (order cannot be changed as index is used in skip setting)
CameraType Yukar.Common.Rom.Camera.camType |
Guid Yukar.Common.Rom.Camera.cloneSource |
KeyFrame.Flag Yukar.Common.Rom.Camera.easing |
|
static |
UInt32 Yukar.Common.Rom.Camera.flag = 0 |
float Yukar.Common.Rom.Camera.loopStart = -1 |
LpfTypes Yukar.Common.Rom.Camera.lpfType = LpfTypes.HEIGHT |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
NodeType Yukar.Common.Rom.Camera.nodeType |
Guid Yukar.Common.Rom.Camera.parentMapId |
SkitOptions Yukar.Common.Rom.Camera.skitOptions |
float Yukar.Common.Rom.Camera.wait = 0f |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |