From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2PeopleAnimeDef.cpp | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) (limited to 'src/T2DLL/T2PeopleAnimeDef.cpp') diff --git a/src/T2DLL/T2PeopleAnimeDef.cpp b/src/T2DLL/T2PeopleAnimeDef.cpp index 7297df0..a392cca 100644 --- a/src/T2DLL/T2PeopleAnimeDef.cpp +++ b/src/T2DLL/T2PeopleAnimeDef.cpp @@ -1,6 +1,7 @@ #include "CResFile.h" #include "T2People.h" #include "T2PeopleAnimeDef.h" +#include "T2PeopleAnimeDefElem.h" #include "UT2Utils.h" T2PeopleAnimeDef::T2PeopleAnimeDef(CResFile& resFile) { @@ -35,31 +36,3 @@ void T2PeopleAnimeDef::Set(T2People* people, int h, int inIndex) { mElems[index].Set(people, h); } } - - - -T2PeopleAnimeDefElem::T2PeopleAnimeDefElem() { - mFillerStart = 0; - mFillerRange = 0; - mHStart = 0; - mHRange = 0; -} - -/*virtual*/ T2PeopleAnimeDefElem::~T2PeopleAnimeDefElem() { -} - -void T2PeopleAnimeDefElem::Initialize(CResFile& resFile) { - resFile >> mFillerStart; - resFile >> mFillerRange; - resFile >> mHStart; - resFile >> mHRange; -} - -void T2PeopleAnimeDefElem::Set(T2People* people, int h) { - if (mFillerStart >= 0) { - people->SetFiller(mFillerStart + UT2Utils::Randomize(mFillerRange)); - people->MoveHTo(h + mHStart + UT2Utils::Randomize(mHRange)); - } else { - people->SetFiller(-1); - } -} -- cgit v1.2.3