Skip to content

Commit

Permalink
converted indentation to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
whistmxl committed Mar 30, 2017
1 parent a1ed066 commit e58d024
Show file tree
Hide file tree
Showing 11 changed files with 501 additions and 501 deletions.
70 changes: 35 additions & 35 deletions D2Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,46 @@
#define _D2CONSTANTS_H

/****************************************************************************
* *
* D2Constants.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
* *
* D2Constants.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
*---------------------------------------------------------------------------*
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is meant to declare various constant data. As you add more *
* custom code to your library, you will be using many constant values *
* used by the game's internal code. Unit types are a good example. *
* Declaring constants allows you to assign a name to these constants *
* which are more convenient to use in your source code. *
* *
* Another advantage is smaller impact in cases where these values would *
* need to change. Rather than revising every single piece of code using *
* this value, you only need to change your constant's value *
* *
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is meant to declare various constant data. As you add more *
* custom code to your library, you will be using many constant values *
* used by the game's internal code. Unit types are a good example. *
* Declaring constants allows you to assign a name to these constants *
* which are more convenient to use in your source code. *
* *
* Another advantage is smaller impact in cases where these values would *
* need to change. Rather than revising every single piece of code using *
* this value, you only need to change your constant's value *
* *
*****************************************************************************/

enum D2C_UnitTypes
{
UNIT_PLAYER, // 0 - Players
UNIT_MONSTER, // 1 - Monsters
UNIT_OBJECT, // 2 - Objects
UNIT_MISSILE, // 3 - Missiles
UNIT_ITEM, // 4 - Items
UNIT_TILE // 5 - Tiles
UNIT_PLAYER, // 0 - Players
UNIT_MONSTER, // 1 - Monsters
UNIT_OBJECT, // 2 - Objects
UNIT_MISSILE, // 3 - Missiles
UNIT_ITEM, // 4 - Items
UNIT_TILE // 5 - Tiles
};

// end of file ---------------------------------------------------------------
Expand Down
60 changes: 30 additions & 30 deletions D2DataTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,49 @@
#pragma pack(1)

/****************************************************************************
* *
* D2DataTables.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
* *
* D2DataTables.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
*---------------------------------------------------------------------------*
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is an expansion of D2Structs.h, meant to be used to declare *
* structs representing the record of a data table once loaded in memory *
* by the game, such as Monstats.txt or Charstats.txt *
* *
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is an expansion of D2Structs.h, meant to be used to declare *
* structs representing the record of a data table once loaded in memory *
* by the game, such as Monstats.txt or Charstats.txt *
* *
*****************************************************************************/

/****************************************************************************
* *
* DECLARATIONS *
* *
* *
* DECLARATIONS *
* *
*****************************************************************************/

struct D2MonstatsTXT;

/****************************************************************************
* *
* DEFINITIONS *
* *
* *
* DEFINITIONS *
* *
*****************************************************************************/

struct D2MonstatsTXT
{
//...
//...
};

// end of file --------------------------------------------------------------
Expand Down
60 changes: 30 additions & 30 deletions D2PacketDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@
#pragma pack(1)

/****************************************************************************
* *
* D2PacketDef.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
* *
* D2PacketDef.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
*---------------------------------------------------------------------------*
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is an expansion of D2Structs.h, meant to be used to declare *
* structs representing network data packets used by the game to *
* handle communications between the server and the client *
* *
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is an expansion of D2Structs.h, meant to be used to declare *
* structs representing network data packets used by the game to *
* handle communications between the server and the client *
* *
*****************************************************************************/

/****************************************************************************
* *
* DECLARATIONS *
* *
* *
* DECLARATIONS *
* *
*****************************************************************************/

struct D2GSPacketClt01;
Expand All @@ -47,14 +47,14 @@ struct D2GSPacketSrv02;
struct D2GSPacketSrv03;

/****************************************************************************
* *
* DEFINITIONS *
* *
* *
* DEFINITIONS *
* *
*****************************************************************************/

struct D2GSPacketClt01
{
//...
//...
};

// end of file --------------------------------------------------------------
Expand Down
58 changes: 29 additions & 29 deletions D2Patch.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@
#include "D2PatchConst.h"

/****************************************************************************
* *
* D2Patch.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
* *
* D2Patch.h *
* Copyright (C) Olivier Verville *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* *
* http://www.apache.org/licenses/LICENSE-2.0 *
* *
* Unless required by applicable law or agreed to in writing, software *
* distributed under the License is distributed on an "AS IS" BASIS, *
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
* See the License for the specific language governing permissions and *
* limitations under the License. *
* *
*---------------------------------------------------------------------------*
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is where you declare all your patches, in order to inject *
* your own code into the game. Each patch should be declared in the *
* array, in order to be handled by D2Template's patcher *
* *
* *
* https://github.com/olivier-verville/D2Template *
* *
* This file is where you declare all your patches, in order to inject *
* your own code into the game. Each patch should be declared in the *
* array, in order to be handled by D2Template's patcher *
* *
*****************************************************************************/

static const DLLPatchStrc gptTemplatePatches[] =
{
/*
All your patches should be added here
Keep it organized to save yourself some headache
*/
{D2DLL_INVALID} // this must be the last entry in the array!
/*
All your patches should be added here
Keep it organized to save yourself some headache
*/
{D2DLL_INVALID} // this must be the last entry in the array!
};

// end of file --------------------------------------------------------------
Expand Down
Loading

0 comments on commit e58d024

Please sign in to comment.