Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dymanoid/RealTime
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.16.3
Choose a base ref
...
head repository: dymanoid/RealTime
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Sep 6, 2018

  1. Copy the full SHA
    a225365 View commit details

Commits on Sep 7, 2018

  1. Copy the full SHA
    be2364c View commit details
  2. Copy the full SHA
    e0490f3 View commit details

Commits on Oct 25, 2018

  1. Copy the full SHA
    8024aa9 View commit details

Commits on Oct 28, 2018

  1. Implement workaround for crime growth in inactive industry buildings

    This is actually caused by a bug in the CO's code
    dymanoid committed Oct 28, 2018
    Copy the full SHA
    5d621b4 View commit details
  2. Copy the full SHA
    02d2402 View commit details
  3. Copy the full SHA
    b2447ad View commit details
  4. Update StyleCop.Analyzers

    dymanoid committed Oct 28, 2018
    Copy the full SHA
    a3e6026 View commit details
  5. Copy the full SHA
    a6f8c9e View commit details
  6. Copy the full SHA
    a91aff2 View commit details
  7. Copy the full SHA
    3a5c9ca View commit details
  8. Copy the full SHA
    e7fffc3 View commit details

Commits on Nov 5, 2018

  1. Update es.xml

    DalveenLeandor authored Nov 5, 2018
    Copy the full SHA
    b871665 View commit details

Commits on Nov 6, 2018

  1. Merge pull request #189 from DalveenLeandor/patch-9

    Updated ES localization for Industries DLC
    dymanoid authored Nov 6, 2018
    Copy the full SHA
    274a18c View commit details

Commits on Feb 10, 2019

  1. Copy the full SHA
    2974c22 View commit details
  2. Copy the full SHA
    39483d8 View commit details
  3. Update Japanese translation ja.xml (#193)

    Updated the Japanese translation.
    mzch authored and dymanoid committed Feb 10, 2019
    Copy the full SHA
    d652c15 View commit details
  4. Copy the full SHA
    db0cf73 View commit details
  5. Copy the full SHA
    9719d4d View commit details
  6. Update pt.xml

    Updates to last strings
    PredatorianBR authored Feb 10, 2019
    Copy the full SHA
    e9602f6 View commit details

Commits on Feb 25, 2019

  1. Copy the full SHA
    45b8a6c View commit details
  2. Merge pull request #199 from PredatorianBR/patch-2

    Update pt.xml
    dymanoid authored Feb 25, 2019
    Copy the full SHA
    ab58b4e View commit details

Commits on May 3, 2019

  1. Copy the full SHA
    48a2204 View commit details
  2. Copy the full SHA
    62233e8 View commit details
  3. Copy the full SHA
    57d7627 View commit details
  4. Copy the full SHA
    a152719 View commit details

Commits on May 11, 2019

  1. Copy the full SHA
    f242afc View commit details
  2. Copy the full SHA
    82ed4c5 View commit details

Commits on May 12, 2019

  1. Copy the full SHA
    5f02f16 View commit details

Commits on May 18, 2019

  1. Copy the full SHA
    52c6a35 View commit details
  2. Improve code style

    dymanoid committed May 18, 2019
    Copy the full SHA
    e0ea92f View commit details

Commits on May 19, 2019

  1. Copy the full SHA
    1e7a107 View commit details
  2. Copy the full SHA
    f98ae2c View commit details
  3. Copy the full SHA
    5c6b1d4 View commit details
  4. Copy the full SHA
    c41935a View commit details
  5. Copy the full SHA
    c7b5834 View commit details
  6. Copy the full SHA
    42f16ff View commit details
  7. Copy the full SHA
    325dba7 View commit details
  8. Copy the full SHA
    8e3575f View commit details
  9. Copy the full SHA
    a68089b View commit details
  10. Copy the full SHA
    f7f4dca View commit details
  11. Copy the full SHA
    0a0c94a View commit details
  12. Update localization

    dymanoid committed May 19, 2019
    Copy the full SHA
    1926039 View commit details
  13. Copy the full SHA
    85b25f0 View commit details
  14. Copy the full SHA
    63f8be7 View commit details

Commits on May 21, 2019

  1. Copy the full SHA
    ddd8529 View commit details
  2. Fix invalid method signature

    dymanoid committed May 21, 2019
    Copy the full SHA
    eb301be View commit details
  3. Update README.md

    dymanoid authored May 21, 2019
    Copy the full SHA
    aa2a762 View commit details

Commits on May 24, 2019

  1. Update LICENSE

    dymanoid authored May 24, 2019
    Copy the full SHA
    70a720b View commit details
  2. Remove issue templates

    dymanoid authored May 24, 2019
    Copy the full SHA
    f41a279 View commit details
Showing with 4,188 additions and 2,432 deletions.
  1. +0 −18 .github/ISSUE_TEMPLATE/bug_report.md
  2. +0 −8 .github/ISSUE_TEMPLATE/feature_request.md
  3. +33 −0 .github/workflows/pr.yml
  4. +18 −0 .github/workflows/translations.yml
  5. +0 −3 .gitmodules
  6. +1 −1 LICENSE
  7. +3 −1 README.md
  8. +50 −0 env/xmltools.ps1
  9. +389 −0 src/.editorconfig
  10. +0 −660 src/BuildEnvironment/RealTime.ruleset
  11. +0 −14 src/BuildEnvironment/stylecop.json
  12. +21 −0 src/Directory.Build.props
  13. +2 −0 src/GitVersion.yml
  14. +26 −26 src/RealTime.sln
  15. +12 −1 src/RealTime/Config/RealTimeConfig.cs
  16. +12 −12 src/RealTime/Core/Compatibility.cs
  17. +0 −30 src/RealTime/Core/ModIds.cs
  18. +2 −8 src/RealTime/Core/RealTimeBenchmark.cs
  19. +78 −61 src/RealTime/Core/RealTimeCore.cs
  20. +6 −8 src/RealTime/Core/RealTimeMod.cs
  21. +57 −0 src/RealTime/Core/WorkshopMods.cs
  22. +1 −1 src/RealTime/CustomAI/CitizenSchedule.cs
  23. +2 −2 src/RealTime/CustomAI/CitizenScheduleStorage.cs
  24. +11 −9 src/RealTime/CustomAI/Constants.cs
  25. +29 −0 src/RealTime/CustomAI/INewCitizenBehavior.cs
  26. +128 −0 src/RealTime/CustomAI/NewCitizenBehavior.cs
  27. +99 −32 src/RealTime/CustomAI/RealTimeBuildingAI.cs
  28. +17 −19 src/RealTime/CustomAI/RealTimeHumanAIBase.cs
  29. +31 −17 src/RealTime/CustomAI/RealTimeResidentAI.Common.cs
  30. +9 −5 src/RealTime/CustomAI/RealTimeResidentAI.Home.cs
  31. +2 −2 src/RealTime/CustomAI/RealTimeResidentAI.Moving.cs
  32. +10 −4 src/RealTime/CustomAI/RealTimeResidentAI.SchoolWork.cs
  33. +48 −15 src/RealTime/CustomAI/RealTimeResidentAI.Visit.cs
  34. +5 −3 src/RealTime/CustomAI/RealTimeResidentAI.cs
  35. +8 −15 src/RealTime/CustomAI/RealTimeTouristAI.cs
  36. +5 −14 src/RealTime/CustomAI/SpareTimeBehavior.cs
  37. +17 −7 src/RealTime/CustomAI/TravelBehavior.cs
  38. +2 −2 src/RealTime/CustomAI/WeatherInfo.cs
  39. +22 −8 src/RealTime/CustomAI/WorkBehavior.cs
  40. +6 −4 src/RealTime/Events/CityEventBase.cs
  41. +62 −0 src/RealTime/Events/EventColor.cs
  42. +5 −0 src/RealTime/Events/ICityEvent.cs
  43. +6 −8 src/RealTime/Events/IRealTimeEventManager.cs
  44. +17 −19 src/RealTime/Events/RealTimeCityEvent.cs
  45. +227 −139 src/RealTime/Events/RealTimeEventManager.cs
  46. +0 −1 src/RealTime/Events/Storage/CityEventTemplate.cs
  47. +3 −6 src/RealTime/Events/Storage/CityEventsLoader.cs
  48. +12 −10 src/RealTime/Events/VanillaEvent.cs
  49. +39 −30 src/RealTime/Events/VanillaEvents.cs
  50. +162 −64 src/RealTime/GameConnection/BuildingManagerConnection.cs
  51. +42 −99 src/RealTime/GameConnection/CitizenConnection.cs
  52. +22 −30 src/RealTime/GameConnection/CitizenManagerConnection.cs
  53. +93 −21 src/RealTime/GameConnection/EventManagerConnection.cs
  54. +3 −11 src/RealTime/GameConnection/GameRandomizer.cs
  55. +59 −6 src/RealTime/GameConnection/IBuildingManagerConnection.cs
  56. +11 −1 src/RealTime/GameConnection/ICitizenConnection.cs
  57. +6 −0 src/RealTime/GameConnection/ICitizenManagerConnection.cs
  58. +15 −7 src/RealTime/GameConnection/IEventManagerConnection.cs
  59. +119 −51 src/RealTime/GameConnection/Patches/{BuildingAIPatches.cs → BuildingAIPatch.cs}
  60. +88 −0 src/RealTime/GameConnection/Patches/CitizenManagerPatch.cs
  61. +6 −11 src/RealTime/GameConnection/Patches/OutsideConnectionAIPatch.cs
  62. +4 −11 src/RealTime/GameConnection/Patches/{ParkPatches.cs → ParkPatch.cs}
  63. +47 −61 src/RealTime/GameConnection/Patches/ResidentAIPatch.cs
  64. +24 −26 src/RealTime/GameConnection/Patches/TouristAIPatch.cs
  65. +15 −7 src/RealTime/GameConnection/Patches/TransferManagerPatch.cs
  66. +19 −25 src/RealTime/GameConnection/Patches/{UIGraphPatches.cs → UIGraphPatch.cs}
  67. +3 −5 src/RealTime/GameConnection/Patches/WeatherManagerPatch.cs
  68. +11 −6 src/RealTime/GameConnection/Patches/{WorldInfoPanelPatches.cs → WorldInfoPanelPatch.cs}
  69. +19 −1 src/RealTime/GameConnection/ResidentAIConnection.cs
  70. +1 −4 src/RealTime/GameConnection/ToolManagerConnection.cs
  71. +4 −3 src/RealTime/GameConnection/TouristAIConnection.cs
  72. +1 −1 src/RealTime/GameConnection/TransferManagerConnection.cs
  73. +49 −0 src/RealTime/GameConnection/VanillaEventInfo.cs
  74. +5 −9 src/RealTime/GameConnection/WeatherManagerConnection.cs
  75. +30 −0 src/RealTime/IReadOnlyList.cs
  76. +9 −0 src/RealTime/Localization/TranslationKeys.cs
  77. +242 −0 src/RealTime/Localization/Translations/bg.xml
  78. +51 −3 src/RealTime/Localization/Translations/de.xml
  79. +55 −7 src/RealTime/Localization/Translations/en.xml
  80. +49 −0 src/RealTime/Localization/Translations/es.xml
  81. +171 −123 src/RealTime/Localization/Translations/fr.xml
  82. +171 −8 src/RealTime/Localization/Translations/it.xml
  83. +243 −0 src/RealTime/Localization/Translations/ja.xml
  84. +94 −45 src/RealTime/Localization/Translations/ko.xml
  85. +50 −1 src/RealTime/Localization/Translations/pl.xml
  86. +50 −1 src/RealTime/Localization/Translations/pt.xml
  87. +51 −3 src/RealTime/Localization/Translations/ru.xml
  88. +94 −46 src/RealTime/Localization/Translations/zh.xml
  89. +0 −20 src/RealTime/Properties/AssemblyInfo.cs
  90. +48 −0 src/RealTime/ReadOnlyList.cs
  91. +36 −225 src/RealTime/RealTime.csproj
  92. +4 −10 src/RealTime/Simulation/AwakeSleepSimulation.cs
  93. +3 −6 src/RealTime/Simulation/CitizenProcessor.cs
  94. +4 −4 src/RealTime/Simulation/DayTimeCalculator.cs
  95. +3 −9 src/RealTime/Simulation/SimulationHandler.cs
  96. +42 −14 src/RealTime/Simulation/Statistics.cs
  97. +9 −15 src/RealTime/Simulation/TimeAdjustment.cs
  98. +4 −4 src/RealTime/Simulation/TimeControlCompatibility.cs
  99. +13 −24 src/RealTime/UI/ConfigUI.cs
  100. +115 −0 src/RealTime/UI/CustomCampusWorldInfoPanel.cs
  101. +139 −49 src/RealTime/UI/CustomTimeBar.cs
  102. +4 −2 src/RealTime/UI/CustomVehicleInfoPanel.cs
  103. +4 −10 src/RealTime/UI/DateTooltipBehavior.cs
  104. +3 −6 src/RealTime/UI/Notification.cs
  105. +4 −4 src/RealTime/UI/RealTimeInfoPanelBase.cs
  106. +1 −4 src/RealTime/UI/RealTimeUIDateTimeWrapper.cs
  107. +0 −5 src/RealTime/packages.config
  108. +0 −17 src/RealTimeTests/Properties/AssemblyInfo.cs
  109. +19 −76 src/RealTimeTests/RealTimeTests.csproj
  110. +0 −7 src/RealTimeTests/packages.config
  111. +0 −1 src/SkyTools
  112. +12 −0 src/stylecop.json
18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Pull Request Check

on:
pull_request:
branches: [master]

jobs:
build:
name: Build solution
if: github.actor == 'dymanoid'

runs-on: windows-latest

steps:
- name: Get sources
uses: actions/checkout@v1
with:
submodules: true

- name: Setup MSBuild environment
uses: microsoft/setup-msbuild@v1.0.0

- name: Get referenced binaries
uses: actions/checkout@v1
with:
repository: dymanoid/CitiesSkylinesBinaries
ref: refs/heads/master
path: binaries
token: ${{ secrets.GITHUB_ACTIONS_PAT }}

- name: Build solution
working-directory: src
run: msbuild RealTime.sln /nologo /m /verbosity:minimal /restore /p:Configuration=Release /p:CitiesSkylinesBinaries="$env:GITHUB_WORKSPACE\..\binaries\"
18 changes: 18 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: XML Translations Check

on:
pull_request:
branches: [master]
paths: ['src/RealTime/Localization/Translations/**']

jobs:
check-xml:
name: Check XML localization files

runs-on: windows-latest

steps:
- uses: actions/checkout@v1

- name: Validate XML files
run: ./env/xmltools.ps1 ./src/RealTime/Localization/Translations
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 dymanoid
Copyright (c) 2018-2019 dymanoid

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Real Time
# Real Time [![Steam Downloads](https://img.shields.io/steam/downloads/1420955187.svg?label=Steam%20downloads&logo=steam)](https://steamcommunity.com/sharedfiles/filedetails/?id=1420955187)

A mod for the Cities: Skylines game. Adjusts the time flow in the game to make it more real.
**Real Time** makes the game way more real and more challenging!
@@ -8,6 +8,8 @@ A mod for the Cities: Skylines game. Adjusts the time flow in the game to make i

- The game time flows slowly. The time speed can be configured for the daytime and for the night time separately.
- The sunrise and the sunset times depend on the map location and on the day of year.
- Citizens grow up slower. 1 in-game day equals to 1 citizen's year. Citizens live up to 85 years, so with Real Time - up to 85 in-game days.
- Slower aging changes the education system: a child needs 5 in-game days to graduate from an elementary school and become a teen. A teen needs 10 in-game days to graduate from a high school and become a young adult. Finally, a student needs another 5 in-game days to get the highest education level.

### Work...

50 changes: 50 additions & 0 deletions env/xmltools.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
function Test-XmlFile {

[CmdletBinding()]
param (
[parameter(mandatory=$true)][ValidateNotNullorEmpty()][string]$xmlFilePath
)

$xml = New-Object System.Xml.XmlDocument
try {
$xml.Load((Get-ChildItem -Path $xmlFilePath).FullName)
Write-Host "XML file is valid: $xmlFilePath"
return $true
}
catch [System.Xml.XmlException] {
Write-Error "XML file is invalid: $xmlFilePath --> $($_.toString())"
return $false
}
}

function Test-XmlFiles {

[CmdletBinding()]
param (
[parameter(mandatory=$true)][ValidateNotNullorEmpty()][string]$filesPath
)

if (!(Test-Path -Path $filesPath)){
throw "$filesPath is not valid. Please provide a valid path"
}

$files = Get-ChildItem -Path $filesPath -Recurse -Include *.xml
$result = $true

foreach ($f in $files) {
$fileResult = Test-XmlFile $f.FullName
if (!$fileResult) {
$result = $false
}
}

return $result
}

$scriptResult = Test-XmlFiles $args[0]
if ($scriptResult) {
exit 0
}
else {
exit 1
}
Loading