Resultados 1 a 2 de 2
  1. #1
    Uploader megaman's Avatar

    Data de Ingresso
    Mar 2018
    Posts
    294
    Thanks Thanks Given 
    27
    Thanks Thanks Received 
    1,628
    Thanked in
    136 Posts
    Mencionado
    6 Post(s)
    MEU HUMOR
    Amused
    País
    Israel

    Share ModelEffect source code!



    nota: Copie e cole!

    ModelEffect.h
    Código:
    // CustomWingEffect.h: interface for the CCustomModelEffect class.
    //
    //////////////////////////////////////////////////////////////////////
    
    #pragma once
    
    #define MAX_MODEL_EFFECT 7000
    
    struct CUSTOM_MODEL_EFFECT_INFO
    {
        int        Index;
        int        ItemType;
        int        ItemIndex;
        int        MinLevel;
        int        MaxLevel;
        int        MinExcellent;
        int        MaxExcellent;
        float    Color[3];
        int        EffectIndex;
        int        EffectType;
        int        EffectCode;        
        int        EffectScale;
    };
    
    class CCustomModelEffect
    {
    public:
        CCustomModelEffect();
        virtual ~CCustomModelEffect();
        void Init();
        void Load(CUSTOM_MODEL_EFFECT_INFO* info);
        void SetInfo(CUSTOM_MODEL_EFFECT_INFO info);
    public:
        CUSTOM_MODEL_EFFECT_INFO m_CustomModelEffectInfo[MAX_MODEL_EFFECT];
    };
    
    extern CCustomModelEffect gCustomModelEffect;
    ModelEffect.cpp
    Código:
    // CustomWingEffect.cpp: implementation of the CCustomModelEffect class.
    //
    //////////////////////////////////////////////////////////////////////
    
    #include "stdafx.h"
    #include "ModelEffect.h"
    #include "Defines.h"
    CCustomModelEffect gCustomModelEffect;
    //////////////////////////////////////////////////////////////////////
    // Construction/Destruction
    //////////////////////////////////////////////////////////////////////
    
    CCustomModelEffect::CCustomModelEffect() // OK
    {
        this->Init();
    }
    
    CCustomModelEffect::~CCustomModelEffect() // OK
    {
    
    }
    
    void CCustomModelEffect::Init() // OK
    {
        for(int n=0;n < MAX_MODEL_EFFECT;n++)
        {
            this->m_CustomModelEffectInfo[n].Index = -1;
        }
    }
    
    void CCustomModelEffect::Load(CUSTOM_MODEL_EFFECT_INFO* info) // OK
    {
        for(int n=0;n < MAX_MODEL_EFFECT;n++)
        {
            this->SetInfo(info[n]);
        }
    }
    
    void CCustomModelEffect::SetInfo(CUSTOM_MODEL_EFFECT_INFO info) // OK
    {
        if(info.Index < 0 || info.Index >= MAX_MODEL_EFFECT)
        {
            return;
        }
    
        this->m_CustomModelEffectInfo[info.Index] = info;
    }
    Créditos:
    onlinezajzaj

  2. #2
    Developer C++ rafhael's Avatar
    Data de Ingresso
    Jun 2019
    Posts
    31
    Thanks Thanks Given 
    13
    Thanks Thanks Received 
    194
    Thanked in
    11 Posts
    Mencionado
    0 Post(s)
    País
    Brazil
    Faz nada isso ai...

Permissões de Postagem

  • Você não pode iniciar novos tópicos
  • You may not post Resposta(s)
  • Você não pode enviar anexos
  • Você não pode editar suas mensagens
  •  
Sobre nós
Somos uma comunidade em atividade a 8 anos que aborda assuntos relacionados a games em geral, principalmente games MMORPG. e que busca sempre ajudar os membros através de conteúdos, tutoriais e suporte...
Nossos anunciantes
Hinetworks
VelozHost
InovHost
Rede Sociais