[lib.context] shared context between 'client' and 'server' ; only contains the timeid window size

This commit is contained in:
xdrm-brackets 2018-04-21 00:03:18 +02:00
parent b23acf97f8
commit 1bb7ede29a
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package context
/* (1) Context class
---------------------------------------------------------*/
/* (1) Attributes */
type Context struct {
windowSize float64; // 'timeid' window size
}
/* (2) Constructor */
func Create(winSize float64) *Context{
var instance = new(Context);
instance.windowSize = winSize;
return instance
}
/* (3) Getters */
func (c Context) GetWindowSize() float64 { return c.windowSize }