blob: aa50c9e0a7d06bb2bcc1b466e3011dccc5fb47bf [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// room/restrictions.c -- weight property handling for rooms
4//
5// $Id: restrictions.c 9020 2015-01-10 21:49:41Z Zesstra $
6
7inherit "std/container/restrictions";
8#pragma strong_types
9#pragma save_types
10#pragma pedantic
11#pragma range_check
12#pragma no_clone
13
14//#define NEED_PROTOTYPES
15
16#include <thing/properties.h>
17#include <properties.h>
18
19static int _set_weight(int w);
20static int _query_weight();
21static int _set_total_weight(int w);
22static int _query_total_weight();
23
24void create()
25{
26 Set(P_WEIGHT,PROTECTED,F_MODE);
27 Set(P_TOTAL_WEIGHT,PROTECTED,F_MODE);
28}
29
30int MayAddWeight(int w)
31{
32 return 0;
33}
34
35int MayAddObject(object ob)
36{ return 1; }
37
38int PreventInsert(object ob)
39{
40 return 0;
41}
42
43static int _set_weight(int w)
44{
45 return 0;
46}
47
48static int _query_weight()
49{
50 return 0;
51}
52
53static int _set_total_weight(int w)
54{
55 return 0;
56}
57
58static int _query_total_weight()
59{
60 return 0;
61}