![]() |
|
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) |
| 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... | |
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 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... | |
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 |
| ID More... | |
| String | name |
| name More... | |
| string | tags = "" |
| tag More... | |
| string | category = "" |
| category More... | |
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 |
| 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... | |
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] |
| 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... | |
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 |