Ejemplo n.º 1
0
 public void UpdatePlanet(Thing thing)
 {
     PlanetType planetType;
     
     if (thing.type == (ushort) ThingType.Sun)
         planetType = PlanetTypes.GetPlanetType((byte) (Math.Abs(thing.seed % 2) + 4)); //suns!
     else
         planetType = PlanetTypes.GetPlanetType((byte) (Math.Abs(thing.seed % 4))); //planets!
     
     planet.UpdateSprite("Planets", planetType.planetSprite.Id);
 }