home *** CD-ROM | disk | FTP | other *** search
- public class Weather extends Codex {
- public CodexThing weatherThing = new CodexThing(((Codex)this).GetClassThing());
- public CodexThing weatherEffect;
- public int weatherEffectGUID;
- public String weatherEffectName;
-
- public void beginscene(int clientGuid, int captureID) {
- this.ChangeWeather();
- }
-
- public void weatherchanged() {
- this.ChangeWeather();
- }
-
- public void ChangeWeather() {
- if (this.weatherEffectGUID != 0) {
- this.weatherEffect = new CodexThing(this.weatherEffectGUID);
- this.weatherEffect.Remove();
- this.weatherEffectGUID = 0;
- }
-
- this.weatherEffectName = Codex.GetWeatherEffect();
- if (!this.weatherEffectName.equalsIgnoreCase("")) {
- this.weatherEffectGUID = this.weatherThing.SpawnThing(this.weatherEffectName);
- }
-
- }
- }
-