mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-22 04:34:19 +00:00
✨ Create Alliance behaviour to mark entity factions
This commit is contained in:
parent
1c984e23c3
commit
27e2c9e875
2 changed files with 16 additions and 0 deletions
10
src/entities/behaviours/Alliance.gd
Normal file
10
src/entities/behaviours/Alliance.gd
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
extends Node
|
||||||
|
|
||||||
|
|
||||||
|
enum Alliance {
|
||||||
|
ENEMY = -1,
|
||||||
|
NONE = 0,
|
||||||
|
PLAYER = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export(Alliance) var alliance: int
|
6
src/entities/behaviours/Alliance.tscn
Normal file
6
src/entities/behaviours/Alliance.tscn
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[gd_scene load_steps=2 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://src/entities/behaviours/Alliance.gd" type="Script" id=1]
|
||||||
|
|
||||||
|
[node name="Alliance" type="Node"]
|
||||||
|
script = ExtResource( 1 )
|
Loading…
Reference in a new issue