Difference between revisions of "Program Code"
From BotF2-Wiki
(→some code) |
(→some code: GalaxyView Hotkeys Definition # (see Hotkeys)) |
||
Line 64: | Line 64: | ||
|- | |- | ||
− | |style=text-align:left|S- | + | |style=text-align:left|S-ClientComp |
− | |style=text-align:center| | + | |style=text-align:center|Views\GalaxyScreen |
− | |style=text-align:center| | + | |style=text-align:center|GalaxyScreenView.cs |
− | |style=text-align:center| | + | |style=text-align:center|GalaxyScreenView() |
|style=text-align:center| | |style=text-align:center| | ||
+ | |style=text-align:left|GalaxyView Hotkeys Definition (see [[Hotkey]]s) | ||
|style=text-align:left| | |style=text-align:left| | ||
|style=text-align:left| | |style=text-align:left| | ||
− | + | ||
|} | |} |
Revision as of 18:49, 5 January 2014
Source is at https://bitbucket.org/mstrobel/BotF2/
Program Code Language: C#
some code
where | Folder | File | Function | empty | Description | Custom1 | Custom2 |
---|---|---|---|---|---|---|---|
S-Core | Universe | Colony.cs | GetProductionOutput(ProductionCategory category) |
see last line, too !
float moraleMod = _morale.CurrentValue / (0.5f * MoraleHelper.MaxValue); baseOutput = (int)(moraleMod * baseOutput);
float moraleMod = _morale.CurrentValue / (0.5f * MoraleHelper.MaxValue); baseOutput = (int)(moraleMod * baseOutput);
|
|||
S-Core | Universe | Colony.cs | planet.HasFoodBonus (OutputModifier) |
if (planet.HasFoodBonus) modifier.Efficiency += 0.15f; |
|||
S-Core | Universe | Colony.cs | planet.HasEnergyBonus (OutputModifier) |
if (planet.HasEnergyBonus) modifier.Efficiency += 0.15f; |
|||
S-ClientComp | Views\GalaxyScreen | GalaxyScreenView.cs | GalaxyScreenView() | GalaxyView Hotkeys Definition (see Hotkeys) |