[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Storing Variable Properties
- From: "Brett Bibby" <research@...>
- Date: Tue, 13 Jan 2004 18:19:24 +0800
Hello,
Is there a way to set a flag or property on a lua variable such that when it gets modified a callback can be invoked?
I know there are hooks on values in general, but we want to avoid checking to see if a given value is one we're interested in if at all possible. I'm assuming we would have to modify lua internally to enable this functionality. If so, where would be the best place to insert our modification such that we get the speed we want but also the ability to easily keep updated with newer lua versions?
In case it helps, we want to flag certain network replicable values so that if a script modifies them we can synchronize a value on remote clients. Since this is for a game, we expect to modify around 100 values per frame and do this 60 times per second.
Thanks,
Brett