Exemple #1
0
        public World()
        {
            _instance   = this;
            _calendar   = new Calendar();
            _currentMap = new TileMap(0, 0, 128, 128);

            player                      = new Player();
            player.FirstName            = "Liana";
            player.LastName             = "Shadowfall";
            player.CurrentWorldPosition = new WorldPosition(0, 0);
            player.FacingDirection      = Character.Facing.East;

            _relationshipEngine = new RelationshipEngine();

            _relationshipEngine.LoadCharacters();
            _relationshipEngine.LoadConversations();

            CropSeed    corn       = CropSeed.CreateCorn();
            WorldObject cornObject = new WorldObject()
            {
                item = corn
            };

            _currentMap.PlaceItem(new Position(1, 1), cornObject);

            _calendar.AddTime(Calendar.TimeUnit.Day, 3);
        }