A class for reading Common.Rom.Map and generating and managing 3D models of terrain and objects More...
Classes | |
class | DummyNotifyObject |
A class for notifying collisions of objects that should ignore notifications. | |
class | HeightMapResult |
A class for storing rough collision information of an object by chewing it (for SGB, it will be deleted in Bakin later) More... | |
Public Types | |
enum | STAIR_STAT { NONE = -1 , POS_Z , NEG_Z , POS_X , NEG_X , RIDGE_POSZ_POSX , RIDGE_NEGZ_NEGX , RIDGE_NEGZ_POSX , RIDGE_POSZ_NEGX , VALLEY_POSZ_POSX , VALLEY_NEGZ_NEGX , VALLEY_NEGZ_POSX , VALLEY_POSZ_NEGX } |
Direction of stairs/slopes More... | |
enum | PICKUP_DRAW_MAPOBJECT { kALL , kBUILDING_ONLY , kNONE } |
Pickup type More... | |
enum | Corner { TopLeft , BottomRight } |
Which corner of the terrain (for UV generation) More... | |
Public Member Functions | |
SharpKmyGfx.DrawInfo | GetDrawInfo () |
float | getAspect () |
SkyDrawer | GetSkyDrawer () |
MapData (SharpKmyGfx.SpriteBatch s) | |
void | setRom (Map data, bool topViewOnly, bool isForcedUpdate, uint displayID, bool terrainInit, bool useDirty=false, bool delayedSmoothing=true) |
void | setDisplayID (uint displayID) |
void | pause () |
resume sound More... | |
void | resume () |
resume sound More... | |
void | setRomWithoutGraphics (Map data) |
Map | getRom () |
IEnumerator | setRomImpl (Map data, bool isChangeScene, bool topViewOnly, bool terrainInit, bool useDirty=false, bool delayedSmoothing=true) |
void | SetupMapObjects (bool useDirty) |
void | UnloadModel (List< Guid > inIdList) |
void | reloadAsset (bool isChangeSkyModel, bool isChangeEnvironmentEffect) |
void | setLookAtPos (SharpKmyMath.Vector3 p) |
void | Reset (bool terrainInit=true, bool useDirty=false) |
void | ResetMapObjects (bool useDirty) |
void | Destroy () |
SharpKmyMath.Vector2 | getSize () |
void | setEventRangeColor (List< Map.EventRef > events) |
void | Update (float elapsed) |
void | updateMapHeightAndWalkableState (bool isEnableCalcBuildingObjectHeight=true) |
void | updateCollisionDepotInUnity () |
bool | isStair (int index) |
SharpKmyMath.Vector2[] | getStairTexCoord (int index, int mapHeightScale) |
SharpKmyMath.Vector2[] | getRidgeStairTexCoord (int index) |
SharpKmyMath.Vector2[] | getValleyStairTexCoord (int index) |
SharpKmyMath.Vector2[] | getSlopeTexCoord (int index) |
ChipInfo | GetChipInfo (int index) |
SharpKmyMath.Vector2 | getTerrainTexCoordCorner (ChipInfo chipInfo, Corner corner, int position, int height, bool isStairs=false, bool isBottom=false) |
SharpKmyMath.Vector2 | getTerrainTexCoordCorner (int index, Corner corner, int position, int height, bool isStairs=false) |
SharpKmyMath.Vector2 | getTerrainTexCoordTopLeft (ChipInfo obj, int position, int height, bool isStairs=false, bool isBottom=false) |
SharpKmyMath.Vector2 | getTerrainTexCoordBottomRight (ChipInfo obj, int position, int height, bool isStairs=false, bool isBottom=false) |
SharpKmyMath.Vector2 | getTerrainTexCoordTopLeft (int index, int position, int height, bool isStairs=false) |
SharpKmyMath.Vector2 | getTerrainTexCoordBottomRight (int index, int position, int height, bool isStairs=false) |
SharpKmyMath.Vector2 | getWaveTexCoordTopLeft (int index) |
SharpKmyMath.Vector2 | getWaveTexCoordBottomRight (int index) |
Common.Resource.MapChip | getTerrainInfo (int index) |
Common.Resource.MapChip | getStairInfo (int index) |
bool | getTerrainWalkable (int index) |
bool | getTerrainSquareShape (int index) |
bool | getTerrainLiquidArea (int index) |
void | updateFogParam (SharpKmyMath.Matrix4 pm) |
void | afterViewPositionFixProc (SharpKmyGfx.Render scn) |
void | updateMapObjectPosture (MapObjectInstance p, bool billboardable, float billboardAngle) |
override void | draw (SharpKmyGfx.Render scn) |
void | setLightCoeff (float bloom, float light, float chrom) |
void | setDofCoeff (Vector3 dofCoeff) |
void | applyLight (SharpKmyGfx.GameView gv, SharpKmyMath.Matrix4 p, SharpKmyMath.Matrix4 v, bool stencilShadow, SharpKmyMath.Vector3 seListenerPos) |
MapObjectInstance | getMapObjectInstance (int idx) |
MapObjectInstance[] | getMapObjectInstance (Map.MapObjectRef inRef) |
MapObjectInstance | getMapObjectInstanceByPickupID (ushort id) |
MapClusterBuilder | getClusterByPosition (float x, float z) |
float | getTerrainHeight (int x, int z) |
float | getCharacterHeight (float x, float z) |
float | getCollisionHeight (int x, int z) |
float | getFurnitureHeight (int x, int z, int height=-1) |
bool | getCellIsRoof (int x, int z) |
float | getAdjustedHeight (float x, float z) |
float | addStairHeight (float x, float z, float bh) |
int | getStairDir (int x, int z) |
int | getStairDirAuto (int x, int z) |
STAIR_STAT | getStairStat (int x, int z, ref Common.Rom.Map.StairRef sr) |
void | stairUpdate (int x, int y, int z, int scaleFactor) |
bool | isWalkable (int x, int z) |
void | updateBuildingLight () |
void | addMapObjectInstance (Common.Rom.Map.MapObjectRef mor, List< Common.Rom.RomItem > list) |
Common.Rom.Map.MapObjectRef | addMapObject (float x, float z, Guid guid) |
void | addMapObject (Common.Rom.Map.MapObjectRef mr) |
void | removeMapObject (Common.Rom.Map.MapObjectRef m) |
Common.Rom.Map.EventRef | addEvent (int x, int z) |
void | addEvent (Common.Rom.Map.EventRef ev) |
void | removeEvent (Map.EventRef ev, Dictionary< Map, List< Map.Place > > removedPlaces) |
void | removeEventWithoutPlaces (Map.EventRef ev) |
Common.Rom.Map.StairRef | addStair (int x, int z, int index, bool extStair=false, Map.StairRef stair=null) |
void | addStair (Common.Rom.Map.StairRef sr, bool autoDirection=true) |
void | removeStair (Common.Rom.Map.StairRef sr) |
void | addLocalLight (Common.Rom.Map.LocalLight ll) |
void | removeLocalLight (Common.Rom.Map.LocalLight ll) |
void | addPlace (Common.Rom.Map.Place p) |
void | removePlace (Common.Rom.Map.Place p) |
void | setTerrainHeight (int x, int z, int height) |
bool | setTerrainAttr (int x, int z, int attr, Common.Rom.Map.AttribDir dir, bool geometryUpdate=true) |
bool | setTerrainUVFlip (int x, int z, Common.Rom.Map.AttribDir dir, bool flip) |
bool | setTerrain (int x, int z, int height, int attrib, bool geometryUpdate=true) |
int | getChipIndex (Common.Resource.MapChip parts, bool autoAdd=true) |
Common.Resource.MapChip | getBgChip () |
float | getRoofAdjustedHeight (float dx, float dz, float dy) |
float | getHeightOnCantMove (float x, float z, float y) |
Get height above immovable (including stair offset value) More... | |
float | getHeightOnCantMoveRev (float x, float z, float y) |
Get height below immovable (including stair offset value) More... | |
void | stopPickupExceptTerrain (bool flg) |
void | setFogEnabled (bool @checked) |
void | setRenderSettings (RenderSettings renderSettings, bool forceReload=false) |
Public Member Functions inherited from SharpKmyGfx::Drawable | |
Drawable () | |
void | Release () |
virtual void | draw (Render ^scn) |
Static Public Member Functions | |
static bool | isValidName (String inName) |
static string | convertValidName (Map inMap) |
static void | setGameViewRenderParams (SharpKmyGfx.GameView gv, RenderSettings rs, bool ignoreBackground=false) |
static void | applyRenderSettings (SharpKmyGfx.GameView gv, RenderSettings rp, float lightCoeff=1f, float bloomCoeff=1f, Vector3? dofCoeff=null, float chromabCoeff=0f) |
static void | CombineMotionResource (SharpKmyGfx.ModelInstance mmi, Common.Resource.GfxResourceBase rom) |
Associate a motion resource with the model (by the way, play the 0th motion) More... | |
Public Attributes | |
uint | displayID = GameMain.sDefaultDisplayID |
Terrain | terrain = null |
Map | currentRom = null |
RenderSettings | renderSettings |
SkyDrawer | sky = null |
float | bloomCoeff = 1 |
float | lightCoeff = 1 |
float | chromabCoeff = 0 |
bool | shadowUneditableArea = false |
bool | isExpandViewRange = false |
bool | isEditor = false |
string | mDebugMessage |
int | mDebugMessageX = 0 |
int | mDebugMessageY = 0 |
bool | mDebugMessageEnable = true |
PICKUP_DRAW_MAPOBJECT | drawMapObject = PICKUP_DRAW_MAPOBJECT.kALL |
Func< int, int, string, bool > | progressListener |
Public Attributes inherited from SharpKmyGfx::Drawable | |
System::Runtime::InteropServices::GCHandle | handle |
Static Public Attributes | |
const int | MIN_HEIGHT = 0 |
const int | MAX_HEIGHT = 100 |
static SharpKmyGfx.Render | pickupscene = null |
Properties | |
Map | mapRom = null [get] |
List< MapObjectInstance > | MapObjects [get] |
MapCollisionsDepotWithBit | MapCollisionsDepotWithBit [get] |
The information of the hit judgment of the map in bits More... | |
bool | ShowPerformance [get, set] |
Events | |
MapDrawCallBack | mapDrawCallBack |
onMapInitialize | mapInitialize |
onMapReset | mapReset |
A class for reading Common.Rom.Map and generating and managing 3D models of terrain and objects
Yukar.Engine.MapData.MapData | ( | SharpKmyGfx.SpriteBatch | s | ) |
void Yukar.Engine.MapData.addEvent | ( | Common.Rom.Map.EventRef | ev | ) |
Common.Rom.Map.EventRef Yukar.Engine.MapData.addEvent | ( | int | x, |
int | z | ||
) |
void Yukar.Engine.MapData.addLocalLight | ( | Common.Rom.Map.LocalLight | ll | ) |
void Yukar.Engine.MapData.addMapObject | ( | Common.Rom.Map.MapObjectRef | mr | ) |
Common.Rom.Map.MapObjectRef Yukar.Engine.MapData.addMapObject | ( | float | x, |
float | z, | ||
Guid | guid | ||
) |
void Yukar.Engine.MapData.addMapObjectInstance | ( | Common.Rom.Map.MapObjectRef | mor, |
List< Common.Rom.RomItem > | list | ||
) |
void Yukar.Engine.MapData.addPlace | ( | Common.Rom.Map.Place | p | ) |
void Yukar.Engine.MapData.addStair | ( | Common.Rom.Map.StairRef | sr, |
bool | autoDirection = true |
||
) |
Common.Rom.Map.StairRef Yukar.Engine.MapData.addStair | ( | int | x, |
int | z, | ||
int | index, | ||
bool | extStair = false , |
||
Map.StairRef | stair = null |
||
) |
float Yukar.Engine.MapData.addStairHeight | ( | float | x, |
float | z, | ||
float | bh | ||
) |
void Yukar.Engine.MapData.afterViewPositionFixProc | ( | SharpKmyGfx.Render | scn | ) |
void Yukar.Engine.MapData.applyLight | ( | SharpKmyGfx.GameView | gv, |
SharpKmyMath.Matrix4 | p, | ||
SharpKmyMath.Matrix4 | v, | ||
bool | stencilShadow, | ||
SharpKmyMath.Vector3 | seListenerPos | ||
) |
|
static |
|
static |
Associate a motion resource with the model (by the way, play the 0th motion)
|
static |
void Yukar.Engine.MapData.Destroy | ( | ) |
override void Yukar.Engine.MapData.draw | ( | SharpKmyGfx.Render | scn | ) |
float Yukar.Engine.MapData.getAdjustedHeight | ( | float | x, |
float | z | ||
) |
float Yukar.Engine.MapData.getAspect | ( | ) |
Common.Resource.MapChip Yukar.Engine.MapData.getBgChip | ( | ) |
bool Yukar.Engine.MapData.getCellIsRoof | ( | int | x, |
int | z | ||
) |
float Yukar.Engine.MapData.getCharacterHeight | ( | float | x, |
float | z | ||
) |
int Yukar.Engine.MapData.getChipIndex | ( | Common.Resource.MapChip | parts, |
bool | autoAdd = true |
||
) |
ChipInfo Yukar.Engine.MapData.GetChipInfo | ( | int | index | ) |
MapClusterBuilder Yukar.Engine.MapData.getClusterByPosition | ( | float | x, |
float | z | ||
) |
float Yukar.Engine.MapData.getCollisionHeight | ( | int | x, |
int | z | ||
) |
SharpKmyGfx.DrawInfo Yukar.Engine.MapData.GetDrawInfo | ( | ) |
float Yukar.Engine.MapData.getFurnitureHeight | ( | int | x, |
int | z, | ||
int | height = -1 |
||
) |
float Yukar.Engine.MapData.getHeightOnCantMove | ( | float | x, |
float | z, | ||
float | y | ||
) |
Get height above immovable (including stair offset value)
x | position X to search |
z | Position Z to search |
y | Height to start searching (search downwards) |
float Yukar.Engine.MapData.getHeightOnCantMoveRev | ( | float | x, |
float | z, | ||
float | y | ||
) |
Get height below immovable (including stair offset value)
x | position X to search |
z | Position Z to search |
y | Height to start searching (searching upwards) |
MapObjectInstance Yukar.Engine.MapData.getMapObjectInstance | ( | int | idx | ) |
MapObjectInstance[] Yukar.Engine.MapData.getMapObjectInstance | ( | Map.MapObjectRef | inRef | ) |
MapObjectInstance Yukar.Engine.MapData.getMapObjectInstanceByPickupID | ( | ushort | id | ) |
SharpKmyMath.Vector2[] Yukar.Engine.MapData.getRidgeStairTexCoord | ( | int | index | ) |
Map Yukar.Engine.MapData.getRom | ( | ) |
float Yukar.Engine.MapData.getRoofAdjustedHeight | ( | float | dx, |
float | dz, | ||
float | dy | ||
) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getSize | ( | ) |
SkyDrawer Yukar.Engine.MapData.GetSkyDrawer | ( | ) |
SharpKmyMath.Vector2[] Yukar.Engine.MapData.getSlopeTexCoord | ( | int | index | ) |
int Yukar.Engine.MapData.getStairDir | ( | int | x, |
int | z | ||
) |
int Yukar.Engine.MapData.getStairDirAuto | ( | int | x, |
int | z | ||
) |
Common.Resource.MapChip Yukar.Engine.MapData.getStairInfo | ( | int | index | ) |
STAIR_STAT Yukar.Engine.MapData.getStairStat | ( | int | x, |
int | z, | ||
ref Common.Rom.Map.StairRef | sr | ||
) |
SharpKmyMath.Vector2[] Yukar.Engine.MapData.getStairTexCoord | ( | int | index, |
int | mapHeightScale | ||
) |
float Yukar.Engine.MapData.getTerrainHeight | ( | int | x, |
int | z | ||
) |
Common.Resource.MapChip Yukar.Engine.MapData.getTerrainInfo | ( | int | index | ) |
bool Yukar.Engine.MapData.getTerrainLiquidArea | ( | int | index | ) |
bool Yukar.Engine.MapData.getTerrainSquareShape | ( | int | index | ) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getTerrainTexCoordBottomRight | ( | ChipInfo | obj, |
int | position, | ||
int | height, | ||
bool | isStairs = false , |
||
bool | isBottom = false |
||
) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getTerrainTexCoordBottomRight | ( | int | index, |
int | position, | ||
int | height, | ||
bool | isStairs = false |
||
) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getTerrainTexCoordCorner | ( | ChipInfo | chipInfo, |
Corner | corner, | ||
int | position, | ||
int | height, | ||
bool | isStairs = false , |
||
bool | isBottom = false |
||
) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getTerrainTexCoordCorner | ( | int | index, |
Corner | corner, | ||
int | position, | ||
int | height, | ||
bool | isStairs = false |
||
) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getTerrainTexCoordTopLeft | ( | ChipInfo | obj, |
int | position, | ||
int | height, | ||
bool | isStairs = false , |
||
bool | isBottom = false |
||
) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getTerrainTexCoordTopLeft | ( | int | index, |
int | position, | ||
int | height, | ||
bool | isStairs = false |
||
) |
bool Yukar.Engine.MapData.getTerrainWalkable | ( | int | index | ) |
SharpKmyMath.Vector2[] Yukar.Engine.MapData.getValleyStairTexCoord | ( | int | index | ) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getWaveTexCoordBottomRight | ( | int | index | ) |
SharpKmyMath.Vector2 Yukar.Engine.MapData.getWaveTexCoordTopLeft | ( | int | index | ) |
bool Yukar.Engine.MapData.isStair | ( | int | index | ) |
|
static |
bool Yukar.Engine.MapData.isWalkable | ( | int | x, |
int | z | ||
) |
void Yukar.Engine.MapData.pause | ( | ) |
resume sound
void Yukar.Engine.MapData.reloadAsset | ( | bool | isChangeSkyModel, |
bool | isChangeEnvironmentEffect | ||
) |
void Yukar.Engine.MapData.removeEvent | ( | Map.EventRef | ev, |
Dictionary< Map, List< Map.Place > > | removedPlaces | ||
) |
void Yukar.Engine.MapData.removeEventWithoutPlaces | ( | Map.EventRef | ev | ) |
void Yukar.Engine.MapData.removeLocalLight | ( | Common.Rom.Map.LocalLight | ll | ) |
void Yukar.Engine.MapData.removeMapObject | ( | Common.Rom.Map.MapObjectRef | m | ) |
void Yukar.Engine.MapData.removePlace | ( | Common.Rom.Map.Place | p | ) |
void Yukar.Engine.MapData.removeStair | ( | Common.Rom.Map.StairRef | sr | ) |
void Yukar.Engine.MapData.Reset | ( | bool | terrainInit = true , |
bool | useDirty = false |
||
) |
void Yukar.Engine.MapData.ResetMapObjects | ( | bool | useDirty | ) |
void Yukar.Engine.MapData.resume | ( | ) |
resume sound
void Yukar.Engine.MapData.setDisplayID | ( | uint | displayID | ) |
void Yukar.Engine.MapData.setDofCoeff | ( | Vector3 | dofCoeff | ) |
void Yukar.Engine.MapData.setEventRangeColor | ( | List< Map.EventRef > | events | ) |
void Yukar.Engine.MapData.setFogEnabled | ( | bool @ | checked | ) |
|
static |
void Yukar.Engine.MapData.setLightCoeff | ( | float | bloom, |
float | light, | ||
float | chrom | ||
) |
void Yukar.Engine.MapData.setLookAtPos | ( | SharpKmyMath.Vector3 | p | ) |
void Yukar.Engine.MapData.setRenderSettings | ( | RenderSettings | renderSettings, |
bool | forceReload = false |
||
) |
void Yukar.Engine.MapData.setRom | ( | Map | data, |
bool | topViewOnly, | ||
bool | isForcedUpdate, | ||
uint | displayID, | ||
bool | terrainInit, | ||
bool | useDirty = false , |
||
bool | delayedSmoothing = true |
||
) |
IEnumerator Yukar.Engine.MapData.setRomImpl | ( | Map | data, |
bool | isChangeScene, | ||
bool | topViewOnly, | ||
bool | terrainInit, | ||
bool | useDirty = false , |
||
bool | delayedSmoothing = true |
||
) |
void Yukar.Engine.MapData.setRomWithoutGraphics | ( | Map | data | ) |
bool Yukar.Engine.MapData.setTerrain | ( | int | x, |
int | z, | ||
int | height, | ||
int | attrib, | ||
bool | geometryUpdate = true |
||
) |
bool Yukar.Engine.MapData.setTerrainAttr | ( | int | x, |
int | z, | ||
int | attr, | ||
Common.Rom.Map.AttribDir | dir, | ||
bool | geometryUpdate = true |
||
) |
void Yukar.Engine.MapData.setTerrainHeight | ( | int | x, |
int | z, | ||
int | height | ||
) |
bool Yukar.Engine.MapData.setTerrainUVFlip | ( | int | x, |
int | z, | ||
Common.Rom.Map.AttribDir | dir, | ||
bool | flip | ||
) |
void Yukar.Engine.MapData.SetupMapObjects | ( | bool | useDirty | ) |
void Yukar.Engine.MapData.stairUpdate | ( | int | x, |
int | y, | ||
int | z, | ||
int | scaleFactor | ||
) |
void Yukar.Engine.MapData.stopPickupExceptTerrain | ( | bool | flg | ) |
void Yukar.Engine.MapData.UnloadModel | ( | List< Guid > | inIdList | ) |
void Yukar.Engine.MapData.Update | ( | float | elapsed | ) |
void Yukar.Engine.MapData.updateBuildingLight | ( | ) |
void Yukar.Engine.MapData.updateCollisionDepotInUnity | ( | ) |
void Yukar.Engine.MapData.updateFogParam | ( | SharpKmyMath.Matrix4 | pm | ) |
void Yukar.Engine.MapData.updateMapHeightAndWalkableState | ( | bool | isEnableCalcBuildingObjectHeight = true | ) |
void Yukar.Engine.MapData.updateMapObjectPosture | ( | MapObjectInstance | p, |
bool | billboardable, | ||
float | billboardAngle | ||
) |
float Yukar.Engine.MapData.bloomCoeff = 1 |
float Yukar.Engine.MapData.chromabCoeff = 0 |
Map Yukar.Engine.MapData.currentRom = null |
uint Yukar.Engine.MapData.displayID = GameMain.sDefaultDisplayID |
PICKUP_DRAW_MAPOBJECT Yukar.Engine.MapData.drawMapObject = PICKUP_DRAW_MAPOBJECT.kALL |
bool Yukar.Engine.MapData.isEditor = false |
bool Yukar.Engine.MapData.isExpandViewRange = false |
float Yukar.Engine.MapData.lightCoeff = 1 |
|
static |
string Yukar.Engine.MapData.mDebugMessage |
bool Yukar.Engine.MapData.mDebugMessageEnable = true |
int Yukar.Engine.MapData.mDebugMessageX = 0 |
int Yukar.Engine.MapData.mDebugMessageY = 0 |
|
static |
|
static |
Func<int, int, string, bool> Yukar.Engine.MapData.progressListener |
RenderSettings Yukar.Engine.MapData.renderSettings |
bool Yukar.Engine.MapData.shadowUneditableArea = false |
SkyDrawer Yukar.Engine.MapData.sky = null |
Terrain Yukar.Engine.MapData.terrain = null |
|
get |
The information of the hit judgment of the map in bits
|
get |
|
get |
|
getset |
MapDrawCallBack Yukar.Engine.MapData.mapDrawCallBack |
onMapInitialize Yukar.Engine.MapData.mapInitialize |
onMapReset Yukar.Engine.MapData.mapReset |