Ejemplo n.º 1
0
        public void AcquireIsoObject([NotNull] IsoObject isoObject, [NotNull] CellObject other)
        {
            //IL_0029: Unknown result type (might be due to invalid IL or missing references)
            m_childrenIsoObjects.Add(isoObject);
            other.m_childrenIsoObjects.Remove(isoObject);
            Area area = isoObject.area;
            Area copy = area.GetCopy();

            area.MoveTo(coords);
            parentMap.MoveArea(copy, area);
        }
Ejemplo n.º 2
0
        public void RemoveIsoObject([NotNull] IsoObject isoObject)
        {
            List <IsoObject> childrenIsoObjects = m_childrenIsoObjects;
            int count = childrenIsoObjects.Count;

            for (int i = 0; i < count; i++)
            {
                if (childrenIsoObjects[i] == isoObject)
                {
                    parentMap.RemoveArea(isoObject.area);
                    childrenIsoObjects.RemoveAt(i);
                    return;
                }
            }
            Log.Warning($"Could not find IsoObject '{isoObject}' to remove in cell object named '{this.get_name()}'.", 113, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Maps\\Objects\\CellObject.cs");
        }
Ejemplo n.º 3
0
 public void AcquireIsoObject([NotNull] IsoObject isoObject)
 {
     m_childrenIsoObjects.Add(isoObject);
     parentMap.AddArea(isoObject.area);
 }