public ItemDetailToFieldPointData(FieldMapTable.FieldMapTableData map, uint point, FieldMapTable.GatherPointTableData point_table, FieldMapTable.GatherPointViewTableData point_view_table) { mapData = map; pointID = point; pointTable = point_table; pointViewTable = point_view_table; }
public static T Create <T>(FieldMapTable.GatherPointTableData point_data, Transform parent) where T : GatherPointObject { //IL_0020: Unknown result type (might be due to invalid IL or missing references) //IL_0031: Unknown result type (might be due to invalid IL or missing references) //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Unknown result type (might be due to invalid IL or missing references) Transform val = Utility.CreateGameObject("GatherPoint", parent, 9); val.set_position(new Vector3(point_data.pointX, 0f, point_data.pointZ)); val.set_rotation(Quaternion.AngleAxis(point_data.pointDir, Vector3.get_up())); T val2 = val.get_gameObject().AddComponent <T>(); if (val2 == null) { return((T)null); } val2.Initialize(point_data); return(val2); }
public virtual void Initialize(FieldMapTable.GatherPointTableData point_data) { //IL_00f0: Unknown result type (might be due to invalid IL or missing references) //IL_010b: Unknown result type (might be due to invalid IL or missing references) pointData = point_data; viewData = Singleton <FieldMapTable> .I.GetGatherPointViewData(pointData.viewID); if (viewData == null) { Log.Error(LOG.INGAME, "GatherPointObject::Initialize() viewData is null. pointID = {0}, viewID = {1}", pointData.pointID, pointData.viewID); } else { if (viewData.viewID != 0) { LoadObject loadObject = MonoBehaviourSingleton <InGameProgress> .I.gatherPointModelTable.Get(viewData.viewID); modelView = ResourceUtility.Realizes(loadObject.loadedObject, _transform, -1); } if (!string.IsNullOrEmpty(viewData.gatherEffectName)) { gatherEffect = EffectManager.GetEffect(viewData.gatherEffectName, _transform); } if (viewData.colRadius > 0f) { SphereCollider val = this.get_gameObject().AddComponent <SphereCollider>(); val.set_center(new Vector3(0f, 0f, 0f)); val.set_radius(viewData.colRadius); } if (MonoBehaviourSingleton <StageObjectManager> .IsValid()) { self = MonoBehaviourSingleton <StageObjectManager> .I.self; } CheckGather(); } }
public ItemDetailToFieldData[] GetFieldTableFromItemID(uint item_id, out bool find_unknown_field, bool isExcludeNotPlayable = false) { find_unknown_field = false; if (itemToFieldTable == null) { return(null); } UIntKeyTable <ItemToFieldData> uIntKeyTable = itemToFieldTable.Get(item_id); if (uIntKeyTable == null) { return(null); } bool temp_find_unknown = false; List <ItemDetailToFieldData> list = new List <ItemDetailToFieldData>(); List <uint> icon_id_list = new List <uint>(); uIntKeyTable.ForEach(delegate(ItemToFieldData data) { if (data.enemyId != null && data.enemyId.Length != 0) { FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(data.fieldId); if (fieldMapData != null) { if (IsOpenMap(fieldMapData)) { if (data.enemyId[0] != 0) { list.Add(new ItemDetailToFieldEnemyData(fieldMapData, data.enemyId)); } int i = 0; for (int num = data.pointId.Length; i < num; i++) { if (data.pointId[i] != 0) { FieldMapTable.GatherPointTableData gatherPointData = Singleton <FieldMapTable> .I.GetGatherPointData(data.pointId[i]); if (gatherPointData != null) { FieldMapTable.GatherPointViewTableData gatherPointViewData = Singleton <FieldMapTable> .I.GetGatherPointViewData(gatherPointData.viewID); if (gatherPointViewData != null && gatherPointViewData.iconID != 0 && icon_id_list.IndexOf(gatherPointViewData.iconID) < 0 && (!isExcludeNotPlayable || IsPlayableField(fieldMapData))) { icon_id_list.Add(gatherPointViewData.iconID); list.Add(new ItemDetailToFieldPointData(fieldMapData, data.pointId[i], gatherPointData, gatherPointViewData)); } } } } } else { temp_find_unknown = true; } } } }); find_unknown_field = temp_find_unknown; if (list.Count == 0) { return(null); } return(list.ToArray()); }