From 898f3594709da7d2ede81b5c9a2728af82e28b9b Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 5 Mar 2024 10:41:11 -0500 Subject: [PATCH] Removed box serialial unmarshaling def --- code/serialize_manual_unmarshal.odin | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/code/serialize_manual_unmarshal.odin b/code/serialize_manual_unmarshal.odin index e8d8943..235cdeb 100644 --- a/code/serialize_manual_unmarshal.odin +++ b/code/serialize_manual_unmarshal.odin @@ -21,18 +21,3 @@ color_json_unmarshal :: proc( value : ^ json.Value ) -> Color { a := u8(json_color[3].(json.Float)) return { r, g, b, a } } - -box_json_unmarshal :: proc( value : ^ json.Value ) -> Box2 { - object := value.(json.Object) - json_pos := object["position"].(json.Array) - - position := Vec2 { f32(json_pos[0].(json.Float)), f32(json_pos[1].(json.Float)) } - width := f32( object["width"] .(json.Float)) - height := f32( object["height"].(json.Float)) - - return { - position = position, - extent = { width, height }, - color = color_json_unmarshal( & object["color"] ), - }, -}