forked from ellisk42/ec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcache_types.ml
56 lines (49 loc) · 1019 Bytes
/
cache_types.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[@@@ocaml.warning "-27-30-39"]
type tower_cash_block = {
x10 : int32;
w10 : int32;
h10 : int32;
}
type tower_cash_entry = {
plan : tower_cash_block list;
height : float;
stability : float;
area : float;
length : float;
overpass : float;
staircase : float;
}
type tower_cash = {
entries : tower_cash_entry list;
} [@@unboxed]
let rec default_tower_cash_block
?x10:((x10:int32) = 0l)
?w10:((w10:int32) = 0l)
?h10:((h10:int32) = 0l)
() : tower_cash_block = {
x10;
w10;
h10;
}
let rec default_tower_cash_entry
?plan:((plan:tower_cash_block list) = [])
?height:((height:float) = 0.)
?stability:((stability:float) = 0.)
?area:((area:float) = 0.)
?length:((length:float) = 0.)
?overpass:((overpass:float) = 0.)
?staircase:((staircase:float) = 0.)
() : tower_cash_entry = {
plan;
height;
stability;
area;
length;
overpass;
staircase;
}
let rec default_tower_cash
?entries:((entries:tower_cash_entry list) = [])
() : tower_cash = {
entries;
}