public virtual void SetUserData(BATTLE_SOLDIER_INFO _CHARINFO) { this.SetCharName(TKString.NEWString(_CHARINFO.CharName)); this.SetCharPos(_CHARINFO.CharPos); NkSoldierInfo nkSoldierInfo = new NkSoldierInfo(); nkSoldierInfo.Set(_CHARINFO); nkSoldierInfo.SetReceivedEquipItem(true); this.SetSoldierInfo(0, nkSoldierInfo); }
public int SetChar(BATTLE_SOLDIER_INFO MakeCharInfo) { if (MakeCharInfo == null) { return(-1); } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(MakeCharInfo.CharKind); NrPersonInfoBattle nrPersonInfoBattle = new NrPersonInfoBattle(); if (charKindInfo != null) { eCharKindType charKindType = (eCharKindType)MakeCharInfo.CharKindType; nrPersonInfoBattle.SetUserData(MakeCharInfo); return(this.SetChar(MakeCharInfo.CharUnique, MakeCharInfo.BUID, MakeCharInfo.CharKind, charKindType, nrPersonInfoBattle, MakeCharInfo.Speed, ref MakeCharInfo.kPartInfo, MakeCharInfo.SolIndex)); } Debug.LogWarning("CharKind not found !!!!! Name = " + nrPersonInfoBattle.GetCharName() + ", Kind = " + MakeCharInfo.CharKind.ToString()); return(-1); }