Removed entity management from Game, refactored Map to MapLoader and added Map to manage world

This commit is contained in:
2019-09-27 14:30:23 -05:00
parent 1bfc6e6929
commit b091a489af
20 changed files with 260 additions and 239 deletions

View File

@@ -1,9 +1,9 @@
class IMICFPS
class EventHandler
class Event
attr_reader :entity, :context, :map, :player
def initialize(entity:, context: nil, map: $window.current_state, player: nil)
@entity, @context, @map, @player = entity, context, map, player
attr_reader :entity, :context
def initialize(entity:, context: nil)
@entity, @context = entity, context
end
end
end