Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 20: Events Structure #29

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Event/EventBase.gd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
extends Resource
class_name EventBase

const EVENTS_CLASSIFICATION: Array[EventBase] = [EventMob.new(""), EventRandom.new(""), EventShop.new(""), EventHeal.new("")]
var EVENTS_CLASSIFICATION: Array[EventBase] = [EventMob.new(), EventRandom.new(), EventShop.new(), EventHeal.new()]
Turtyo marked this conversation as resolved.
Show resolved Hide resolved

var packedScene: String = ""

# Initialize Event
func _init(scene: String) -> void:
packedScene = scene
func _init() -> void:
pass

func _update_event() -> void:
pass
Expand Down
4 changes: 2 additions & 2 deletions Event/EventHeal.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extends EventBase
class_name EventHeal

# @Override
func _init(scene: String) -> void:
super(scene)
func _init() -> void:
pass

# @Override
func _update_event() -> void:
Expand Down
4 changes: 2 additions & 2 deletions Event/EventMob.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extends EventBase
class_name EventMob

# @Override
func _init(scene: String) -> void:
super(scene)
func _init() -> void:
pass

# @Override
func _update_event() -> void:
Expand Down
4 changes: 2 additions & 2 deletions Event/EventRandom.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extends EventBase
class_name EventRandom

# @Override
func _init(scene: String) -> void:
super(scene)
func _init() -> void:
pass

# @Override
func _update_event() -> void:
Expand Down
4 changes: 2 additions & 2 deletions Event/EventShop.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ extends EventBase
class_name EventShop

# @Override
func _init(scene: String) -> void:
super(scene)
func _init() -> void:
pass

# @Override
func _update_event() -> void:
Expand Down
Loading