This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem: | |
Concept of entities with volume that define different characteristics which need | |
to be volume tested against for various gamelogic purposes. Previous iteration | |
was a grid implementation where these characteristics were represented as | |
bitflags, each `int` a gamelogic concept to be tested against. E.g. Pathing: | |
[None, Impassable, Occupied, Walkable, Flyable, Vaultable, Climbable, | |
Interactable, Teleporter, Staircase] | |
Any volume placed on the grid would OR added to the grid's characteristics | |
bitmasks of the cells it occupied. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using Sirenix.OdinInspector; | |
using Sirenix.OdinInspector.Editor; | |
using UnityEngine; | |
using TypeCache = UnityEditor.TypeCache; |
OlderNewer