A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
TilemapGridProperties Class Reference

This script by default will execute on both editor and runtime. More...

Inheritance diagram for TilemapGridProperties:
Inheritance graph
Collaboration diagram for TilemapGridProperties:
Collaboration graph

Private Member Functions

void OnEnable ()
 Only populate in the editor time. Clear the grid property list allowing it to store new values. More...
 
void OnDisable ()
 Only populate in the editor time. Upon disable, it will capture all the details of tilemap and save it to scriptable objects. This is required to ensure that the updated grid properties gameobject gets saved when the game is saved - otherwise they are not saved. More...
 
void UpdateGridProperties ()
 Goes through the tilemap and captures everything on there. More...
 
void Update ()
 

Private Attributes

Tilemap m_Tilemap
 
SO_GridProperties m_GridProperties = null
 
GridBoolProperty m_GridBoolProperty = GridBoolProperty.Diggable
 

Detailed Description

This script by default will execute on both editor and runtime.

Definition at line 9 of file TilemapGridProperties.cs.

Member Function Documentation

◆ OnDisable()

void TilemapGridProperties.OnDisable ( )
inlineprivate

Only populate in the editor time. Upon disable, it will capture all the details of tilemap and save it to scriptable objects. This is required to ensure that the updated grid properties gameobject gets saved when the game is saved - otherwise they are not saved.

Definition at line 37 of file TilemapGridProperties.cs.

Here is the call graph for this function:

◆ OnEnable()

void TilemapGridProperties.OnEnable ( )
inlineprivate

Only populate in the editor time. Clear the grid property list allowing it to store new values.

Definition at line 19 of file TilemapGridProperties.cs.

◆ Update()

void TilemapGridProperties.Update ( )
inlineprivate

Definition at line 81 of file TilemapGridProperties.cs.

◆ UpdateGridProperties()

void TilemapGridProperties.UpdateGridProperties ( )
inlineprivate

Goes through the tilemap and captures everything on there.

Definition at line 53 of file TilemapGridProperties.cs.

Here is the caller graph for this function:

Field Documentation

◆ m_GridBoolProperty

GridBoolProperty TilemapGridProperties.m_GridBoolProperty = GridBoolProperty.Diggable
private

Definition at line 13 of file TilemapGridProperties.cs.

◆ m_GridProperties

SO_GridProperties TilemapGridProperties.m_GridProperties = null
private

Definition at line 12 of file TilemapGridProperties.cs.

◆ m_Tilemap

Tilemap TilemapGridProperties.m_Tilemap
private

Definition at line 11 of file TilemapGridProperties.cs.


The documentation for this class was generated from the following file: