Example #1
0
    public static InstalledObject CreateNewObject(int id, Tile baseTile)
    {
        InstalledObject obj = new InstalledObject(objs [id], baseTile);

        if (interactionDictionary.ContainsKey(id))
        {
            obj.InitInteraction(interactionDictionary[id]);
        }

        if (spawnAddDictionary.ContainsKey(id))
        {
            obj.InitSpawnAdditional(spawnAddDictionary[id]);
        }

        if (possJobsDictionary.ContainsKey(id))
        {
            obj.InitPossibleJobs(possJobsDictionary[id]);
        }

        return(obj);
    }