This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Mathematics; | |
using UnityEngine; | |
[NativeContainer] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Nuget Packages | |
// Autofac 4.0.0 | |
// Autofac.Configuration v4.0.0 | |
// Microsoft.Extensions.Configuration.Json v1.0.0 | |
// Microsoft.Extensions.Configuration | |
// Microsoft.Extensions.Configuration.FileExtensions | |
// Microsoft.Extensions.Configuration.Abstractions | |
// Need to create a ConfigBuilder from Microsoft.Extensions.Configuration | |
// This code replaces the current Autofac code in PhotonApplication.cs in Setup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using StackExchange.Redis; | |
namespace CitySurvival.Redis | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class InRegion extends Feature implements Tickable { | |
/* | |
* Marking something as @RegionEvent will make this method | |
* fire everytime the event Type (in this case PlayerChatEvent) is | |
* fired by Spout. Each Features events are parsed on loadup and | |
* automaticly registered with Spout's EventManager. | |
*/ | |
@RegionEvent | |
public void executeIt(PlayerChatEvent event, EventRegion region) { | |
chatEvent.getPlayer().sendMessage("You Chatted in " + region.getName()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WHHieghtMapGenerator implements WorldGenerator { | |
private BufferedImage worldImage; | |
public WHHieghtMapGenerator(String imagefile) { | |
try { | |
URL url = getClass().getResource("/" + imagefile); | |
worldImage = ImageIO.read(url); | |
} catch (IOException ex) { | |
Spout.getLogger().log(Level.SEVERE, ex.getMessage(), ex); |