Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

GridManager GridRange

Syadeu edited this page Aug 31, 2021 · 5 revisions

# Deleted at 2.0.0
Namespace: Syadeu.Mono

이 객체는 더 이상 사용되지 않습니다. Syadeu.Presentation.Map.GridSystem 으로 모든 기능이 이관되었습니다.

public struct GridRange

검색한 GridCell 들을 담고있는 Native Container 입니다.

Inheritance: Object -> GridRange

Overview

Remarks

Description

Examples

아래는 #define CORESYSTEM_UNSAFE 되었을 때 사용 방법입니다.

#define CORESYSTEM_UNSAFE

public void GridRangeTest()
{
    int _gridIdx = GridManager.CreateGrid(bounds, 1, false);
    ref GridManager.Grid grid = ref GridManager.GetGrid(in _gridIdx);
    
    GridManager.GridRange _range = grid.GetRange(0, 5);
    unsafe
    {
        for (int i = 0; i < _range.Length; i++)
        {
            Debug.Log((*_range[i]).Location);
        }
    }
}

아래는 일반적인 사용 방법입니다.

public void GridRangeTest()
{
    int _gridIdx = GridManager.CreateGrid(bounds, 1, false);
    ref GridManager.Grid grid = ref GridManager.GetGrid(in _gridIdx);
    
    GridManager.GridRange _range = grid.GetRange(0, 5);
    for (int i = 0; i < _range.Length; i++)
    {
        Debug.Log(_range[i].Location);
    }
}

Public Methods

Name Description
Dispose 메모리에서 방출합니다.
- Interfaces
- Enums
- Attributes
- Abstract Classes
- Classes
- Structs
- Exceptions

- Syadeu.Presentation
- Syadeu.Collections
- Syadeu.Collections.Converters
- Syadeu.Collections.Proxy
- Syadeu.Presentation.Proxy
- Syadeu.Presentation.Internal
- Syadeu.Presentation.Entities
- Syadeu.Presentation.Attributes
- Syadeu.Presentation.Components
- Syadeu.Presentation.Actions
- Syadeu.Presentation.Render
  • CameraData
  • CameraFrustum
  • IntersectionType
  • RenderSystem
  • WorldCanvasSystem
- Syadeu.Presentation.Data
  • DataContainerSystem
  • DataObjectBase
  • EntityAnimationClipEventData
- Syadeu.Presentation.Events

Clone this wiki locally