Felix Boucher 43bc2c75f2 work on game scene + fix bugs
problems :

- game scene was not as shown in the GDD
- problem when moving tilemap (the placeholders didn't follow)
- possible to place units outside the game area

solutions :

- try to make the game scene as close to the gdd as possible
- don't move the tilemap : move the camera instead (this keeps the world position of tilemap intact)
- there was a logic bug in the DraggablePlaceholder. It ain't anymore
2023-07-11 15:52:43 -04:00

24 lines
536 B
C#

using System.Collections.Generic;
using UnityEngine;
public interface ILevelObject
{
public enum ObjectType
{
Tile = 0,
Prefab = 1,
Tilemap = 2,
Other = 3,
}
bool IsCollidable { get; }
string Name { get; }
Vector3 Position { get; }
void LevelUpdate();
void LevelStart();
void LevelDestroy();
bool Equals(ILevelObject other);
Dictionary<string, object> ToDictionary();
void LoadDictionary(Dictionary<string, object> dict);
void RemoveFromLevel();
}