Logo
クラス | 公開型 | 公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 静的公開変数類 | プロパティ | イベント | 全メンバ一覧
Yukar.Engine.MapData クラス

Common.Rom.Map を読み込んで、地形や物体の3Dモデルを生成・管理するためのクラス [詳解]

Yukar.Engine.MapData の継承関係図

クラス

class DummyNotifyObject
コリジョンに通知を無視すべきオブジェクトが衝突したことを通知するためのクラス
class HeightMapResult
物体のおおよそのコリジョン情報を噛み砕いて格納するためのクラス(SGB用のためBakinでは後々削除する) [詳解]

公開型

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
}
階段・坂道の向き
enum PICKUP_DRAW_MAPOBJECT { kALL , kBUILDING_ONLY , kNONE }
ピックアップ種別
enum Corner { TopLeft , BottomRight }
地形のどちらの角か(UV生成用)

公開メンバ関数

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 ()
サウンドの再開
void resume ()
サウンドの再開
void setRomWithoutGraphics (Map data)
Map getRom ()
IEnumerator setRomImpl (Map data, bool isChangeScene, bool topViewOnly, bool terrainInit, bool useDirty=false, bool delayedSmoothing=true)
void reloadAsset (bool isChangeSkyModel, bool isChangeEnvironmentEffect)
void setLookAtPos (SharpKmyMath.Vector3 p)
SharpKmyMath.Matrix4 getLightMatrix ()
void Reset (bool terrainInit=true, bool useDirty=false)
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)
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 setTerrainUVFlip (int x, int z, Common.Rom.Map.AttribDir dir, bool flip)
bool setTerrain (int x, int z, int height, int attrib)
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)
移動不可の一つ上の高さを取得する(階段のオフセット値を含む) [詳解]
float getHeightOnCantMoveRev (float x, float z, float y)
移動不可の一つ下の高さを取得する(階段のオフセット値を含む) [詳解]
void stopPickupExceptTerrain (bool flg)
void setFogEnabled (bool @checked)
void setRenderSettings (RenderSettings renderSettings, bool forceReload=false)

静的公開メンバ関数

static bool isValidName (String inName)
static string convertValidName (Map inMap)
static void setGameViewRenderParams (SharpKmyGfx.GameView gv, RenderSettings rs)

公開変数類

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

静的公開変数類

const int MIN_HEIGHT = 0
const int MAX_HEIGHT = 100
static SharpKmyGfx.Render pickupscene = null

プロパティ

Map mapRom = null [get]
List< MapObjectInstance > MapObjects [get]
MapCollisionsDepotWithBit MapCollisionsDepotWithBit [get]
マップの当たり判定の情報をビットに入れたもの
bool ShowPerformance [get, set]

イベント

MapDrawCallBack mapDrawCallBack
onMapInitialize mapInitialize
onMapReset mapReset

詳解

Common.Rom.Map を読み込んで、地形や物体の3Dモデルを生成・管理するためのクラス

メソッド詳解

getHeightOnCantMove()

float Yukar.Engine.MapData.getHeightOnCantMove ( float x,
float z,
float y
)

移動不可の一つ上の高さを取得する(階段のオフセット値を含む)

引数
x 検索する位置X
z 検索する位置Z
y 検索を開始する高さ(下に向かって検索していく)
戻り値
移動不可の一つ上の高さ

getHeightOnCantMoveRev()

float Yukar.Engine.MapData.getHeightOnCantMoveRev ( float x,
float z,
float y
)

移動不可の一つ下の高さを取得する(階段のオフセット値を含む)

引数
x 検索する位置X
z 検索する位置Z
y 検索を開始する高さ(上に向かって検索していく)
戻り値
移動不可の一つ下の高さ

このクラス詳解は次のファイルから抽出されました: