MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // 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 | |
| 7 | inherit "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 | |
| 19 | static int _set_weight(int w); |
| 20 | static int _query_weight(); |
| 21 | static int _set_total_weight(int w); |
| 22 | static int _query_total_weight(); |
| 23 | |
| 24 | void create() |
| 25 | { |
| 26 | Set(P_WEIGHT,PROTECTED,F_MODE); |
| 27 | Set(P_TOTAL_WEIGHT,PROTECTED,F_MODE); |
| 28 | } |
| 29 | |
| 30 | int MayAddWeight(int w) |
| 31 | { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | int MayAddObject(object ob) |
| 36 | { return 1; } |
| 37 | |
| 38 | int PreventInsert(object ob) |
| 39 | { |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | static int _set_weight(int w) |
| 44 | { |
| 45 | return 0; |
| 46 | } |
| 47 | |
| 48 | static int _query_weight() |
| 49 | { |
| 50 | return 0; |
| 51 | } |
| 52 | |
| 53 | static int _set_total_weight(int w) |
| 54 | { |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | static int _query_total_weight() |
| 59 | { |
| 60 | return 0; |
| 61 | } |