public static void SetObjPos(CObjPos objPos, GC_OBJPOS gcObjPos) { objPos.hp = gcObjPos.Hp; objPos.objId = gcObjPos.ObjId; objPos.objState = gcObjPos.ObjState; objPos.posX = gcObjPos.PosX; objPos.posZ = gcObjPos.PosZ; objPos.targetId = gcObjPos.TargetId; }
public static void SetCurrentObjPos(CCurrentObjPos currentObjPos, GC_OBJPOSLIST gcCurrentObjPos) { currentObjPos.sceneId = gcCurrentObjPos.SceneId; currentObjPos.objPosList.Clear(); for (int i = 0; i < gcCurrentObjPos.objPosListCount; i++) { CObjPos objPos = new CObjPos(); SetObjPos(objPos, gcCurrentObjPos.objPosListList[i]); currentObjPos.objPosList.Add(objPos); } }