public EachAi(NpcAi generator, GameObject npc) { _generator = generator; _npc = npc; _random = new Random(_npc.GetHashCode()); }
internal ServerContext(Listener listener, DataManager data, Coroutine coroutine) { _listener = listener; _data = data; _coroutine = coroutine; _npcAi = new NpcAi(this); LoadObjectsFromStore(); if (_gameObjects.Count > 0) { _objectId = _gameObjects.Values.Select(e => e.ObjectId).Max() + 1; } }