Commit graph

314 commits

Author SHA1 Message Date
Vorspire
d093acfb2e + Make sure #Map_NewEnumerables is defined by default, multiple sources have verified stability.
+ Core housekeeping, converted some for-loops to foreach-loops.

+ Reimplementation of Core.TickCount using only native .NET Stopwatch.
* Stopwatch actually wraps the QueryPerformanceCounter method to get its result and can also be used to determine whether HRT is supported.
- Removed SafeNativeMethods DLLImport for QueryPerformanceCounter.

+ Added Core.GlobalUpdateRange to define a constant standard range used in many calculations throughout RunUO.
* The value '18' in a range context is hard-coded in many places, this new property will eventually be used to replace those usages.
2015-08-22 04:50:05 +01:00
Vorspire
9bae957ccb + Map Updates (4)
* Details in-file: Map.cs
2015-08-21 23:09:49 +01:00
Ravenwolfe
06fa2ab343 Found issue with XMLserialization using local time to serialize instead of UTC. Changed to be consistent with rest of project. 2014-04-13 22:03:06 -05:00
Mark Sturgill
5703f6ab78 comments 2014-03-26 11:45:46 -07:00
Mark Sturgill
5003f7c4a9 add NEWTIMERS and NEWPARENT preprocessor directives to assist third party developers 2014-03-09 17:07:26 -07:00
Mark Sturgill
54aef01c72 (potentially) more portable implementation of double/float serialization for mono 2014-03-07 17:36:28 -07:00
Mark Sturgill
49941a49af typo 2014-03-05 11:49:36 -07:00
Mark Sturgill
83bf81b7ee synchronize Server/Scripts project properties
whitespace/comment changes in Serialization.cs and ScriptCompiler.cs
proper dispose pattern for Listener
remove IDisposable from FileLogger
2014-02-25 14:00:32 -07:00
Mark Sturgill
041c976ddc fix null ref in bounce 2014-02-21 19:04:53 -07:00
Mark Sturgill
0bd09dbeac line ending normalization 2014-02-18 10:23:15 -07:00
Mark Sturgill
1b157e102d set Parent CommandProperty write accesslevel to Developer
unmark Parent property as virtual
2014-02-15 14:54:28 -07:00
Mark Sturgill
2f005966f9 move stuckmenu methods from core mobile to PlayerMobile
take advantage of IEntity/Parent refactor in a few trivial places
2014-02-15 13:52:03 -07:00
Mark Sturgill
12826da7c4 remove ParentEntity and RootParentEntity
Parent and RootParent are now IEntity properties
refactor object arguments to IEntity for parent related methods
branch and version bump to 2.6
2014-02-15 13:21:28 -07:00
Mark Sturgill
91eed1e2ed there is no exact localization match for the legacy container label, but this one is pretty close if someone wanted to use it 2014-02-15 12:28:27 -07:00
Mark Sturgill
e68cfe354f add new visible damage mode Selective to VisibleDamageType enumeration
two new virtual properties ShowVisibleDamage and CanSeeVisibleDamage can be used to control damage visibility
default values for this mode are controlled by the static properties Mobile.DefaultShowVisibleDamage and Mobile.DefaultCanSeeVisibleDamage
2014-02-09 14:38:43 -07:00
Mark Sturgill
cfdd943142 additional edge-case thread safety for RNG buffer filling 2014-02-09 13:02:20 -07:00
Mark Sturgill
a5b7e6c78c Added the command line argument -usehrt to enable high resolution timing on supported platforms (QueryPerformanceCounter)
Timing will fallback to DateTime.UtcNow.Ticks when QPC is unsupported.
2014-02-09 12:10:13 -07:00
Mark Sturgill
473751297d dont call datetime.utcnow for every item during serialization 2014-02-08 13:44:08 -07:00
Mark Sturgill
18bc7b84d9 slight refactor of visible damage 2014-02-06 23:17:23 -07:00
msturgill
6571b05f33 temporary edge-case fix 2014-01-15 14:43:49 -07:00
Mark Sturgill
e15e65033e fix random impl race condition 2013-11-13 21:42:16 -07:00
Mark Sturgill
1fdb2d9a1f update version display and project urls 2013-11-03 10:11:30 -07:00
Mark Sturgill
d18b2254d8 tweak version to 2.5.0 to help with legacy maint in the future 2013-11-02 22:26:20 -07:00
Mark Sturgill
0eeb0c0c31 generic conversions 2013-11-02 21:40:42 -07:00
Mark Sturgill
f566daea30 gargoyle race/body impl from servuo with some modification 2013-11-02 15:37:39 -07:00
Mark Sturgill
cf7bc3043f use CSPRandom with MONO
add MONO comments to RunUO.exe.config
2013-11-02 12:29:43 -07:00
Mark Sturgill
436e8f054a add Deleted property to IEntity
cleanup Map.GetObjectsInRange
additional hashtable -> dictionary conversions
generic timer impl for EffectController
2013-11-02 10:52:08 -07:00
Mark Sturgill
4fccb0c3d3 reduce timer queuing interval to 1ms (from 10ms) to prevent timer stacking with new high resolution timers (tested in production by vorspire) 2013-11-02 01:05:50 -07:00
Mark Sturgill
ad5c172687 mono should not need these fixes anymore 2013-10-30 12:11:45 -07:00
Mark Sturgill
018ef960b0 mono tickcount fix 2013-10-30 11:49:59 -07:00
Mark Sturgill
e67faba4d8 RunUO 2.4 will be the latest release supporting the 2.0 .NET Framework.
Framework_4_0 preprocessors have been removed. ScriptCompiler will set Framework_4_0 as legacy.
2013-10-30 11:28:34 -07:00
Mark Sturgill
aa738007d7 missing enum refactor 2013-10-29 10:45:55 -07:00
Mark Sturgill
cf2544dcea enum tidying 2013-10-27 11:30:24 -07:00
Mark Sturgill
502f3b3b97 cleanup core.tickcount
fix typo in Mobile.cs
2013-10-25 01:24:14 -07:00
Mark Sturgill
5b03ef628e drag effects have the potential to crash SA clients regardless of any location checking 2013-10-23 21:42:33 -07:00
Mark Sturgill
28744d486e misc generic conversions 2013-10-23 09:54:06 -07:00
Mark Sturgill
d567869eb8 begin 2.5 2013-10-22 19:18:58 -07:00
Mark Sturgill
a45c07200d delta queue typo 2013-10-22 15:00:32 -07:00
Mark Sturgill
ed06db12bf more vs nag fixes
x64 solution and projects are necessary for proper vs debugging
2013-10-21 23:15:13 -07:00
Mark Sturgill
75817400fc misc clr nagging/housekeeping 2013-10-21 23:01:44 -07:00
Mark Sturgill
edf716f3cc visual studio updates 2013-10-21 21:04:12 -07:00
Mark Sturgill
0e5292d84d backoff parallelization 2013-10-19 17:08:31 -07:00
Mark Sturgill
3655814e4a more double checked locking 2013-10-17 20:29:23 -07:00
Mark Sturgill
fe1f40f927 parallelization isn't worth it unless we can reasonably estimate our workload before initiating
implement double checked locking
change active solution to x64
map thread-safety
2013-10-17 20:25:11 -07:00
Mark Sturgill
ae8ded4a16 7.0.33.1 support
thread-safety
2013-10-17 01:48:04 -07:00
Mark Sturgill
699fa3bdd8 mono friendly change 2013-10-15 21:56:57 -07:00
Mark Sturgill
530258decb leftovers from last commit 2013-10-15 21:42:30 -07:00
Mark Sturgill
f5f24d3a92 generic enumerable refactor 2013-10-15 21:30:35 -07:00
Mark Sturgill
88488bc616 generic pooled enumerators
guild event bcp
2013-10-15 21:15:59 -07:00
Mark Sturgill
42bdaae3f1 ipooledenumerable tidy 2013-10-15 15:16:11 -07:00