Refactored class initializations so reading into class list data from config files works properly.

pull/28/head
sigonasr2 2 years ago
parent 3cb8c43da1
commit 690171497f
  1. 2
      Crawler/Crawler.cpp
  2. 17
      Crawler/DEFINES.h
  3. 2
      Crawler/Version.h

@ -56,8 +56,6 @@ Crawler::Crawler()
std::cout<<cl<<std::endl; std::cout<<cl<<std::endl;
utils::datafile::Read(DATA,CONFIG_PATH + "class_directory"_S + cl + ".txt"); utils::datafile::Read(DATA,CONFIG_PATH + "class_directory"_S + cl + ".txt");
} }
std::cout<<"Warrior.Right Click Ability.testNumber"_I<<std::endl;
} }
bool Crawler::OnUserCreate(){ bool Crawler::OnUserCreate(){

@ -32,4 +32,19 @@ AnimationState&class::GetWalkWAnimation(){return walk_w;}; \
AnimationState&class::GetIdleNAnimation(){return idle_n;}; \ AnimationState&class::GetIdleNAnimation(){return idle_n;}; \
AnimationState&class::GetIdleEAnimation(){return idle_e;}; \ AnimationState&class::GetIdleEAnimation(){return idle_e;}; \
AnimationState&class::GetIdleSAnimation(){return idle_s;}; \ AnimationState&class::GetIdleSAnimation(){return idle_s;}; \
AnimationState&class::GetIdleWAnimation(){return idle_w;}; AnimationState&class::GetIdleWAnimation(){return idle_w;}; \
std::string class::name=""; \
Class class::cl=ANY; \
Ability class::rightClickAbility=Ability("",0,0); \
Ability class::ability1=Ability("",0,0); \
Ability class::ability2=Ability("",0,0); \
Ability class::ability3=Ability("",0,0); \
Ability class::ability4=Ability("",0,0); \
AnimationState class::idle_n=WARRIOR_IDLE_N; \
AnimationState class::idle_e=WARRIOR_IDLE_E; \
AnimationState class::idle_s=WARRIOR_IDLE_S; \
AnimationState class::idle_w=WARRIOR_IDLE_W; \
AnimationState class::walk_n=WARRIOR_WALK_N; \
AnimationState class::walk_e=WARRIOR_WALK_E; \
AnimationState class::walk_s=WARRIOR_WALK_S; \
AnimationState class::walk_w=WARRIOR_WALK_W;

@ -2,7 +2,7 @@
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 2 #define VERSION_MINOR 2
#define VERSION_PATCH 0 #define VERSION_PATCH 0
#define VERSION_BUILD 861 #define VERSION_BUILD 863
#define stringify(a) stringify_(a) #define stringify(a) stringify_(a)
#define stringify_(a) #a #define stringify_(a) #a

Loading…
Cancel
Save