Init repo

This commit is contained in:
Winfidonarleyan
2021-10-13 01:13:46 +07:00
parent 1664b16d3f
commit 764a34fccb
8 changed files with 293 additions and 0 deletions

8
.editorconfig Normal file
View File

@@ -0,0 +1,8 @@
[*]
charset = utf-8
indent_style = space
indent_size = 4
tab_width = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80

105
.gitattributes vendored Normal file
View File

@@ -0,0 +1,105 @@
## AUTO-DETECT
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text = auto eol = lf
# Text
* .conf text
* .conf.dist text
* .cmake text
## Scripts
* .sh text
* .fish text
* .lua text
## SQL
* .sql text
## C++
* .c text
* .cc text
* .cxx text
* .cpp text
* .c++ text
* .hpp text
* .h text
* .h++ text
* .hh text
## For documentation
# Documents
* .doc diff = astextplain
* .DOC diff = astextplain
* .docx diff = astextplain
* .DOCX diff = astextplain
* .dot diff = astextplain
* .DOT diff = astextplain
* .pdf diff = astextplain
* .PDF diff = astextplain
* .rtf diff = astextplain
* .RTF diff = astextplain
## DOCUMENTATION
* .markdown text
* .md text
* .mdwn text
* .mdown text
* .mkd text
* .mkdn text
* .mdtxt text
* .mdtext text
* .txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
* COPYRIGHT * text
INSTALL text
license text
LICENSE text
NEWS text
readme text
* README * text
TODO text
## GRAPHICS
* .ai binary
* .bmp binary
* .eps binary
* .gif binary
* .ico binary
* .jng binary
* .jp2 binary
* .jpg binary
* .jpeg binary
* .jpx binary
* .jxr binary
* .pdf binary
* .png binary
* .psb binary
* .psd binary
* .svg text
* .svgz binary
* .tif binary
* .tiff binary
* .wbmp binary
* .webp binary
## ARCHIVES
* .7z binary
* .gz binary
* .jar binary
* .rar binary
* .tar binary
* .zip binary
## EXECUTABLES
* .exe binary
* .pyc binary

47
.gitignore vendored Normal file
View File

@@ -0,0 +1,47 @@
!.gitignore
#
#Generic
#
.directory
.mailmap
* .orig
* .rej
* .*~
.hg /
*.kdev *
.DS_Store
CMakeLists.txt.user
* .bak
* .patch
* .diff
* .REMOTE.*
* .BACKUP.*
* .BASE.*
* .LOCAL.*
#
# IDE & other softwares
#
/ .settings/
/.externalToolBuilders/*
# exclude in all levels
nbproject/
.sync.ffs_db
*.kate-swp
#
# Eclipse
#
*.pydevproject
.metadata
.gradle
tmp/
*.tmp
*.swp
*~.nib
local.properties
.settings/
.loadpath
.project
.cproject

26
conf/AoeLoot.conf.dist Normal file
View File

@@ -0,0 +1,26 @@
#
# This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# User has manually chosen to ignore the git-tests, so throw them a warning.
# This is done EACH compile so they can be alerted about the consequences.
#
########################################
# AoeLoot module configuration
########################################
#
# AOELoot.Enable
# Description: Enables Module
# Default: 0 - (Disabled)
# 1 - (Enabled)
#
AOELoot.Enable = 0

20
src/AoeLoot.cpp Normal file
View File

@@ -0,0 +1,20 @@
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AoeLoot.h"
#include "Log.h"
#include "Config.h"

21
src/AoeLoot.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _AOE_LOOT_H_
#define _AOE_LOOT_H_
#endif /* _AOE_LOOT_H_ */

41
src/AoeLoot_SC.cpp Normal file
View File

@@ -0,0 +1,41 @@
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AoeLoot.h"
#include "Log.h"
#include "ScriptMgr.h"
#include "Config.h"
#include "Chat.h"
#include "Player.h"
#include "ScriptedGossip.h"
class AoeLoot_World : public WorldScript
{
public:
AoeLoot_World() : WorldScript("AoeLoot_World") { }
void OnAfterConfigLoad(bool /*reload*/) override
{
// Add conigs options configiration
}
};
// Group all custom scripts
void AddSC_AoeLoot()
{
new AoeLoot_World();
}

25
src/aoe_loot_loader.cpp Normal file
View File

@@ -0,0 +1,25 @@
/*
* This file is part of the AzerothCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// From SC
void AddSC_AoeLoot();
// Add all
void Addmod_aoe_lootScripts()
{
AddSC_AoeLoot();
}