[Include] Checkpoint Management
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
Nice simple release with useful functions, but I have two questions:

1) Why PVars? Your system does not stream checkpoints so there is a finite number of checkpoints, bounded by the number of players which is known at compile time. PVars are useful for instances where the memory requirements can't be known in advance, which is not the case here.
PVars: simply because there can only be only one single checkpoint location at any given time. However i see your point now; I may modify it. However, with PVars; the user could request the information at any point in any script without necessarily including the "CP" include (however it would be needed somewhere, obviously)

Quote:
Originally Posted by ******
Посмотреть сообщение
2) Why "__x" and "__size" etc, not "x" and "size"? It is not a rule, but symbols starting with underscores are often reserved for framework internal code and symbols starting with double underscores for symbols defined by the compiler itself. This is not the case here but you may want to bear it in mind for the future - the idea is to try and reduce the chance of a symbol name collision.
I actually didn't know that; I thought by using underscores I was reducing the chance of clashing names! There are no name clashes here though, and so i won't worry about it too much. I'll look out for that in the future though.

Thanks,
Ash
Reply


Messages In This Thread
Checkpoint Management - by Ash. - 27.04.2011, 09:44
Re: Checkpoint Management - by Ash. - 27.04.2011, 10:07
Re: Checkpoint Management - by anantanni - 24.05.2011, 16:05
Re: Checkpoint Management - by Meinstad - 24.05.2011, 16:09
Re: Checkpoint Management - by [KSF]WARLOCK - 24.05.2011, 16:51
Re: Checkpoint Management - by Ash. - 25.05.2011, 17:30
Re: Checkpoint Management - by Ash. - 25.05.2011, 17:54
Re: Checkpoint Management - by Ash. - 25.05.2011, 18:25
Re: Checkpoint Management - by [KSF]WARLOCK - 26.05.2011, 09:42
Re: Checkpoint Management - by ylleron - 26.05.2011, 09:44
Re: Checkpoint Management - by [KSF]WARLOCK - 26.05.2011, 09:46
Re: Checkpoint Management - by Ash. - 27.05.2011, 06:07
Re: Checkpoint Management - by Ash. - 27.05.2011, 06:16
Re: Checkpoint Management - by cs_master - 27.05.2011, 17:11
Re: Checkpoint Management - by Ash. - 27.05.2011, 21:22
Re: Checkpoint Management - by Iphone1234g - 15.06.2011, 09:15
Re: Checkpoint Management - by Ash. - 24.12.2011, 18:05
Re: Checkpoint Management - by Rizard - 17.02.2012, 16:31
Re: Checkpoint Management - by Dude_Lebowski - 15.03.2012, 14:15
Re: Checkpoint Management - by Ash. - 10.04.2012, 23:40
Re: Checkpoint Management - by xMaGmOtAnEtHx - 16.09.2012, 04:11

Forum Jump:


Users browsing this thread: 8 Guest(s)