a 'server' class?
i found in the RACC code, some things about a server.
But, i am thinking of NOT including that in my source. I mean, the server side things are mostly interface depended, so that would either mean i end up with lots of functions , but those are empty, or just double-working , because i do: IF_ServerXXX runs -> Actual function which i find pointless the only thing i can think of is like a round detection. What is handy? I'd like some sort of discussion. How to keep most code 'engine independent', but a tthe same time functional? ???:( |
Re: a 'server' class?
Do you really need a class for the server? Couldn't it just be a namespace?
|
Re: a 'server' class?
What ? In my code anything that is in the server_t structure is completely engine and game independent. This structure deals about the most generic parameters that can be. Here's it's current state:
Code:
// server structure definition |
Re: a 'server' class?
i probably misread it then, i was referring to Server() functions..
|
Re: a 'server' class?
maybe you could explain your 'pointless' quote a bit, dunno what you meant with that
Quote:
why not wrap all the functions ? most of them are similar in different engines, like entities. and when you have an additional wrapper class which handles handling your entities it won't be too difficult to write a SearchEntityInSphere function. and using a base class with empty virtual functions, you don't have trouble to call nonimplemented functions, since they simply do nothing and youi don't have to care about NULL function pointers ... |
Re: a 'server' class?
exactly my point Aspirin. In my code I use my own FindEntityInSphere, FindEntityByClassname, IsNull (FNullEnt equivalent), IndexOfEntity and the likes, etc, etc.
@Stefan: if you're talking about these functions: Code:
player_t *HLEngine_CreateFakeClient (profile_t *pProfile); Code:
// interface.cpp functions prototypes (these functions are exported) |
All times are GMT +2. The time now is 14:44. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.