Signal service stub

This commit is contained in:
Vulpovile
2023-11-12 20:07:23 -08:00
parent bb06376719
commit 528ab72e80
55 changed files with 65 additions and 1049135 deletions

View File

@@ -4,8 +4,15 @@
namespace B3D{
class InputService : public Instance{
public:
InputService(void);
InputService~(void);
pollKeyState(int key);
bool pollKeyState(char keyChar);
int pollMouseX();
int pollMouseY();
bool pollMouseButton(int button);
private:
int mouseX, mouseY;
}
}

View File

@@ -0,0 +1,19 @@
#pragma once
#include "Instance.h"
namespace B3D
{
typedef unsigned short SigMesg;
const SigMesg OPT_DESTROY_LPARAM = 0x8000;
const SigMesg OPT_DESTROY_WPARAM = 0x4000;
class SignalService : public Instance
{
public:
SignalService(void);
~SignalService(void);
bool registerInstance(Instance * instance);
bool revokeInstance(Instance * instance);
void revokeAll();
void dispatchSignal(SigMesg& msgId, void* lParam, void* wParam);
};
}

View File

@@ -1,5 +1,7 @@
#pragma once
#include "Reflection.h"
//#include <windows.h>
//#include "propertyGrid.h"
#include <iostream>
#include <string>
#include <typeinfo>
@@ -25,9 +27,11 @@ namespace B3D{
T getValueClone();
T* getValuePtr();
//PROPGRIDITEM ReflectionProperty<T>::getProperty(void);
//void ReflectionProperty<T>::setProperty(void);
void setValue(T);
void setValueNotify(T);
void dispose();
//Too many

View File

@@ -38,7 +38,27 @@ ReflectionProperty<T>::~ReflectionProperty(void)
{
dispose();
}
/*
template<class T>
PROPGRIDITEM ReflectionProperty<T>::getProperty(void)
{
//This will come from metadata
std::string metaCategory = "Item";
PROPGRIDITEM propGridItem = NULL;
switch(type){
}
return propGridItem;
}
template<class T>
void ReflectionProperty<T>::setProperty(void)
{
switch(type){
}
}
*/
template<class T>
void ReflectionProperty<T>::dispose()
{

View File

@@ -0,0 +1 @@
#include "DataModelV3/SignalService.h"