mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Removed entity management from Game, refactored Map to MapLoader and added Map to manage world
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user