Noir
  • πŸšΆβ€β™‚οΈIntro
  • πŸ“Tutorials
    • πŸŽ“Starting Noir
    • πŸ“–Libraries
    • πŸ–₯️Services
    • ❔Libraries VS Services
    • πŸ’¬Callbacks
    • πŸ’₯Classes
    • πŸ”ŽDebugging
  • πŸ“šExamples
  • β˜„οΈAPI Reference
    • Bootstrapper
    • Built-Ins
      • Classes
        • AITarget
        • Body
        • Command
        • Connection
        • Event
        • HTTPRequest
        • HTTPResponse
        • Library
        • Message
        • Object
        • Player
        • Service
        • Task
        • TickIterationProcess
        • Tracker
        • Vehicle
        • Widgets
          • MapLabelWidget
          • MapLineWidget
          • MapObjectWidget
          • PopupWidget
          • ScreenPopupWidget
          • Widget
      • Libraries
        • Base64
        • Dataclasses
        • Deprecation
        • Events
        • HTTP
        • JSON
        • Logging
        • Matrix
        • Number
        • String
        • Table
      • Services
        • CommandService
        • GameSettingsService
        • HTTPService
        • MessageService
        • NotificationService
        • ObjectService
        • PlayerService
        • TaskService
        • TPSService
        • UIService
        • VehicleService
    • Callbacks
    • Class
    • Classes
    • Debugging
    • Definition
    • Libraries
    • Noir
    • Services
    • TypeChecking
Powered by GitBook
On this page
  • Overview
  • What Are Services?
  • What Are Libraries?
Edit on GitHub
  1. Tutorials

Libraries VS Services

Libraries and services may seem quite similar, but they have their differences. This page will go over the differences.

PreviousServicesNextCallbacks

Last updated 12 months ago

Overview

Libraries and Services are used for organizational purposes within Noir. They separate independent and reusable code from game affecting code.

See and .

What Are Services?

Services manage and store data and act upon game events (although not always).

Services may interact with each other in various ways or utilize libraries. However, a library should be considered if the code could be reused and doesn't affect the game directly.

What Are Libraries?

Libraries contain code that can be used elsewhere, which is useful for separation, organization, ease of use and reduced repeated code.

Libraries shouldn't interact with services or the game directly, but they can utilize other libraries. A service should be considered if the code may affect the game or use game events.

πŸ“
❔
What Are Services
What Are Libraries
Page cover image