removed '@' notes
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 14 Sep 2022 18:45:01 +0000 (13:45 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 14 Sep 2022 18:45:01 +0000 (13:45 -0500)
src/entity/components/patron.onyx
src/entity/editor.onyx
src/entity/entities.onyx
src/entity/items.onyx
src/entity/scene.onyx
src/game.onyx
src/gfx/mesh.onyx
src/gfx/ui.onyx
src/main.onyx

index 48f7e7c7a7fc69c75a3749a9b55650554a25dfa4..1879bc60377ba2753a51b18a6c4d5a43bc2245d4 100644 (file)
@@ -181,7 +181,7 @@ PatronComponent :: struct {
                 if interactor->has(PlayerComponent) {
                     patron.state = .Waiting_For_Order;
                     patron.order_show_animation = 1.0f;
-                    patron.annoy_timeout = random.float(15, 20); @Hardcoded
+                    patron.annoy_timeout = random.float(15, 20); // @Hardcoded
 
                     Audio_Manager.play_sound("./assets/sounds/prompt-1.wav");
                 }
@@ -226,7 +226,7 @@ PatronComponent :: struct {
             immediate_set_color(.{0.9, 0.9, 0.9});
             immediate_rectangle(r.x, r.y, r.w, r.h);
 
-            if annoy_timeout < 10 { @Hardcoded
+            if annoy_timeout < 10 { // @Hardcoded
                 immediate_set_color(.{1, 0, 0});
                 ar := r;
                 ar.h *= 1 - annoy_timeout / 10;
index 16a4501bcd7615a3536969f328461c4b30cb2e4d..69b02b33a4d016f90ba0fb2e7deb94c8f57dd689 100644 (file)
@@ -237,7 +237,7 @@ editor_draw :: () {
 
         switch active_tab {
             case .File {
-                @Relocate
+                // @Relocate
                 draw_textbox(.{ x, y, w, 40 }, ^save_path);
 
                 if draw_button(.{ x, y + 40, w / 2, 40 }, "Save") {
@@ -248,7 +248,7 @@ editor_draw :: () {
                     scene->load_from_file(save_path);
                 }
 
-                @Cleanup // This is rather expensive to do every frame, I think?
+                // @Cleanup // This is rather expensive to do every frame, I think?
                 dir, success := os.dir_open("./scenes");
                 entry: os.DirectoryEntry;
                 y += 80;
@@ -641,7 +641,7 @@ editor_draw :: () {
     active_index := -1;
 
     editor_grid_shown := false;
-    editor_grid_size := 16.0f; @TODO // This should be configurable
+    editor_grid_size := 16.0f; // @TODO // This should be configurable
 
     save_path: [..] u8;
 
index a9cae5664d424ad8982034d3828f6e40ee6b0a9a..8ee2960b7fbbe4822246b5987a67d74981565ee5 100644 (file)
@@ -87,7 +87,7 @@ door_create :: (scene: ^Scene, pos, size: Vector2) -> ^Entity {
 
 
 
-@Relocate
+// @Relocate
 move_towards :: (v: ^$T, target: T, diff: T) {
     if math.abs(target - *v) <= diff {
         *v = target;
index 5f727c770ebfb4e46b6596b1c078a6e9533c4911..f084e94cff80313cda1e211a880b7904fc64eaee 100644 (file)
@@ -27,7 +27,7 @@ item_store_make :: () -> Item_Store {
 }
 
 item_store_load_items_from_file :: (use this: ^Item_Store, path: str) {
-    @CopyNPaste // from entity/store.onyx
+    // @CopyNPaste // from entity/store.onyx
 
     err, input_file := os.open(path, .Read);
     if err != .None {
index d7042fcf112e5abb5cd5194bffbdfbeaa6a4295a..5eb877c3e11fb3407f34011f64b0b36a2054faa2 100644 (file)
@@ -130,7 +130,7 @@ Entity :: struct {
         assert(components[component.type] == component, "Trying to remove a component that the entity doesn't have!");
     
         map.delete(^components, component.type);
-        @TODO @LEAK // This should free the component, but it needs access to the entity_allocator
+        // @TODO // @LEAK // This should free the component, but it needs access to the entity_allocator
         // on the scene.
     }
 }
@@ -188,7 +188,7 @@ Scene :: struct {
 
 scene_create :: (width, height: f32) -> Scene {
     em: Scene;
-    em.entity_allocator = context.allocator; @TODO // Replace the allocator here.
+    em.entity_allocator = context.allocator; // @TODO // Replace the allocator here.
     em.width = width;
     em.height = height;
 
@@ -462,7 +462,7 @@ scene_first_component :: (use this: ^Scene, $component_type: type_expr) -> ^comp
 
 
 
-@Relocate
+// @Relocate
 Sprite :: struct {
     sheet: str;
     pos:  Vector2;
index 7ee8441d6d91b03c03ea57f88af3ab96df7fa5de..427df1c3181887204258a9cedd4bc650f6705047 100644 (file)
@@ -72,7 +72,7 @@ game_update :: (dt: f32) {
 }
 
 game_draw :: () {
-    @REMOVE @DEBUG
+    // @REMOVE // @DEBUG
     // Spritesheet', _ := texture_lookup(#cstr "./assets/images/spritesheet.png");
 
     canvas_use(^scene_canvas);
index 8264dffd82cf5795490c62debee0e71842c64712..981ff11897ff2e811af717f08de2644aa26c9282 100644 (file)
@@ -60,7 +60,7 @@ mesh_make :: (verticies: [] $T, indicies: [] u32, gl_hint := GL_STATIC_DRAW) ->
 }
 
 mesh_update_verticies :: (use mesh: ^Mesh, verticies: [] mesh.Vertex_Type) {
-    @TODO // Add bounds checking to arrays here.
+    // @TODO // Add bounds checking to arrays here.
 
     glBindBuffer(GL_ARRAY_BUFFER, vertex_handle);
     glBufferSubData(GL_ARRAY_BUFFER, 0, verticies.count * sizeof mesh.Vertex_Type, verticies.data);
index 11644bffbd204bac8d8a044fe698abd20b25c93d..ae31eaa45622fed856f779bf3c650fa6ca149710 100644 (file)
@@ -117,7 +117,7 @@ Slider_Theme :: struct {
 
     box_color        := Color.{ 0.1, 0.1, 0.1 };
     box_border_color := Color.{ 0.2, 0.2, 0.2 };
-    box_border_width := 4.0f;   @InPixels
+    box_border_width := 4.0f;   // @InPixels
 
     bar_color                := Color.{ 0.4, 0.4, 0.4 };
     bar_hover_color          := Color.{ 0, 0, 1 };
@@ -203,10 +203,10 @@ Textbox_Theme :: struct {
     click_color      := Color.{ 0.5, 0.5, 0.7 };
 
     border_color := Color.{ 0.2, 0.2, 0.2 };
-    border_width := 6.0f;   @InPixels
+    border_width := 6.0f;   // @InPixels
 
     cursor_color := Color.{ 0.5, 0.5, 0.5 };
-    cursor_width := 4.0f;   @InPixels
+    cursor_width := 4.0f;   // @InPixels
     cursor_blink_speed := 0.04f;   // Bigger is faster
 
     placeholder_text_color := Color.{ 0.5, 0.5, 0.5 };
@@ -222,7 +222,7 @@ Textbox_Theme :: struct {
         cursor_animation := 0.0f;
         cursor_animation_speed := 0.02f;
 
-        @HACK // Otherwise the action keys are evaluated every frame.
+        // @HACK // Otherwise the action keys are evaluated every frame.
         action_key_timeout := 0.0f;
     }
 
@@ -407,8 +407,8 @@ Checkbox_Theme :: struct {
     use animation_theme := Animation_Theme.{};
 
     box_color        := Color.{ 0.2, 0.2, 0.2 };
-    box_border_width := 4.0f;    @InPixels
-    box_size         := 20.0f;   @InPixels
+    box_border_width := 4.0f;    // @InPixels
+    box_size         := 20.0f;   // @InPixels
 
     checked_color       := Color.{ 1, 0, 0 };
     checked_hover_color := Color.{ 1, 0.6, 0.6 };
@@ -498,8 +498,8 @@ Radio_Theme :: struct {
     use animation_theme := Animation_Theme.{};
 
     box_color        := Color.{ 0.2, 0.2, 0.2 };
-    box_border_width := 4.0f;    @InPixels
-    box_size         := 20.0f;   @InPixels
+    box_border_width := 4.0f;    // @InPixels
+    box_size         := 20.0f;   // @InPixels
 
     checked_color       := Color.{ 0, 0, 1 };
     checked_hover_color := Color.{ 0.6, 0.6, 1 };
index e63f333da0fb3f16b837a6265a497c3900325811..d538d19aaba6bb4c33b0c6b865ed92043b98f8a2 100644 (file)
@@ -5,10 +5,10 @@ use glfw3
 
 DEBUG :: #defined(runtime.vars.DEBUG)
 
-@GlobalVariable
+// @GlobalVariable
 window: GLFWwindow_p
 
-@GlobalVariable
+// @GlobalVariable
 window_width: u32
 window_height: u32