Skip to content

Instantly share code, notes, and snippets.

View DDuarte's full-sized avatar
😴
Dormant

Duarte Duarte DDuarte

😴
Dormant
View GitHub Profile
@DDuarte
DDuarte / 0001-Build-CMake-make-doc-that-runs-Doxygen.patch
Created May 29, 2013 22:22
TrinityCore: custom cmake target "doc" that runs Doxygen on the project TODO: Update Doxyfile with proper defaults (most marked with ###)
From 6a83fbeed7af4ef9f26c678ee965e3accd55fbf3 Mon Sep 17 00:00:00 2001
From: Nay <dnpd.dd@gmail.com>
Date: Wed, 29 May 2013 23:21:02 +0100
Subject: [PATCH] Build/CMake: 'make doc' that runs Doxygen
---
CMakeLists.txt | 11 +
doc/Doxyfile.in | 1717 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 1728 insertions(+)
create mode 100644 doc/Doxyfile.in
@DDuarte
DDuarte / GangmanCleanUp.xml
Last active December 17, 2015 21:19
Eclipse Code Style configurations - Java
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="2">
<profile kind="CleanUpProfile" name="Gangman Clean Up" version="2">
<setting id="cleanup.remove_unused_private_fields" value="true"/>
<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
<setting id="cleanup.never_use_blocks" value="true"/>
<setting id="cleanup.remove_unused_private_methods" value="true"/>
<setting id="cleanup.add_missing_deprecated_annotations" value="true"/>
<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/>
<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/>
From 850f5dce38c6644cf15047a0a898b1ddced330df Mon Sep 17 00:00:00 2001
From: Nay <dnpd.dd@gmail.com>
Date: Sat, 2 Mar 2013 02:16:56 +0000
Subject: [PATCH] Buildsystem: Add support for compiling with MinGW on Windows
Tested with:
- Windows 8 x64
- MySQL 5.5.30 win32
- OpenSSL 1.0.1c (32 bits)
- No PCH
@DDuarte
DDuarte / equip.diff
Created February 13, 2013 19:47
TC equipment refactor
+ ALTER TABLE `creature_equip_template` CHANGE `entry` `entry` mediumint(8) unsigned NOT NULL;
+ ALTER TABLE `creature_equip_template` ADD `id` tinyint(3) unsigned NOT NULL DEFAULT '1' AFTER `entry`;
+ ALTER TABLE `creature_equip_template` DROP INDEX `PRIMARY`, ADD PRIMARY KEY (`entry`, `id`);
+ ALTER TABLE `creature_template` DROP `equipment_id`;
+ ALTER TABLE `creature` CHANGE `equipment_id` `equipment_id` tinyint(3) unsigned NOT NULL DEFAULT '1';
+ ALTER TABLE `game_event_model_equip` CHANGE `equipment_id` `equipment_id` tinyint(3) unsigned NOT NULL DEFAULT '1';
...
diff --git a/src/server/game/AI/ScriptedAI/ScriptedCreature.cpp b/src/server/game/AI/ScriptedAI/ScriptedCreature.cpp
diff --git a/src/server/collision/BoundingIntervalHierarchyWrapper.h b/src/server/collision/BoundingIntervalHierarchyWrapper.h
index 8a99078..315f300 100644
--- a/src/server/collision/BoundingIntervalHierarchyWrapper.h
+++ b/src/server/collision/BoundingIntervalHierarchyWrapper.h
@@ -33,11 +33,14 @@ class BIHWrap
{
const T* const* objects;
RayCallback& _callback;
+ uint32 objects_size;
using System;
using System.Collections.Generic;
using System.Text;
using MySql.Data.MySqlClient;
using Wintellect.PowerCollections;
using System.Linq;
using System.Linq.Expressions;
using MoreLinq;
namespace CreatureAddonConverterTDB
using System;
using System.Collections.Generic;
using System.Text;
using MySql.Data.MySqlClient;
using Wintellect.PowerCollections;
using System.Linq;
using System.Linq.Expressions;
using MoreLinq;
namespace CreatureAddonConverterTDB
using System;
using System.Collections.Generic;
using System.Text;
using MySql.Data.MySqlClient;
using Wintellect.PowerCollections;
using System.Linq;
using System.Linq.Expressions;
using MoreLinq;
namespace CreatureAddonConverterTDB
{
"additional_language_options":
{
"c++" : ["-std=c++11"],
"c": [],
"objc": [],
"objc++": []
},
"options":
This file has been truncated, but you can view the full file.
From 44c99034ec1cdfc85a3c79375a18ba30336f6dc0 Mon Sep 17 00:00:00 2001
From: various authors <various@trinitycore.contrib>
Date: Sun, 23 Dec 2012 16:15:40 +0000
Subject: [PATCH] Core: movement maps beta preview release
---
cmake/options.cmake | 2 +-
dep/CMakeLists.txt | 7 +-
dep/PackageList.txt | 4 +