Beispiel #1
0
        // Token: 0x06000B3E RID: 2878 RVA: 0x000E3EF8 File Offset: 0x000E20F8
        private void addNewFarmer(long id)
        {
            Farmer f = new Farmer(new FarmerSprite(Game1.content.Load <Texture2D>("Characters\\Farmer\\farmer_base")), new Vector2((float)(Game1.tileSize * 10), (float)(Game1.tileSize * 15)), 2, "Max", new List <Item>(), true);

            f.FarmerSprite.setOwner(f);
            f.currentLocation     = Game1.getLocationFromName("BusStop");
            f.uniqueMultiplayerID = id;
            Game1.getLocationFromName(f.currentLocation.name).farmers.Add(f);
            Game1.otherFarmers.Add(id, f);
            MultiplayerUtility.broadcastPlayerIntroduction(id, "Max");
        }