-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWorldTile.cs
More file actions
55 lines (36 loc) · 1.08 KB
/
WorldTile.cs
File metadata and controls
55 lines (36 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using OdinSerializer;
using UnityEngine;
using UnityEngine.Tilemaps;
namespace AepsLabs.TileManager {
/// <summary>
/// This is an individual tile being represented here.
/// </summary>
public class WorldTile {
[OdinSerialize]
public Tile Tile;
[OdinSerialize]
public string TileSprite { get; set; } //Path to the sprite on the filesystem
public string SpriteName;
[OdinSerialize]
public Color32 Color { get; set; }
//We might not care about this mofo
[OdinSerialize]
public Tile.ColliderType ColliderType;
[OdinSerialize]
public Vector3Int position;
[OdinSerialize]
public Vector3 worldPosition;
[OdinSerialize]
public Vector3 rotation;
[OdinSerialize]
public Vector3 scale;
// [OdinSerialize]
// public TileBase TileBase { get; set; }
//
// [OdinSerialize]
// public Tilemap TilemapMember { get; set; }
[OdinSerialize]
public string Name { get; set; }
}
}