예제 #1
0
        private void onGameStateInitialized()
        {
            Player player = GameLogic.Binder.GameState.Player;

            if (((player.LastSerializationTimestampDuringDeserialization > 0L) && player.passiveProgressUnlocked()) && (this.getElapsedSecondsSince(player.LastSerializationTimestampDuringDeserialization) > App.Binder.ConfigMeta.PASSIVE_COIN_GAIN_CEREMONY_COOLDOWN_SECONDS))
            {
                long numSeconds = MathUtil.Clamp((long)(Service.Binder.ServerTime.GameTime - player.LastSerializationTimestampDuringDeserialization), (long)0L, (long)0x7fffffffffffffffL);
                player.addPassiveProgress(numSeconds);
            }
        }