Skip to content

Commit

Permalink
Adds several more world unimplemented vars, defines
Browse files Browse the repository at this point in the history
This should improve compile-ability, especially movement_mode.

EDIT: MOVEMENT_MODE macros now start at 0 instead of 1, as per parity
EDIT: Forgot to add cache_lifespan, lol
EDIT: Removing cache_lifespan since it now exists on master apparently
  • Loading branch information
Altoids1 committed Oct 19, 2022
1 parent 16a59d8 commit 707c9c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DMCompiler/DMStandard/Defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@
#define SIDE_MAP 2
#define TILED_ICON_MAP 32768

//world.movement_mode
#define LEGACY_MOVEMENT_MODE 0
#define TILE_MOVEMENT_MODE 1
#define PIXEL_MOVEMENT_MODE 2

//generator() distributions
#define UNIFORM_RAND 0
#define NORMAL_RAND 1
Expand Down
8 changes: 8 additions & 0 deletions DMCompiler/DMStandard/Types/World.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
var/cpu = 0 as opendream_unimplemented
var/fps = null
var/tick_usage
var/loop_checks = 0 as opendream_unimplemented

var/maxx = 0
var/maxy = 0
var/maxz = 0
var/icon_size = 32
var/view = 5
var/movement_mode = LEGACY_MOVEMENT_MODE as opendream_unimplemented

var/byond_version = DM_VERSION
var/byond_build = DM_BUILD
Expand All @@ -32,6 +34,7 @@
var/port = 0
var/internet_address = "127.0.0.1"
var/url
var/visibility = 0 as opendream_unimplemented
var/status as opendream_unimplemented
var/list/params = list() as opendream_unimplemented

Expand Down Expand Up @@ -59,6 +62,9 @@
set opendream_unimplemented = TRUE
proc/IsSubscribed(player, type)
set opendream_unimplemented = TRUE
proc/IsBanned(key,address,computer_id,type)
set opendream_unimplemented = TRUE
return FALSE;

proc/Reboot()
set opendream_unimplemented = TRUE
Expand All @@ -67,6 +73,8 @@
set opendream_unimplemented = TRUE

proc/Export(Addr, File, Persist, Clients)
proc/Import()
set opendream_unimplemented = TRUE

proc/SetScores()
set opendream_unimplemented = TRUE
Expand Down

0 comments on commit 707c9c1

Please sign in to comment.