C# Class CreatureModule.Utils

Exibir arquivo Open project: kestrelm/CreatureDemos

Public Methods

Method Description
BuildCreatureMetaData ( CreatureMetaData meta_data, string json_text_in ) : void
CreateBones ( object>.Dictionary json_obj, string key ) : MeshBone
CreateRegions ( object>.Dictionary json_obj, string key, List indices_in, List rest_pts_in, List uvs_in ) : List
FillAnchorPointMap ( object>.Dictionary json_obj, string key ) : XnaGeometry.Vector2>.Dictionary
FillBoneCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshBoneCacheManager &cache_manager ) : void
FillDeformationCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshDisplacementCacheManager &cache_manager ) : void
FillOpacityCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshOpacityCacheManager &cache_manager ) : void
FillSwapUvPacketMap ( object>.Dictionary json_obj, string key ) : List>.Dictionary
FillUVSwapCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshUVWarpCacheManager &cache_manager ) : void
GetAllAnimationNames ( object>.Dictionary json_data ) : List
GetStartEndTimes ( object>.Dictionary json_obj, string key ) : int>.Tuple
LoadCreatureFlatDataFromBytes ( byte flat_bytes ) : object>.Dictionary
LoadCreatureJSONData ( string filename_in ) : object>.Dictionary
LoadCreatureJSONDataFromString ( string text_in ) : object>.Dictionary
ReadBoolJSON ( object>.Dictionary data, string key ) : bool
ReadFloatArray3DJSON ( object>.Dictionary data, string key ) : List
ReadFloatArrayJSON ( object>.Dictionary data, string key ) : List
ReadIntArrayJSON ( object>.Dictionary data, string key ) : List
ReadMatrixJSON ( object>.Dictionary data, string key ) : XnaGeometry.Matrix
ReadPointsArray2DJSON ( object>.Dictionary data, string key ) : List
ReadVector2JSON ( object>.Dictionary data, string key ) : XnaGeometry.Vector2
ReadVector4JSON ( object>.Dictionary data, string key ) : XnaGeometry.Vector4
getFloatArray ( System raw_data ) : float[]
getIntArray ( System raw_data ) : int[]

Method Details

BuildCreatureMetaData() public static method

public static BuildCreatureMetaData ( CreatureMetaData meta_data, string json_text_in ) : void
meta_data CreatureMetaData
json_text_in string
return void

CreateBones() public static method

public static CreateBones ( object>.Dictionary json_obj, string key ) : MeshBone
json_obj object>.Dictionary
key string
return MeshBone

CreateRegions() public static method

public static CreateRegions ( object>.Dictionary json_obj, string key, List indices_in, List rest_pts_in, List uvs_in ) : List
json_obj object>.Dictionary
key string
indices_in List
rest_pts_in List
uvs_in List
return List

FillAnchorPointMap() public static method

public static FillAnchorPointMap ( object>.Dictionary json_obj, string key ) : XnaGeometry.Vector2>.Dictionary
json_obj object>.Dictionary
key string
return XnaGeometry.Vector2>.Dictionary

FillBoneCache() static public method

static public FillBoneCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshBoneCacheManager &cache_manager ) : void
json_obj object>.Dictionary
key string
start_time int
end_time int
cache_manager MeshBoneCacheManager
return void

FillDeformationCache() public static method

public static FillDeformationCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshDisplacementCacheManager &cache_manager ) : void
json_obj object>.Dictionary
key string
start_time int
end_time int
cache_manager MeshDisplacementCacheManager
return void

FillOpacityCache() public static method

public static FillOpacityCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshOpacityCacheManager &cache_manager ) : void
json_obj object>.Dictionary
key string
start_time int
end_time int
cache_manager MeshOpacityCacheManager
return void

FillSwapUvPacketMap() public static method

public static FillSwapUvPacketMap ( object>.Dictionary json_obj, string key ) : List>.Dictionary
json_obj object>.Dictionary
key string
return List>.Dictionary

FillUVSwapCache() public static method

public static FillUVSwapCache ( object>.Dictionary json_obj, string key, int start_time, int end_time, MeshUVWarpCacheManager &cache_manager ) : void
json_obj object>.Dictionary
key string
start_time int
end_time int
cache_manager MeshUVWarpCacheManager
return void

GetAllAnimationNames() public static method

public static GetAllAnimationNames ( object>.Dictionary json_data ) : List
json_data object>.Dictionary
return List

GetStartEndTimes() public static method

public static GetStartEndTimes ( object>.Dictionary json_obj, string key ) : int>.Tuple
json_obj object>.Dictionary
key string
return int>.Tuple

LoadCreatureFlatDataFromBytes() public static method

public static LoadCreatureFlatDataFromBytes ( byte flat_bytes ) : object>.Dictionary
flat_bytes byte
return object>.Dictionary

LoadCreatureJSONData() public static method

public static LoadCreatureJSONData ( string filename_in ) : object>.Dictionary
filename_in string
return object>.Dictionary

LoadCreatureJSONDataFromString() public static method

public static LoadCreatureJSONDataFromString ( string text_in ) : object>.Dictionary
text_in string
return object>.Dictionary

ReadBoolJSON() public static method

public static ReadBoolJSON ( object>.Dictionary data, string key ) : bool
data object>.Dictionary
key string
return bool

ReadFloatArray3DJSON() public static method

public static ReadFloatArray3DJSON ( object>.Dictionary data, string key ) : List
data object>.Dictionary
key string
return List

ReadFloatArrayJSON() public static method

public static ReadFloatArrayJSON ( object>.Dictionary data, string key ) : List
data object>.Dictionary
key string
return List

ReadIntArrayJSON() public static method

public static ReadIntArrayJSON ( object>.Dictionary data, string key ) : List
data object>.Dictionary
key string
return List

ReadMatrixJSON() public static method

public static ReadMatrixJSON ( object>.Dictionary data, string key ) : XnaGeometry.Matrix
data object>.Dictionary
key string
return XnaGeometry.Matrix

ReadPointsArray2DJSON() public static method

public static ReadPointsArray2DJSON ( object>.Dictionary data, string key ) : List
data object>.Dictionary
key string
return List

ReadVector2JSON() public static method

public static ReadVector2JSON ( object>.Dictionary data, string key ) : XnaGeometry.Vector2
data object>.Dictionary
key string
return XnaGeometry.Vector2

ReadVector4JSON() public static method

public static ReadVector4JSON ( object>.Dictionary data, string key ) : XnaGeometry.Vector4
data object>.Dictionary
key string
return XnaGeometry.Vector4

getFloatArray() public static method

public static getFloatArray ( System raw_data ) : float[]
raw_data System
return float[]

getIntArray() public static method

public static getIntArray ( System raw_data ) : int[]
raw_data System
return int[]