native final function SetBool(string Member, bool b); native final function SetFloat(string Member, float f); native final function SetDouble(string Member,double d); native final function SetInt(string Member,int i); native final function SetString(string Member, string s); native final function SetObject(string Member, GFxObject val);
//军衔列表每项的数据 struct RankListData { var int Level;//等级 var string Name;//军衔名 }; var array<RankListData> RankListDatas; var string path; function SetFlashRankListDatas() { local int Index; local GFxObject GfxRankListDatas; local GFxObject GfxTempObj;
struct RankAwardData { var string RankAwardTitle; var array<AwardData> AwardDatas; }; var array<RankAwardData> RankAwardDatas; var string path;
function SetFlashRankAwardDatas() { local int Index; local int i; local GFxObject GfxRankAwardDatas; local GFxObject GfxTempObj; local GFxObject GfxAwardDatas; local GFxObject GfxAwardTempObj;
GfxRankAwardDatas = CreateArray(); for (Index = 0; Index < RankAwardDatas.Length; Index++) { GfxTempObj = CreateObject("Object"); GfxTempObj.SetString("RankAwardTitle", RankAwardDatas[Index].RankAwardTitle);
GfxAwardDatas = CreateArray(); for (i = 0; i < RankAwardDatas[Index].AwardDatas.Length; ++i) { GfxAwardTempObj = CreateObject("Object"); GfxAwardTempObj.SetString("IconSource", RankAwardDatas[Index].AwardDatas[i].IconSource); GfxAwardDatas.SetElementObject(i, GfxAwardTempObj); GfxAwardTempObj.DestroyObject(); } GfxTempObj.SetObject("RankAward", GfxAwardDatas); GfxRankAwardDatas.SetElementObject(Index, GfxTempObj); GfxAwardDatas.DestroyObject(); GfxTempObj.DestroyObject(); }