blob: c5bd65f564f5074bedf9d47ebca80cc6caa3fdcf [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
MG Mud User88f12472016-06-24 23:31:02 +020010#pragma range_check
11#pragma no_clone
12
13//#define NEED_PROTOTYPES
14
15#include <thing/properties.h>
16#include <properties.h>
17
18static int _set_weight(int w);
19static int _query_weight();
20static int _set_total_weight(int w);
21static int _query_total_weight();
22
23void create()
24{
25 Set(P_WEIGHT,PROTECTED,F_MODE);
26 Set(P_TOTAL_WEIGHT,PROTECTED,F_MODE);
27}
28
29int MayAddWeight(int w)
30{
31 return 0;
32}
33
34int MayAddObject(object ob)
35{ return 1; }
36
37int PreventInsert(object ob)
38{
39 return 0;
40}
41
42static int _set_weight(int w)
43{
44 return 0;
45}
46
47static int _query_weight()
48{
49 return 0;
50}
51
52static int _set_total_weight(int w)
53{
54 return 0;
55}
56
57static int _query_total_weight()
58{
59 return 0;
60}