コード例 #1
0
ファイル: Util.cs プロジェクト: Pathoschild/smapi-mod-dump
        public static void SpawnJunimoAtHut(JunimoHut hut)
        {
            // I don't know why we're multiplying by 64 here
            var pos = new Vector2((float)hut.tileX.Value + 1, (float)hut.tileY.Value + 1) * 64f + new Vector2(0.0f, 32f);

            SpawnJunimoAtPosition(Game1.getFarm(), pos, hut, hut.getUnusedJunimoNumber());
        }
コード例 #2
0
ファイル: Util.cs プロジェクト: somnomania/smapi-mod-dump
        public static void SpawnJunimoAtHut(JunimoHut hut)
        {
            Vector2 pos = new Vector2((float)hut.tileX.Value + 1, (float)hut.tileY.Value + 1) * 64f + new Vector2(0.0f, 32f);

            SpawnJunimoAtPosition(pos, hut, hut.getUnusedJunimoNumber());
        }