Paul Chote
7c6ec577dc
Rewrite ActorInit queries.
2020-05-28 19:04:53 +02:00
Paul Chote
86f61298e6
Replace ITraitInfo interface with TraitInfo class.
2020-05-21 13:01:04 +02:00
Matthias Mailänder
c5139fb6c2
Remove the hard-coded ban of placing buildings on resources.
2020-03-23 23:48:33 -05:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
tovl
434c46058f
Disallow units idling on service depot.
2020-01-04 16:04:27 +00:00
Paul Chote
0ff078968d
Change IPlaceBuildingDecorationInfo to use annotations.
2019-10-20 23:46:33 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
f6768fe624
Remove legacy editor actor properties plumbing.
2018-12-08 22:53:13 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
Paul Chote
47a470e945
Remove legacy Building plumbing.
2018-11-03 15:09:14 +01:00
Paul Chote
18b84750aa
Reimplement demolition lock using conditions.
2018-11-03 15:09:14 +01:00
Andre Mohren
b86355cda6
Made MapBuildRadius optional for traits who do not require it.
2018-07-25 22:35:46 +01:00
Michael Silber
6b24271a17
Pass ActorInfo through building-placement-validation code.
2018-03-21 12:53:50 +01:00
reaperrr
d643d2ebda
Remove legacy .aud sound defaults from Common traits
...
While C&C-specific sound defaults might be acceptable for C&C-specific traits like MadTank and Chronoshiftable, for common, generic traits like Building they no longer are.
2018-03-09 18:58:49 +01:00
Mustafa Alperen Seki
c976bb1d7b
Make BaseProvider PausableConditional
2018-03-08 17:19:23 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
373aaee004
Use World.(AddTo|RemoveFrom)Maps in Immobile/Building.
2017-12-11 19:45:07 +01:00
Paul Chote
9e18ec7314
Simplify ScreenMap bounds checking.
2017-12-11 19:45:07 +01:00
RoosterDragon
62ab6ae6f1
OccupiedCells and TargetableCells must return arrays, not just enumerables.
...
This allows callers to efficiently enumerate these returned collections without the allocation and overhead imposed by the IEnumerable interface. All implementations were already returning arrays, so this only required a signature change.
2017-12-07 20:39:30 +02:00
reaperrr
be290cfabd
Split Actor.Bounds into RenderBounds and SelectableBounds
...
Additionally, internally renamed VisualBounds to SelectionOverlayBounds to avoid confusion with RenderBounds.
This step was necessary to prevent actors with selectable area smaller than their graphics to be removed too early from ScreenMap even though part of the graphics should still be visible.
RA cruisers were a prime example, but to a lesser extent several other actors were affected as well.
This separation also serves as preparation to determine the final RenderBounds from multiple source bounds later, to fix the remaining ScreenMap issues (building 'bibs', aircraft shadows).
2017-11-21 01:00:09 +02:00
Mustafa Alperen Seki
ca1448c7ba
Add Support of Types for GivesBuildableArea
2017-11-20 16:17:13 +02:00
kosti1
6a750d7a65
Added buildradius checkbox to lobby options
2017-11-01 18:18:41 +01:00
reaperrr
8533debc44
Require explicit INotifyAddedToWorld and INotifyRemovedFromWorld
2017-10-07 10:17:11 +02:00
reaperrr
0ce3c113e1
Require explicit ITargetableCells
2017-10-07 10:17:11 +02:00
abcdefg30
ed598d2ab4
Make it possible to disable adjacency
2017-09-13 22:13:49 +02:00
abcdefg30
71f2026b32
Remove the hardcoded cloak reference from activities
2017-09-13 21:18:21 +02:00
Paul Chote
0f6dda3f5f
Calculate building placement offsets in screen space.
2017-09-10 18:26:54 +02:00
abcdefg30
5cfb5aaf2d
Rework the addition and removal of building influence
2017-08-31 17:36:22 +02:00
reaperrr
5bdb7bd689
Add OccupiedUntargetable FootprintCellType
...
For cells that are occupied & unpassable, but should be ignored by HitShape.UseOccupiedCellsOffsets.
2017-07-13 17:43:41 +02:00
reaperrr
46dc827d46
Refactor footprint cell lookups and move them to Building
...
Removing FootprintUtils happens in the next commit for better
reviewability.
2017-07-13 17:43:41 +02:00
reaperrr
3200f4fb0f
Remove bib-related hacks from Building and FootprintUtils
2017-07-06 01:42:55 +02:00
reaperrr
9b137afa6d
Add ITargetableCells interface
2017-07-06 01:42:55 +02:00
reaperrr
69aa4f5962
Building style fixes for better readability
2017-07-06 01:42:55 +02:00
reaperrr
82758a8bef
Add TargetableOffsets to HitShape
...
And remove ITargetablePositions from Building.
Also, added UseFootprintOffsets to replicate the old Building behavior for easier setup of TargetablePositions for buildings.
2017-06-04 00:07:08 +02:00
evgeniysergeev
c06df1ed21
make IsCloseEnoughToBase function virtual
2017-05-29 11:50:56 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
9ddfdc45b3
Introduce SoundType enum.
2016-12-23 11:34:23 +00:00
reaperrr
22dcb1c66f
Move INotifySold to Common and require explicit implementation
2016-10-20 19:02:28 +02:00
Paul Chote
11805bb567
Rename and tweak post-render interfaces.
2016-08-22 17:40:05 +01:00
evgeniysergeev
e83ffbec1c
add RemoveSmudge function and trait
2016-07-05 12:03:04 +03:00
Paul Chote
e3bc73a168
Prepare ally build adjacency code for trait-defined lobby options.
2016-05-14 18:54:44 +01:00
reaperrr
fd5a597966
Move Render traits to Traits.Render namespace
2016-04-15 20:43:04 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
Oliver Brakmann
4b02134b2d
Merge pull request #10594 from abcdefg30/sizeD2k
...
Fix a crash in d2k caused by empty bounds
2016-01-26 19:30:30 +01:00
abcdefg30
d087a16042
Fix a crash in d2k caused by empty bounds
...
This adds respective checks to Building.cs.
2016-01-25 16:44:17 +01:00
teees
65e1e301f4
Added Gates
...
FIXUP: account for full gate footprint when updating neighbours.
FIXUP: gate-wall connection adjacency yaml.
2016-01-25 09:14:00 +01:00
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
Pavel Penev
22678221d0
Fix an oversight regarding building unlocking
2015-12-14 04:18:57 +02:00