uncategorized storage - wxyz-abcd/node-haxball GitHub Wiki

Storage

This is the structure that stores storage values.

1. Properties

  • crappy_router: boolean: If true, sets a timeout value to 10 seconds instead of 4 seconds while joining a room. Default value is false.
  • extrapolation: int: Use the future(+) or past(-) values of game state while rendering or other kinds of processing. This value should be a number between -200ms and +200ms. Default value is 0.
  • fps_limit: int: If 1, fps limit is set to 30, otherwise no limit is set. Default value is 1.
  • player_name: string: Name of the player. Default value is "abc".
  • avatar: string: Avatar of the player. Default value is null.
  • geo: GeoLocation: Geolocation of the player. (documentation). Default value is { lat: 40, lon: 40, flag: "tr" }.

2. Callbacks

  • onValueSet(key: string, value: object): void

    A callback function that is called just after the value of a key of this object has been changed by this library.

    Parameters:

    • key: string: The key that has just changed.
    • value: object: The new value of the key.

    Return value: void.

⚠️ **GitHub.com Fallback** ⚠️