Rename 'instance' to 'context'

This commit is contained in:
Justin van der Leij 2018-11-26 12:58:41 +01:00
parent 89a3a7fa8a
commit 26bd0ef937
8 changed files with 72 additions and 72 deletions

View file

@ -1,11 +1,11 @@
local Concord = require("lib")
local Concord = require("src")
local Entity = Concord.entity
local Component = Concord.component
local System = Concord.system
local Assemblage = Concord.assemblage
local Game = Concord.instance()
local Game = Concord.context()
local Legs = Component(function(e, legCount)
e.legCount = legCount or 0

View file

@ -1,6 +1,6 @@
local PATH = (...):gsub('%.[^%.]+$', '')
local Concord = require("lib")
local Concord = require("src")
local C = require(PATH..".src.components")
local S = require(PATH..".src.systems")

View file

@ -1,10 +1,10 @@
local Concord = require("lib")
local Concord = require("src")
local Entity = Concord.entity
local Component = Concord.component
local System = Concord.system
local Game = Concord.instance()
local Game = Concord.context()
local Position = Component(function(e, x, y)
e.x = x